Operating System - HP-UX
1835354 Members
3356 Online
110078 Solutions
New Discussion

nsswitch.conf ipnodes problem

 
yangk
Frequent Advisor

nsswitch.conf ipnodes problem

Hi,

In the HP-UX11.11, if the nsswitch.conf config the ipnodes like this:
ipnodes: files dns ldap

and in the /etc/hosts there is a line with IPv6
address.
16.157.129.222 sshpa3.chn.hp.com sshpa3
fe80::216:35ff:fe73:6122 sshpa3.chn.hp.com sshpa3


In this situation, when I use the telnet to login to the localhost:
root@sshpa3# telnet sshpa3
or telnet sshpa3.chn.hp.com
then can not login to the system.

But I use the "telnet localhost or 127.0.0.1 or telnet 16.157.129.222(ip address of sshpa3)"
they can login to the system.

So I think there is some with the ipnodes option in the nsswitch.conf file.
But I don't know the exact reason of it.

Thanks!
4 REPLIES 4
Ganesan R
Honored Contributor

Re: nsswitch.conf ipnodes problem

Hi,

For your confirmation and checking, you can always comment out the line or rename the nsswitch.conf file and try..
Best wishes,

Ganesh.
Jeeshan
Honored Contributor

Re: nsswitch.conf ipnodes problem

sreekanthtm
Trusted Contributor

Re: nsswitch.conf ipnodes problem

Hi,

Problem is with the /etc/hosts file. Make sure there is no typo error in /etc/hosts.

You can resolve the issue by editing the /etc/nsswitch file also. change the sequence by ipnodes: dns files ldap

Try to connect to sshpa3.chn.hp.com from any other Server in the n/w.

Rgds
sreekanth
yangk
Frequent Advisor

Re: nsswitch.conf ipnodes problem

If I comment out the ipnods option,
it can work.
or I comment out the IPv6 address in /etc/hosts file. It alse work well.