Tests if this and
addr2 have the same "name".
Comparing by name normally means comparing the addresses by their hostnames. But if the address was originally created using an IP address literal, then it will be compared by that instead.
In particular, if "www.example.com" has the IP address 10.0.0.1, and this was created with the name
addr2 was created with the name "10.0.0.1", then they will compare as unequal for purposes of
This would be used to distinguish hosts in situations where different virtual hosts on the same IP address should be considered different. Eg, for purposes of HTTP authentication or cookies, two hosts with the same IP address but different names are considered to be different hosts.
See also equal_by_ip, which compares by IP address rather than by name.
a Address with a resolved name
another Address with a resolved name
whether or not this and