prefer local dns if hostname is not polluted