Propagate ipv6 option to dns lookup function.
Merge pull request #4638 from s0undt3ch/merges/tohojo

Propagate ipv6 option to dns lookup function.