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

Is it maybe possible to configure the nis server to return both hosts and ipnodes for ctx.list("host")?