Web Hosting Talk







View Full Version : wget - probably simple question.


jasonX
05-23-2002, 09:50 PM
hey,

I just installed redhat 7.3, put cpanel on it, and that's about it. It works fine and all, connection is fine, but, when i try to wget anything, it says failed: Host not found. on whatever site im trying to wget something from. Is there something I need to change in some configuration file or something somewhere.

Oh, also, it will work if I enter the IP instead of the domain name. such as wget 64.21.84.5

Thanks.

ckpeter
05-23-2002, 10:20 PM
It sounds like your name server is not working. That's why no one is resolving domain names for you, but IP works.

You just need to start up your bind server.

Peter

clocker1996
05-23-2002, 11:50 PM
NO.

What you need to do is enter name servers in your /etc/resolv.conf

try this:

type this out as root

echo "nameserver 207.126.96.162" > /etc/resolv.conf
echo "nameserver 207.126.105.146" >> /etc/resolv.conf

then type

wget hostname.com/file.exe

it'll work.

bobcares
05-24-2002, 01:02 PM
Hi!
clocker1996 is right here.
The /etc/resolv.conf needs to be modified for names to start resolving...
domain , nameserver , search are the important configuration directives... :)

Have a great day :)

Regards
Amar