Propagate ipv6 option to dns lookup function.