1832933 Members
2602 Online
110048 Solutions
New Discussion

nsswitch file problem

 
SOLVED
Go to solution
Julian Snype
Advisor

nsswitch file problem

Greetings everyone,

OS HP-UX 11i v1
Hardware j5000

I was trying to install new software using the SAM access software management and realize that I may have a problem with my nsswitch.conf file.
Current configuration - Hosts: dns files

The follow occurs that I know of with the current configuration:
#. CAN bring up my web browser home page (ok)
# CAN FTP and use the Internet with the current configuration (ok)
# CANNOT view installed software.
# CANNOT install software depot to local host with the current configuration. I receive the following message “Could not contact host “jteckux” make sure the hostname is correct and the an absolute pathname is specific (beginning with “/”)

It seems to me that it does not look at my hosts file. Why?


If I change the nsswitch.conf file to: Hosts: files dsn.
I CANNOT bring up my web browser home page or use the Internet
I CAN FTP and PING outside my firewall (ok)
I CAN view installed software. I CAN view installed software(ok)

What changes must I make to keep from editing this file and flipping back and forth to different configurations?

Thanks
Julian
3 REPLIES 3
Geoff Wild
Honored Contributor
Solution

Re: nsswitch file problem

Try:

hosts: files [NOTFOUND=continue] dns [NOTFOUND=return]


Or

hosts: dns [NOTFOUND=continue] files [NOTFOUND=return]


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Mridul Shrivastava
Honored Contributor

Re: nsswitch file problem

Try copying nsswitch.files to nsswitch.conf as follows:

# cd /etc

# cp nsswitch.files nsswitch.conf

and change the "hosts" line to:

hosts: files [NOTFOUND=continue] dns
Time has a wonderful way of weeding out the trivial
Julian Snype
Advisor

Re: nsswitch file problem

Solutions were provided that fixed my nsswitch problem. Could not award points to Steven E.Protter, his response was removed from my thread. Thanks anyway.