ipnodes v hosts

What's the technical difference between an ipnode and a host.

I have a problem that my Solaris host has a one hour delay in tracking a 3DNS change elsewhere in the network (ping -s alias).

nscd.conf has host caching disabled, but nscd debug has shown that I'm doing a getipnodebyname rather than gethostbyname. ipnodes has a 3600 positive-time-to-live in the configuration

They are the same system call per the man page except the getipnodeby* functions support IPv6 and IPv4.

       The  getipnodebyname() and getipnodebyaddr() functions return the names
       and addresses of a network host.  These functions return a  pointer  to
       the following structure:

           struct  hostent {
               char  *h_name;
               char **h_aliases;
               int    h_addrtype;
               int    h_length;
               char **h_addr_list;
           };

       These functions replace the gethostbyname(3) and gethostbyaddr(3) func
       tions, which could only access the IPv4 network  address  family.   The
       getipnodebyname()  and  getipnodebyaddr() functions can access multiple
       network address families.
1 Like