Operating System - HP-UX
1834008 Members
1797 Online
110063 Solutions
New Discussion

Re: nslookup does not work with NIS+

 
SOLVED
Go to solution
Tim D Fulford
Honored Contributor

nslookup does not work with NIS+

I have just moved one of our servers to a NIS+ master. However, nslookup does not work, it complains that nisplus (token in nsswitch.conf file) is not supported! It will resolve hostnames using NIS+ tables as /ping/ftp/nsquery hosts/ work.

In the man page for nsswitch.conf there are some libs mentioned /usr/lib/nss_nisplus.1. (among others). This lib does not exist on my system. I've also applied the patch PHNE_23249 ONC/NFS patch

Any takers!!

contents of /etc/nsswitch.conf
:
hosts: nisplus [NOTFOUND=continue] files
:
-
4 REPLIES 4
Alex Glennie
Honored Contributor
Solution

Re: nslookup does not work with NIS+

not my area but found the following which i expect explains your problem :

A NIS+ client has nisplus listed in the hosts line of
/etc/nsswitch.conf. However, nslookup does not appear torecognize nisplus as a valid service:

# nslookup
*** Unknown source : nisplus. Not Supported
*** You have defind one or more supported sources.
*** Please modify your configuration file and try again
*** or you will get unreliable information.
RESOLUTION
This is an expected result as nslookup does not support the use of
NIS+. This is evident from the nslookup(1) man page:

"Note, NIS+ is not supported by nslookup. If the hosts source nisplus is
found in the /etc/nsswitch.conf file. It will be ignored."

Instead, another resolver such as nsquery should be used as
nsquery does support the use of nisplus within
/etc/nsswitch.conf.

NOTE: There has been an Enhancement Request JAGac77715 submitted to
to have the nslookup error refer the user to a more suitable resolver when
nisplus is present in /etc/nsswitch.conf.
Tim D Fulford
Honored Contributor

Re: nslookup does not work with NIS+

Alex

Thanks. However, if you do (on HP-UX 11.00)
# man nsswitch.conf
Look towards the bottom it mentions files & /usr/lib/nss_nisplus.1 in particular. From this I infered that these libraries allow the nisplus (files/nis/compat) tokens to work! Where do I get these nss_???.1 librarys from?

Tim
-
Alex Glennie
Honored Contributor

Re: nslookup does not work with NIS+

I suspect as our hpux nis/nis+ systems in the UKRC do not have these libs and NIS support have not heard of them, that as NIS is a "Sun baby" that the man page is orientated towards Sun systems.

A colleague has just checked the Sun tech page out and it would appear that this is the case ..... but if anyone's certain of this please post !
Tim D Fulford
Honored Contributor

Re: nslookup does not work with NIS+

Many thanks for the replies. Sorry I could not award more points (my interpretation of the guidelines!)

Super annoying! As it happens nslookup does work on NIS+ clients (well it did on mine) despite saying it will not!!


-