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 18.104.22.168 and 22.214.171.124
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.