I need to find all IP addresses of certain websites (e.g. netflix.com). However, I want to use the Dig command but when I do something like
$ dig TXT +short netflix.com
and gives me the following data. First, what does this mean. I have all of google IP addresses by the way. But not sure about amazonses.com. I also thing the IP addresses is giving me is very limited.
"v=spf1 ip4:69.53.224.0/19 ip4:165.193.233.164/30 ip4:205.139.44.20 ip4:66.150.112.120
ip4:205.139.45.20 ip4:209.177.164.2 ip4:54.84.21.177 ip4:54.85.33.189 include:_spf.google.com
include:amazonses.com -all"
Please hep, I will really appreciate it.
Thank you in advance!
Short answer: You can't do what it sounds like you want.
Longer answer: Getting all IP addresses for a certain website is simply a question of issuing an A and an AAAA DNS query for its name. That will give you all the published addresses for that site. But, and I'm guessing here, it sounds like that's not what you want. If what you want is to find out which IP ranges are assigned to Netflix the corporation, you can find that by looking it up in the various RIR databases (easiest via whois, as Sami says in a comment up there). Most of those addresses probably aren't being used for their web servers (but for mail, VPN, internal communications and such). Also, it's likely that a lot of their web presence aren't on those IP addresses, but on addresses belonging to some CDN.
You need to ask a better question if you want to get a useful answer.