- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System pings an IP address but won't ping a host n...
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
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
тАО12-15-2000 12:14 AM
тАО12-15-2000 12:14 AM
I have a poblem defining any new entry in the /etc/hosts file. Whenever I add a new entry there the system will not be able to ping it by host name although it can ping it by IP address.
More over there is an entry that I needed to remove from the /etc/hosts file and the system still remembers the host name and can ping it.
Any body have an idea what could cause this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2000 12:27 AM
тАО12-15-2000 12:27 AM
Re: System pings an IP address but won't ping a host name
Check the file /etc/resolv.conf
If you have a DNS server defined in /etc/resolv.conf check the file
/etc/nsswitch.conf
For hosts it should have the line:
hosts : dns [NOTFOUND=continue UNAVAIL=return TRYAGAIN=continue] files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2000 12:36 AM
тАО12-15-2000 12:36 AM
Solutiontype the following command:
# nslookup your_host_name
It will surely show that you're using DNS to resolve your hostnames.
then:
# nslookup
> policy
will show you in which sequence you are resoving hostnames (FILES - DNS or DNS - FILES)
You can easily change that sequence by editing the file /etc/nsswitch.conf as said here above.
man 4 resolver
man 4 switch
will tell you everything you need to know about those 2 files.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2000 01:37 AM
тАО12-15-2000 01:37 AM
Re: System pings an IP address but won't ping a host name
hosts: dns[NOTFOUND=continue UNAVAIL=continue] files
This first use the DNS Server, if the hostname is not found there, then it will use your lokal /etc/hosts
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2000 02:48 AM
тАО12-15-2000 02:48 AM
Re: System pings an IP address but won't ping a host name
I updated the NIS hosts MAP using SAM>Networking and comm. > hosts > then actions> Build/Push NIS hosts map and that resolved the problem.
Regards.