Fix handling of IPv6 when adding to hosts.deny. This fixes incorrect syntax in the file.
Handle name resolution failure: display unknown instead of empty/garbish string.