Skip to content

Instantly share code, notes, and snippets.

@kbarber
Created June 23, 2014 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbarber/eb870d1363d7d2d666ed to your computer and use it in GitHub Desktop.
Save kbarber/eb870d1363d7d2d666ed to your computer and use it in GitHub Desktop.
inet6 sets RES_USE_INET6 in _res.options. This has the
effect of trying a AAAA query before an A query inside
the gethostbyname(3) function, and of mapping IPv4
responses in IPv6 "tunneled form" if no AAAA records
are found but an A record set exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment