- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/hosts didn't resolve 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
Forums
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
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
тАО10-17-2008 10:23 PM
тАО10-17-2008 10:23 PM
would like to seek your advice.
i have add entry inside /etc/hosts, but when i ping the hostname it says unknown host. i check the permission of /etc/hosts, all are same with the working server. the only different is this non-working server is hp integrity virtual machine. do we miss anything during the configuration that could cause the /etc/hosts didn't resolve the hostname.
hope to hear from you. thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2008 10:26 PM
тАО10-17-2008 10:26 PM
Re: /etc/hosts didn't resolve hostname
our other ivm is working. only this ivm is not working. what cause this? hope to hear from you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2008 11:14 PM
тАО10-17-2008 11:14 PM
Re: /etc/hosts didn't resolve hostname
check the dns configuration.
you need to add a route to the other network domain.
check out route add this can also be done through sam on hp-ux
use netstat -rn on a machine on the network and add the route entries to the machine you have.
Thanx
-VRS-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2008 11:16 PM
тАО10-17-2008 11:16 PM
Re: /etc/hosts didn't resolve hostname
other wise check with your network team to give the permission to access.
Thanx
-VRS-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2008 05:53 AM
тАО10-18-2008 05:53 AM
Re: /etc/hosts didn't resolve hostname
> i have add entry inside /etc/hosts [...]
I can't see it. Nor can I see what you did
as your "ping" command.
> [...] do we miss anything during the
> configuration [...]
How could anyone know what you did (or
missed)? My psychic powers are too weak.
What's in /etc/nsswitch.conf? (I can't see
that, either.) "man nsswitch.conf". It's
possible (although unlikely) that you're not
looking at /etc/hosts.
Strictly speaking, /etc/hosts does not
resolve host names. The OS resolves host
names, and it does so according to the
specifications in /etc/nsswitch.conf, which
may or may not tell it to look at /etc/hosts,
NIS, DNS, LDAP, and so on. Also what to do
if a name is not found anywhere in the
search.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2008 03:35 PM
тАО10-18-2008 03:35 PM
Re: /etc/hosts didn't resolve hostname
nsquery hosts
That will show you exactly how the OS will lookup a hostname. If you have one or more DNS servers in /etc/resolv.conf, then the default is to completely ignore /etc/hosts. Read the man page on nsswitch.conf and then use the recommended line for hostname resolution:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
This is recommended because it is much more efficient and timely changes can be made without bothering the DNS support team.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2008 10:18 PM
тАО10-18-2008 10:18 PM
Re: /etc/hosts didn't resolve hostname
could you please check /etc/nsswitch.conf file and send the output.
If you are not using DNS or LDAP please overwrite /etc/nsswitch.files to /etc/nsswitch.conf as given below.
#cp /etc/nsswitch.files /etc/nsswitch.conf
Manoj K
Manoj K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2008 11:03 PM
тАО10-18-2008 11:03 PM
Re: /etc/hosts didn't resolve hostname
we are not using dns, we are resolving from /etc/hosts.
from our /etc/nsswitch.conf
#
# @(#)B11.23_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files
group: files
hosts: files
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
hope to hear from you. thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2008 11:09 PM
тАО10-18-2008 11:09 PM
Re: /etc/hosts didn't resolve hostname
Using "files" for the hosts policy.
Searching /etc/hosts for flamingo
flamingo was NOTFOUND
Switch configuration: Allows fallback
All name services have been searched
but inside /etc/hosts, the hostname flamingo and the ip is there. ping the ip is working, but ping the hostname is not working. there is no firewall in between either. hope to hear from you. thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2008 12:03 AM
тАО10-19-2008 12:03 AM
SolutionIt looks like your /etc/hosts is a bit corrupted.
Can you delete the record with flamingo and verify that all entries in the /etc/hosts are resolved with nslookup, e.g.
nslookup localhost
nslookup anotherbird , whatever
Check this for records before and afer the flamingo record.
If everything is OK, add flamingo record and
run
nslookup flamingo
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2008 01:29 AM
тАО10-19-2008 01:29 AM