On (07/10/09 09:53), Sebastien Roy wrote: > > This doesn't bolster either viewpoint, but an observation: I certainly > hope that DNS is not the recommended name service for addresses to be > configured on the system. /etc/hosts is the only viable place for those > name->address mappings for obvious reasons.
true, but the library does not have control over the search order for the resolver. Morever, there's no API today to say "search /etc/hosts only" (other than doing something gross like parsing the file itself :-() Also, even in /etc/hosts or /etc/ipnodes, you could validly have multiple entries for the same hostname. --Sowmini
