- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- host, resolv.conf, nsswitch.conf - Argh!
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
тАО06-11-2002 03:57 PM
тАО06-11-2002 03:57 PM
This machine is an internal development box. The machine is a K460 running HP/UX 11.0.
Here are the relevant lines from the various files
hostname : verbie
ip : 192.168.1.34
resolv.conf
domain esdiconsulting.com
nameserver 208.16.180.5
nsswitch.conf
hosts: files [NOTFOUND=continue] dns [NOTFOUND=return]
hosts
127.0.0.1 localhost loopback
192.168.1.34 hnsdev.esdiconsulting.com verbie
The machine is not listed in a DNS server and not accessed from the Internet.
Does this all look correct?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2002 04:05 PM
тАО06-11-2002 04:05 PM
Solution/etc/nsswitch,conf
hosts: files [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
WIth the hosts file, why have a fully qualified name listed, why not just the host?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2002 04:11 PM
тАО06-11-2002 04:11 PM
Re: host, resolv.conf, nsswitch.conf - Argh!
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="192.168.1.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
Resolv.conf looks fine (bare minimum.. but works).
What dies (swagent?), or what can't you get out to?
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 07:31 AM
тАО06-12-2002 07:31 AM
Re: host, resolv.conf, nsswitch.conf - Argh!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 09:53 AM
тАО06-12-2002 09:53 AM
Re: host, resolv.conf, nsswitch.conf - Argh!
Michael
-------
I wasn't sure I needed a fully qualified hostname in hosts. Just one of the things I tried when things "weren't" working.
Jon
---
Where do the route entries go?
My resolv.conf file has more info (nis, etc). I was just posting the part I assume were important to my problem.
I have Oracle 8.1.6/WebDB on the machine and they have been running for several weeks without a problem. The problem I was having involved running a Coldfusion MX server on the same machine. I was having problems that appeared to be name resolution.
I think I needed to reboot when I made one of the changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 11:04 AM
тАО06-12-2002 11:04 AM
Re: host, resolv.conf, nsswitch.conf - Argh!
/etc/rc.config.d/netconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 11:26 AM
тАО06-12-2002 11:26 AM
Re: host, resolv.conf, nsswitch.conf - Argh!
Putting the entries in /etc/rc.config.d/netconf covers you for the next reboot. To get the route setup NOW - you either have to bounce the net daemon after editing the netconf file
/sbin/init.d/net stop
/sbin/init.d/net start
or issue the route add command
route add default 192.168.1.1 1
The last value is hop count to the router - usually 1.
Check the routing tables with
netstat -rn
You should now see your default route - test the actual route by trying to ping something on another subnet.
HTH,
Jeff