I built the getaddrinfo() sample provided at http://beej.us/guide/bgnet/output/html/multipage/syscalls.html#getaddrinfo
When I run it on an example domain, such facebook.com it lists three (3) IP address:
IPv4: 126.96.36.199 IPv4: 188.8.131.52 IPv4: 184.108.40.206
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?