Don't do DNS lookups on null hosts.