How can I get all IPs of a domain name, say, www.google.com?
Of course, nslookup and host command will give me IPs of a domain. But what shall I do if I want a list ALL (or, at least a lot more than just one or two..) IPs of that domain?
|
How can I get all IPs of a domain name, say, www.google.com? Of course, nslookup and host command will give me IPs of a domain. But what shall I do if I want a list ALL (or, at least a lot more than just one or two..) IPs of that domain? | |||
|
feedback
|
|
Try doing | |||||||||||||
feedback
|
|
You might use the actual whois command, which should work on any IP address. The whois command will also return information such as the numbers of network bits (17). From this, you can determine the actual number of IP addresses. For example, if I whois the IP address 209.85.135.147, I will get:
The /17 means that a sub-class-B network, and that the number of possible addresses is : 2^(32-17) - 2 or 2^15 - 2 or 32,768 - 2 or 32766 possible IP addresses. The -2 is because of the very first address (the network address 209.85.128.0) , and the very last one, which is the broadcast address (209.85.255.255), both addresses cannot be used to point to a host. This is for IPv4 addresses, of course. The whois will return different information when you use a domain name such as google.com. Finally, keep in mind that the returned IP for a host name can depend on the country where you actually are. host google.com will return a single IP address when queried from Ottawa, Canada.
| |||||
feedback
|
|
You could give robtex a shot, it's pretty comprehensive. | |||||||
feedback
|