Finished dns.py