On Mon, Jul 10, 2006 at 09:42:09AM -0700, Darren Dunham wrote:
> Is there some reason that the standard network configuration routines put
> the local host IP address in both inet/hosts and inet/ipnodes?

We never should've had separate files.

> I can see arguments for one or the other with v4 addresses, but having both
> doesn't seem as useful since only one is used by name lookups.  At least if
> the address wasn't in the hosts file, admins wouldn't assume that it was
> valid and that changing the address would do something.

It's a big mess.  We never should've had two separate files for this.  In
fact, it's now fixed in Nevada (bugid 6219146).

You should probably keep both up to date.  When an app calls getaddrinfo() or
(the now deprecated) getipnodebyname() for IPv4 addresses, if the IPv4
address is not in ipnodes, it fails.  That's the underlying problem.

NOTE:  I haven't been following this as closely as I should have.  Others may
have more useful information than I.  Now that the week of the Fourth is
over, many other folks are wading through their backlogged e-mail.  Watch
this space.

Thanks, and sorry for not being of more complete assistance,
Dan

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to