I have recently changed the IP address for a particular domain, call it
example.com. I know that it takes time for the DNS change to propagate, and it's still early enough that the propagation is not complete.
I've noticed that running an ANY query gives different results from running an A-record query. For example ...
% host -t a example.com example.com has address THE.OLD.IP.ADDRESS % host -t any example.com example.com has address THE.NEW.IP.ADDRESS
I know that eventually, the DNS will fully propagate, and the A-record query will then return THE.NEW.IP.ADDRESS. But I'm wondering if someone could explain why an ANY query returns the new IP address, while the A-record query still returns the old IP address, until the propagation is complete.
This matters to me because application software that resolves domain names seem to do the equivalent of the A-record query and not the ANY query, and therefore, those applications still resolve the IP address to the old value until DNS propagation is complete.
I'm just looking for an explanation for why ANY results seem to propagate more quickly than A-record results ... this is for my own understanding and edification.
Thank you very much.