[CentOS] inconsistent DNS results - ping vs dig vs nslookup

John Hodrien J.H.Hodrien at leeds.ac.uk
Thu Jun 23 11:18:17 UTC 2011


On Thu, 23 Jun 2011, Giles Coochey wrote:

> Well, if you have access to the source, you can probably modify some
> constants to disable particular protocols, or there may be compile time
> options already - it would be nice to disable automatically on runtime if
> the host does not have a IPv6 protocol stack.
>
> The system calls in question are:
>
> getaddrinfo(3)
> http://www.kernel.org/doc/man-pages/online/pages/man3/getaddrinfo.3.html
>
> or in older software:
>
> gethostbyname(3)
> http://www.kernel.org/doc/man-pages/online/pages/man3/gethostbyname.3.html

My understanding was that AI_ADDRCONFIG does exactly that, only doing a given
lookup if IPv6 is configured.  If that's the case, then it's just woefully
underused.

jh



More information about the CentOS mailing list