troubleshooting Question

Change DNS servers for Linux without a reboot

Avatar of toben88
toben88 asked on
LinuxLinux Distributions
4 Comments1 Solution1342 ViewsLast Modified:
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 and

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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros