I have setup BIND9 to resolve domain names used by my work group, it contains:
- public domain names:
- our own TLD
but I don't know how to setup clients to add an extra DNS server.
I'll call my DNS server as
DNS-mine, and the default DNS servers returned from ADSL as
I must not forward
DNS-mine for network-speed reasons and user preferences.
(Users are distributed over the world, and
DNS-mine is sat in US).
I have tried several ways, as follows:
Add IP4 of
DNS-mine(22.214.171.124) to resolv.conf:
nameserver 126.96.36.199 # DNS-system nameserver 188.8.131.52 # DNS-mine
DNS-mineis never queried. as
resolv.conf(5)said the second nameserver is only queried when the first one was timeout, however
DNS-systemhere does never timeout.
resolv.confis reset by network manager, too.
DNS-mine, and make it the same as
.my-company.comzone. Then Change
a2.my-company.com, etc. in each client. This works as:
www.top -> www.top.my-company.com == www.my-company.com
However, I must add all client host names in
DNS-mineat the same time, otherwise the client stucks:
127.0.0.1 a1.my-company.com 127.0.0.1 a2.my-company.com 127.0.0.1 a3.my-company.com
The clients don't have WAN IP(s), as they are behind the firewall. And new clients may join in in any time.
The same as above, but don't change
/etc/hostname, add to
This works very well, however, the
/etc/resolv.conffile is automatically reset by network manager.
Add all names
/etc/hostsfile, then just ignore
DNS-mine, this works very well, but hard to maintain.