I built the getaddrinfo() sample provided at http://beej.us/guide/bgnet/html/multi/syscalls.html#getaddrinfo
When I run it on an example domain, such facebook.com it lists three (3) IP address:
IPv4: 220.127.116.11 IPv4: 18.104.22.168 IPv4: 22.214.171.124
I know, however, that there are quite a few more addresses (at least 20) for facebook.com as the following answer suggests:
That answer is a snapshot in time and could change in the future. I would like to be able to implement some code that would list all the IP addresses used by a domain at the time running that code.
Is there a way to accomplish that? If so, how?