views:

72

answers:

0

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: 69.63.189.11
  IPv4: 69.63.189.16
  IPv4: 69.63.181.12

I know, however, that there are quite a few more addresses (at least 20) for facebook.com as the following answer suggests:

http://wiki.answers.com/Q/Discuss:What_is_the_IP_address_for_Facebook

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?