toben88
asked on
Change DNS servers for Linux without a reboot
I have a Centos 5 Linux server (clone of RedHat) that has incorrect DNS settings. I can ping IP addresses but not any domain names from this server. I need to set the new DNS servers without rebooting the server as it is in the middle of a batch job that will take several hours.
I believe DNS servers should be set in/etc/resolv.conf and that file is empty.
My DNS servers are 64.207.238.250 and 64.207.238.251
How do I set the correct DNS servers and get them working without a reboot? I can not reboot as the server is doing some batch processing that will take several hours.
Thank you
I believe DNS servers should be set in/etc/resolv.conf and that file is empty.
My DNS servers are 64.207.238.250 and 64.207.238.251
How do I set the correct DNS servers and get them working without a reboot? I can not reboot as the server is doing some batch processing that will take several hours.
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Changing the IPs of DNS servers used to resolve domains does not require reboot.
You may need to restart the network service.
Changing the DNS has an immediate effect.