I'm trying to find a way of "identifying" anycast IPs. This turns out to be rather tricky, as it's (usually) dependant on BGP routes directing you to the nearest available host.
What are common techniques of identifying if a certain IP address is a unicast or anycast IP?
I've thought of tracerouting the IP several times and find any differences in the last hops (usually the datacenter where it resides), but with dynamic paths (sometimes you hop via switch-1, sometimes via switch-2) this turned out to be quite unreliable.