?
Solved

Name server timeout  / gethostbyname: Resource temporarily unavailable

Posted on 2004-04-22
4
Medium Priority
?
1,915 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 180 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month12 days, 20 hours left to enroll

777 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