modify address_differ function follow RFC 952 hostname rules