LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-14-2009, 10:34 AM   #1
s_linux
Member
 
Registered: Jul 2009
Posts: 83

Rep: Reputation: 15
unable to ping with hostname


i have hosts file as below

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
111.222.22.222 hostname.xxx.xxx.com hostname


I can able to ping with IP and also able to ping with hostname locally but not from out side. Any ideas?
Thanks
 
Old 07-14-2009, 10:45 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Hello s_linux

On the outside system, how should it know that hostname.xxx.xxx.com is 111.222.22.222? The outside systm needs some way to find out; maybe its own hosts file, maybe DNS.

You can test this on the outside system at the command line by
Code:
nslookup hostname.xxx.xxx.com
Best

Charles

Last edited by catkin; 07-14-2009 at 10:46 AM. Reason: Typo
 
Old 07-14-2009, 10:50 AM   #3
s_linux
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 15
I tried that too...

it says hostname.xxx.xxx.com cant find hostname: Non Existent domain.
we have dns server setup and below is my resolve.conf

nameserver 177.122.12.12
nameserver 177.122.12.13
search xxx.xxx.com

Thanks
 
Old 07-14-2009, 12:07 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Hello s_linux

Do the DNS servers at 177.122.12.12 and 13 have records for hostname.xxx.xxx.com? Only then can they resolve the name to the address. If you can't add hostname.xxx.xxx.com to 177.122.12.12 and 13 then you could add hostname.xxx.xxx.com to the local hosts file. That's tedious if there are many outside systems to configure. You may also need to reconfigure the name resolution method used on the outside systems to use the local hosts file as well as DNS.

Best

Charles
 
Old 07-14-2009, 12:46 PM   #5
s_linux
Member
 
Registered: Jul 2009
Posts: 83

Original Poster
Rep: Reputation: 15
Hi Mark,

Thanks for your quick reply...

Do the DNS servers at 177.122.12.12 and 13 have records for hostname.xxx.xxx.com? -- i dont know how to check this.

then you could add hostname.xxx.xxx.com to the local hosts file. -- yes I did add hostname (111.222.22.222 hostname.xxx.xxx.com hostname)to /etc/hosts file. But no luck. I'm missing something else..but not sure what it is.

Thanks again.
 
Old 07-15-2009, 02:01 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Hello s_linux

Quote:
Originally Posted by s_linux View Post
Do the DNS servers at 177.122.12.12 and 13 have records for hostname.xxx.xxx.com? -- i dont know how to check this.
Where did the name hostname.xxx.xxx.com come from? Do the people who configure the 177.122.12.12 and 13 DNS servers know about hostname.xxx.xxx.com and its IP address?

Quote:
Originally Posted by s_linux View Post
I did add hostname (111.222.22.222 hostname.xxx.xxx.com hostname)to /etc/hosts file. But no luck. I'm missing something else..but not sure what it is.
Probably the name resolution method is not configured to search the hosts file. What is the operating system on this "other" system?

Best

Charles
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to ping hostname cov Linux - Networking 4 06-19-2008 02:02 PM
Unable to ping hosts by hostname 1337_penguin Linux - Networking 5 08-27-2006 08:37 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 10:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 05:57 AM
Unable to ping hostname? robertmarkbram Linux - General 2 11-28-2003 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:36 AM.

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