Avoid DNS lookups for localhost as well.