Name to IPv4 or IPv6 address resolving is usually done using a libc resolver library. There are some issues known using the function getaddrinfo.
More info can be found at Linux & IPv6: getaddrinfo and search domains - Research and RFC 3484 on Linux.
More to be filled later...