No, there is no general method to see if two identifiers (names or addresses) go to the same host. One example: 192.0.2.1and 2001:db8::bad:dcaf. They are the same? (Answer: I can not say)
There is no general concept of host identification on the Internet. Some protocols have such a concept, for example SSH (connect to hosts, see if fingerprints match) or HIP (check keys), but you depend on this protocol, which is activated for these specific machines.
Some heuristics can help (a fingerprint on a machine, for example), but it will be far from 100%.
source
share