Always allow DNS resolution of local host to succeed, even if it is not literal "localhost"

This allows libraries to use InetAddress.getLocalHost() to get the hostname without
that counting as a DNS resolution