I keep getting an error message whenever doing anything that requires a dns lookup on my centos server. For example:
[root@15557 etc]# wget http://www.whitehouse.gov/sites/default/files/rss_viewer/birth-certificate-long-form.pdf --2011-05-03 20:55:35-- http://www.whitehouse.gov/sites/default/files/rss_viewer/birth-certificate-long-form.pdf Resolving www.whitehouse.gov... failed: Temporary failure in name resolution. wget: unable to resolve host address `www.whitehouse.gov'
If i restart the server then this problem goes away for a SHORT time, but it always comes back after an hour or so. If i change the nameserver ip's listed in resolv.conf, the problem is not fixed, even if i substitute them with common nameserver like google's 18.104.22.168. If i flush the hosts cache after changing resolve.conf, it does not fix the problem either. After restart of the server, the resolv.conf is changed back to it's default values, i guess by some dhcp.
Please help, this is incredibly frustrating and basically makes the server useless. There must be some problem. Thanks.