Inherit nameserver(s) unless is localhost, in which case use

This fixes an issue on MCF where warden containers were unable to resolve any DNS because nameserver was set to localhost.