Update: dns.py with support for IPv6 (Thanks @daboross