I have an nis server running on solaris. I am using the list function in the DirContext java class to discover the hosts. For example: ctx.list("host") returns the hosts in the hosts file. The problem is, there are also hosts in the ipnodes file.. How do I discover those hosts? (ctx.list("ipnodes") and ctx.list("ipnode") return a naming exception.)
The nsswitch.conf file has these two lines:
hosts: nisplus [NOTFOUND=return] files
ipnodes: nisplus [NOTFOUND=return] files