SCRIPTS: Removing unneeded method in dns.py

Found a better way to do this