Solved

Name server timeout  / gethostbyname: Resource temporarily unavailable

Posted on 2004-04-22
4
1,741 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now