>>>>> "Philip" == Philip Blundell <Philip.Blundell@pobox.com> writes:
Philip> The getaddrinfo() function should return *all* the matching
Philip> addresses as a linked list. It is up to the calling application
Philip> to decide the order in which it uses them.
Philip> If you think that some addresses are missing, can you give more
Philip> details?
What I mean is that I expect NS switch to do the following:
for each "order" entry in host.conf (hosts, bind, etc)
for each protocol suite (IPv6, IPv4)
if the address is found
stop processing and return all info found.
What I think it is doing is
for each protocol suite (IPv6, IPv4)
for each "order" entry in host.conf (hosts, bind, etc)
if the address is found
stop processing and return all info found.
I might be mistaken about what getaddrinfo should do. I just think that
it is important to be able to stop generating DNS requests, when a more
close source already has the entry.
I found this a big problem basically because my machine is within a local
network masquaraded by only a server with a dialup link. DNS queries is
very slow (it takes 1 minute to dialup my provider and have everything
settled before a DNS request can be served). If my /etc/hosts file already
contains the name/address pair of a host (basically meaning that it is a
host in the local network), I really don't want a query to the remote DNS
server.
Isaac.
Attachment:
pgpfNFIMghYWj.pgp
Description: PGP signature