- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Basic DNS resolution problem
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
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
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
01-16-2007 10:30 PM
01-16-2007 10:30 PM
I am completely new to HPUX.
The system has an /etc/hosts file with the following entries:
10.0.0.104 apollo apollo
127.0.0.1 localhost loopback
(10.0.0.104 is the system's own IP address.)
Still, there seems to be DNS resolution problem:
# ping apollo
ping: unknown host apollo
Should I, perhaps, change the content of the /etc/resolv.conf file? This file currently contains the following entries:
# cat /etc/resolv.conf
domain localdomain
nameserver 10.0.0.100
nameserver 10.0.0.1
(The nameservers listed don't now about apollo.)
Any help appreciated.
Thanks
Peter
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2007 11:19 PM
01-16-2007 11:19 PM
Re: Basic DNS resolution problem
and welcome to the forums !
Have you checked your nsswitch.conf to check in what order you will try to resolve your hostname target.
You can modify via SAM or editor.
See "man nsswitch.conf"
We normally use the order:
files (/etc/hosts)
DNS
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2007 11:24 PM
01-16-2007 11:24 PM
SolutionAgreed with the above answer, your /etc/nsswitch.conf your be looking like this:
# cat /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# @(#)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 [NOTFOUND=continue] dns
ipnodes: files
services: files
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2007 11:50 PM
01-16-2007 11:50 PM
Re: Basic DNS resolution problem
10.0.0.104 apollo apollo
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2007 11:56 PM
01-16-2007 11:56 PM
Re: Basic DNS resolution problem
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2007 12:17 AM
01-17-2007 12:17 AM