LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-11-2008, 03:28 PM   #1
carrie66
LQ Newbie
 
Registered: Sep 2008
Location: San Diego, CA
Distribution: Fedora Core
Posts: 2

Rep: Reputation: 0
Fedora core3: host name lookup failure


Hi All,

I have a linux server running Fedore3 (yes, it needs update). I can't reach outside hosts by hostname but I can reach them by their IP address. Some examples to explain the problem more clearly.

If machine A has hostname somename.somedomain.org with IP xxx.xx.xx.x.
> ping somename.domain.org (failed)
ping: unknown host somename.somedomain.org
> ping xxx.xx.xx.x (Successful with the following message)
PING xxx.xx.xx.x (xxx.xx.xx.x) 56(84) bytes of data.
64 bytes from xxx.xx.xx.x: icmp_seq=0 ttl=64 time=1.73 ms
64 bytes from xxx.xx.xx.x: icmp_seq=1 ttl=64 time=0.115 ms
64 bytes from xxx.xx.xx.x: icmp_seq=2 ttl=64 time=0.124 ms

However, sendmail is working to some user@yahoo.com

Could anyone know how to fix this problem?
I appreciate your help very much! Thanks a lot!

carrie
 
Old 09-11-2008, 03:46 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,674

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by carrie66 View Post
Hi All,

I have a linux server running Fedore3 (yes, it needs update). I can't reach outside hosts by hostname but I can reach them by their IP address. Some examples to explain the problem more clearly.

If machine A has hostname somename.somedomain.org with IP xxx.xx.xx.x.
> ping somename.domain.org (failed)
ping: unknown host somename.somedomain.org
> ping xxx.xx.xx.x (Successful with the following message)
PING xxx.xx.xx.x (xxx.xx.xx.x) 56(84) bytes of data.
64 bytes from xxx.xx.xx.x: icmp_seq=0 ttl=64 time=1.73 ms
64 bytes from xxx.xx.xx.x: icmp_seq=1 ttl=64 time=0.115 ms
64 bytes from xxx.xx.xx.x: icmp_seq=2 ttl=64 time=0.124 ms

However, sendmail is working to some user@yahoo.com

Could anyone know how to fix this problem?
I appreciate your help very much! Thanks a lot!

carrie
A LOT of this depends on your network, and your environment. The short answer is, your DNS server(s) aren't working or answering you, or you don't have them set up.

If you're using DHCP, the DNS information is part of what gets set up when your system requests an address. If you're using a static IP, you have to set up this DNS server information in your /etc/resolv.conf file. Also, once its set up, you have to make sure you have a default route set up, so things know where to go.

If you're in a home environment, you probably use DHCP through your home router, out to the internet. Either your ISP is having DNS issues, or your router needs to be reset. Office environment? Check with your network admins, they should know DNS/routing info for whatever VLAN your machine is on.
 
Old 09-12-2008, 12:35 PM   #3
carrie66
LQ Newbie
 
Registered: Sep 2008
Location: San Diego, CA
Distribution: Fedora Core
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much. I found out there is a typo error in the /etc/resolve.conf where it wrote a wrong IP address. I changed it and it is now working.

thanks again!

Carrie
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Host lookup failure with Sendmail MattiasLofgren Slackware 4 05-14-2009 03:00 PM
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 07:59 PM
Host name lookup failure mauroblanc Linux - Networking 2 06-16-2005 02:09 PM
DHCP: Host name lookup failure kaloyer *BSD 2 07-08-2004 11:01 AM
getting an error 0.0.0.0:Host name lookup failure udayan Programming 2 08-22-2002 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration