Switching from one DNS to another

Hi all,

we have running some linux servers with sles9 and we have some problems with our dns servers. Sometimes they don't like to work. However, is there a parameter to enable faster switching between two ore more dns servers?

Thx for your help in front

Regards

frank

add more DNS servers in /etc/resolv.conf file. They will be probed in order of appearance in case of failure. As in :
# the ones you're using primary :
10.101.1.5
10.101.1.6
# and then the backups :
192.168.2.1
192.168.2.2
# As a side note - it's recommended by RFC that DNS servers should not reside in the same subnet, in case of network failure.

thx, but this is what we have. i need to know, is there an option if one of the primary dns server fails, that the switching to the next dns could make faster?

You want to make it faster ? Consider implementing DNS load balancing solution, there are few available on the net, I believe.

check the man page for resolv.conf

It has entries in there for "timeout" and "attempts"

adding these should help your dns clients roll to the next server more quickly if the primary goes down.

ortsvorsteher
The DNS timeout value is normally controlled by the client, thus an HA solution would be your route. Nothing you do on the server side (as far as configuration) can change that, and as far as ordering them? Well it will try each attempt, then fail and go to the next server, each time.