- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unknown host on hpux11.23
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
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
10-25-2008 06:50 PM
10-25-2008 06:50 PM
unknown host on hpux11.23
sometimes my machine hostname displaying as "unknown".i have cheked in /etc/hosts and netconf files.is thery any other file to check it ?..and what is this entry in rclog indicates
"/sbin/rc2.d/S367swconfig start":
----------------------------
* Turning off all network based resolving services in
'/etc/nsswitch.conf'
* Setting up temporary hostname in '/etc/hosts'
* Restoring '/etc/hosts' to its original contents.
* Removing the temporary '/etc/nsswitch.conf'
regards
skr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2008 07:05 PM
10-25-2008 07:05 PM
Re: unknown host on hpux11.23
The /etc/nsswitch.conf file is used to configure which services are to be used to determine information such as hostnames, password files, and group files. The last two ones, password files, and group files in our case are not used, since we don't use NIS services on our server. Thus, we will focus on the hosts line in this file.
Example :-
cat 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 dns
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2008 07:49 PM
10-25-2008 07:49 PM
Re: unknown host on hpux11.23
hosts: files
to
hosts: files [NOTFOUND=continue] dns
Rds,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2008 08:01 PM
10-25-2008 08:01 PM
Re: unknown host on hpux11.23
-r--r--r-- 1 bin bin 566 Sep 3 2003 nsswitch.compat
-r--r--r-- 1 bin bin 391 Sep 3 2003 nsswitch.files
-r--r--r-- 1 bin bin 615 Sep 3 2003 nsswitch.hp_defaults
-r--r--r-- 1 bin bin 481 Apr 8 2005 nsswitch.ldap
-r--r--r-- 1 bin bin 551 Sep 3 2003 nsswitch.nis
-r--r--r-- 1 bin bin 604 Sep 3 2003 nsswitch.nisplus
how to check which file is using first ??i dont have resolv.conf .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2008 09:25 PM
10-25-2008 09:25 PM
Re: unknown host on hpux11.23
you can try touch /etc/nsswitch.conf
touch /etc/nsswitch.conf
chown bin:bin /etc/nsswitch.conf
Please update the file has below .. and try.. :)
vi /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 dns
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
or need check with you. "swlist" --> did you get any error unknow "host"
swlist -l --> can please post the output
Thanks,
Best Regards,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2008 11:36 PM
10-25-2008 11:36 PM
Re: unknown host on hpux11.23
rgds
skr