Final tests for dnsutil

Wrote some final tests for the dnsutil module, cleaned up some potential pylint errors, and fixed a small logical error in the ```_to_seconds``` function.