Embaressing problem.

User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Embaressing problem.

Post by Thunderstone »




Hi,

Firstly I apologise if this question has been asked before but I'm having
a bit of trouble with Webinator, whenever I try run gw it gives the
following error.

000 gethostbyname: No such file or directory
Can't determine this machine's name

Has anyone come across this error before and if so can they please tell
me how they fixed it? Oh yeah, the machine is a Sun Sparc Classic running
Solaris 2.5.

Thanks,

Mike.



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Embaressing problem.

Post by Thunderstone »




Gw attempts to lookup the name and ip address of the machine it's running
on. Make your name server or /etc/hosts file has an address associated
with the name of your machine (see your system manuals or system administrator
for how to do this). Your machine name can be found with the "hostname" or
"uname -n" commands. Test your configuration with:
nslookup `hostname`
or:
/usr/sbin/nslookup `hostname`