Solved

Name server timeout  / gethostbyname: Resource temporarily unavailable

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

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

864 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

23 Experts available now in Live!

Get 1:1 Help Now