Operating System - HP-UX
1836995 Members
2301 Online
110111 Solutions
New Discussion

NIS:low response when tried to ping a none-exist host

 
SOLVED
Go to solution
leereg_6
Advisor

NIS:low response when tried to ping a none-exist host

Hi, Gurus,
When I tried to ping a non-exist host on my nis slave server. It took long time to prompt the following message.
# ping dds
ping: unknown host dds


Does my NIS master or slave has some problem? How to improve it?
Thanks a lot!


4 REPLIES 4
U.SivaKumar_2
Honored Contributor
Solution

Re: NIS:low response when tried to ping a none-exist host

Hi,

Can you paste the contents of /etc/nsswitch.conf file ?

regards,
U.SivaKumar
Innovations are made when conventions are broken
Donald Kok
Respected Contributor

Re: NIS:low response when tried to ping a none-exist host

Hi,

Mostky this is due to problems with resolving the IPadres from the hostname. You can check this by
nslookup dds
the configuration of hostname resolving is done in two file: /etc/resolv.conf and /etc/nsswitch.conf; whixh both have a decent man-page.

Hope this helps
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
leereg_6
Advisor

Re: NIS:low response when tried to ping a none-exist host

# cat nsswitch.conf
#
# /etc/nsswitch.nis:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd: files nis
group: files nis

# consult /etc "files" only if nis is down.
hosts: files nis dns
ipnodes: files
# Uncomment the following line and comment out the above to resolve
# both IPv4 and IPv6 addresses from the ipnodes databases. Note that
# IPv4 addresses are searched in all of the ipnodes databases before
# searching the hosts databases. Before turning this option on, consult
# the Network Administration Guide for more details on using IPv6.
#ipnodes: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
ethers: nis [NOTFOUND=return] files
netmasks: nis [NOTFOUND=return] files
bootparams: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files

netgroup: nis

automount: files nis
aliases: files nis

# for efficient getservbyname() avoid nis
services: files nis
sendmailvars: files
printers: user files nis

auth_attr: files nis
prof_attr: files nis
project: files nis
U.SivaKumar_2
Honored Contributor

Re: NIS:low response when tried to ping a none-exist host

Hi,

modify the hosts: line to this.

hosts: nis files

Try again , does the problem exists ?

regards,
U.SivaKumar
Innovations are made when conventions are broken