Update dns.py

Merged Chris McCoy's suggestion from https://github.com/phracker/textual-scripts/issues/3