- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DNS instead of /etc/hosts
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
тАО07-25-2001 10:49 AM
тАО07-25-2001 10:49 AM
When I do ftp or telnet into a host other than those specified in /etc/hosts, I have to use the IP. This usually involves pinging the address from my PC just to get the IP. Very annoying. Where can I find information on correcting my problem and telling my box to look at some DNS to resolve hostnames. I've read the "named" man page, but I think I'm missing something. How do I tell "named" where to look?
BTW, I'm on HP-UX 11.00.
Thanks,
Blake
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2001 10:51 AM
тАО07-25-2001 10:51 AM
Re: DNS instead of /etc/hosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2001 10:59 AM
тАО07-25-2001 10:59 AM
SolutionIn the /etc/resolv.conf...
domain
search
nameserver
nameserver
In the /etc/nsswitch.conf, change the hosts entry to read...
hosts: files [NOTFOUND=CONTINUE] dns
You should be able to do DNS resolution of host names not in your host file now.
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2001 11:02 AM
тАО07-25-2001 11:02 AM
Re: DNS instead of /etc/hosts
You just need to do a couple of things.
1. Create or modify /etc/resolv.conf to look as follows:
domain www.mydomain.com
nameserver xxx.xxx.xxx.xxx (primary DNS)
nameserver xxx.xxx.xxx.xxx (secondary DNS)
2. Create or modify /etc/nsswitch.conf to have an entry as follows:
hosts: files [NOTFOUND=continue] dns
That should do it.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2001 11:04 AM
тАО07-25-2001 11:04 AM
Re: DNS instead of /etc/hosts
set NAMED=1
Client side
2. /etc/resolv.conf
add search list and nameserver entires
3. /etc/nsswitch.conf
...
hosts: dns files
...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2001 11:18 AM
тАО07-25-2001 11:18 AM