wget can access external sites, but unable to access local ones

tamalero

Active Member
Mar 4, 2013
33
2
8
cPanel Access Level
Root Administrator
Greetings gentlemen,

I have a cPanel installation using Peer1(serverbeach)'s brand of Dedicated Hosting.

After some trouble with the OS which was resolved, I noticed that the Wget conjobs I use were giving errors.

Example:

If I do a wget Google
the process is successful.

but if I use any of the local websites I'm hosting, it gives an error.

failed: No address associated with hostname. wget: unable to resolve host address

Uname reports:
2.6.18-274.12.1.el5 #1 SMP Tue Nov 8 21:37:35 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
using cPanel latest with Bind.

any ideas what could be cause?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
Without knowing your configuration I would guess the problem is in the resolver.
Check /etc/resolv.conf