Enhanced validation of general DNS servers and gateways