- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: can ping ip_address but can not ping hostname
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2006 06:01 AM
тАО08-13-2006 06:01 AM
can ping ip_address but can not ping hostname
I am facing problem to ping host name. I have attached my hosts file and nsswitch.conf file. please help. I can not even ftp.
Rgds,
shovon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2006 06:06 AM
тАО08-13-2006 06:06 AM
Re: can ping ip_address but can not ping hostname
192.168.2.242 warid01.domain.com warid01
and change nsswitch.conf like
hosts files[NOTFOUND=continue] dns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2006 08:14 AM
тАО08-13-2006 08:14 AM
Re: can ping ip_address but can not ping hostname
192.168.0.1 kapilraj kaps
Where "kapilraj" is the actual name of the machine and "kaps" an alias. So, give it a try removing the duplicate entry in arguments. I don't have a box right infront of me else i could have tested it.
i.e change ur hosts file as follows,
127.0.0.1 localhost loopback
192.168.2.242 warid01
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2006 08:15 AM
тАО08-13-2006 08:15 AM
Re: can ping ip_address but can not ping hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2006 10:16 AM
тАО08-13-2006 10:16 AM
Re: can ping ip_address but can not ping hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2006 10:16 AM
тАО08-13-2006 10:16 AM
Re: can ping ip_address but can not ping hostname
hosts: files [NOTFOUND=continue] dns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2006 03:38 PM
тАО08-13-2006 03:38 PM
Re: can ping ip_address but can not ping hostname
As you said I have to modify in the host file like following pattern-
127.0.0.1 localhost loopback
192.168.2.242 warid01
I did it before but the result is same. Anyway I am changing it again. For the nsswitch file you recommended as under-
hosts: files [NOTFOUND=continue] dns
I need to know what would be this second word files? Will it be replaced by fileName/path or it would be just 'files'?
Please help.
Rgds,
shovon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2006 03:52 PM
тАО08-13-2006 03:52 PM
Re: can ping ip_address but can not ping hostname
could you please check the basics.
1. type hostname and check the what hostname set for the host. similary check the ip configuration by ifconfig
2. try check with nslookup
3. try changing nsswitch.conf
hosts: files [NOTFOUND=continue] dns
4. just try ping by name & Ip by moving the /etc/resolve.conf /etc/resolve.old. if not fruit result bring it back to original.
5. If all fails try one time reconfiguring the Network card via SAM.
Thanks and regards
V.Manoharan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2009 02:12 AM
тАО06-04-2009 02:12 AM
Re: can ping ip_address but can not ping hostname
You have must have configured the nsswitch.conf file incorrectly. It should contain the line:
hosts: files dns
You can view my article at http://www.melectrosoft.com/Linux/Administration/problem-ping-command-linux
Thank you
Manish Shrestha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2009 03:36 AM
тАО06-04-2009 03:36 AM
Re: can ping ip_address but can not ping hostname
The nsswitch.conf should read as:
hosts: files [NOTFOUND=continue] dns
Your /etc/hosts format should look similar to:
IP
Your alias can be a shortened version of the name or whatever you want, it's fine!
Run nslookup commands:
nslookup
nslookup
nslookup
Check the results - do they all match and find the same thing? And what found it, was it your /etc/hosts file or was it DNS?
You need to ensure you get the same results doing these reverse lookups - you need same results for /etc/hosts and DNS. To check DNS:
nslookup
nslookup
Hope this helps,
Regards,
Rita