Link to home
Start Free TrialLog in
Avatar of henry007
henry007

asked on

Name server timeout / gethostbyname: Resource temporarily unavailable

on Redhat 9.0 linux , The mail stop working suddently and also if I try to run SETI it gives me the gethostbyname error, this was working great for like 1/2 years and then stopped working. How can I fix it ? However I can still get into the machine from the outside via ssh and samba works also. If I try to ftp/telnet from the linux box to the outside world it just hangs, but ping would work just fine.

Any clues ?

Thanks
Avatar of jlevie
jlevie

Check /etc/resolv.conf and make sure that it has a valid name server IP listed, something like:

nameserver 1.2.3.4
Avatar of henry007

ASKER

I have this :

; generated by /sbin/dhclient-script
nameserver 192.168.2.1
search localdomain


It looks like it's using the wireless router as the nameserver right ?
I changed that 192.168.2.1 to 206.13.29.12   and now everything works. Now I wounder if that ";generated by /sbin/dhclient-script" will switch it back to the 192.168.2.1 and screw it up again! Do you know if that's the case ?
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial