Operating System - HP-UX
1745817 Members
4272 Online
108722 Solutions
New Discussion

hostname resolution not working with lan0 down on hpux

 
SOLVED
Go to solution
Himanshu_Sourav
Occasional Advisor

hostname resolution not working with lan0 down on hpux

 for a set of private IPs on same subnet on lan1, whenever the lan0 is down, host name resolution doesn't work and gets stuck.

 

# ifconfig lan0 down

# ping clientdp

<<no response, stuck>>

 however when using ip for the same instead of hostname, it works

 

# ping 192.0.0.12
PING 192.0.0.12: 64 byte packets
64 bytes from 192.0.0.12: icmp_seq=0. time=0. ms

using hostname, no response

# ping serverdp

<<no response, stuck>>

when lan0 is up, it works fine

# ifconfig lan0 up
# ping clientdp
PING clientdp: 64 byte packets
64 bytes from 192.0.0.12: icmp_seq=0. time=0. ms

# ping serverdp
PING serverdp.ind.hp.com: 64 byte packets
64 bytes from 192.0.0.13: icmp_seq=0. time=1. ms

the objective is that Dataprotector uses the private IPs only, and not public IPs for taking backup, but due to lack of host name resolution with lan0 down, the backup doesnt even start. any other idea on forcing dp to use only the private ip for communication/backup process.

 

ps:/etc/hosts file has "192.0.0.12      clientdp" & "192.0.0.13 serverdp" as alias

1 REPLY 1
Himanshu_Sourav
Occasional Advisor
Solution

Re: hostname resolution not working with lan0 down on hpux

follwing edit in the /etc/nsswitch.conf file did the trick fro me

 

ipnodes : files [NOTFOUND=CONTINUE] dns