Add DNS lookup script.

`host` and `dig` and `nslookup` all try to talk to DNS servers directly,
instead of just calling `gethostbyname(3)`. This returns incorrect results
on systems with complicated name lookup rules, such as the Mac OS X DNS
Search Strategy outlined in `resolver(5)`.

A few lines of Python fixes that.