Solved

Name server timeout  / gethostbyname: Resource temporarily unavailable

Posted on 2004-04-22
4
1,882 Views
Last Modified: 2008-01-16
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
0
Comment
Question by:henry007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

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

nameserver 1.2.3.4
0
 

Author Comment

by:henry007
ID: 10890597
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 ?
0
 

Author Comment

by:henry007
ID: 10890640
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 ?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 45 total points
ID: 10890828
Unless you fix the wireless router's config so that it furnishes a valid nameserver IP the problem will reoccur the next time DHCP negotiation happens, assuming that the wireless router is assigning and IP to the system via DHCP. The other possibility is to include "PEERDNS=no" in the interface control file for the NIC in /etc/sysconfig/network-scripts
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question