fir3net
PPS-Firenetbanner-780.5x190-30-03-17

How can I list all IPs relating to a single AS ?

Within this article we will show you how to list all IP`s relating to a single AS.

STEPS

First of all get the IP address for the domain.

[root@server]$ whois 173.252.110.27 | grep OriginAS
OriginAS:       AS32934

Finally run another whois against the AS to obtain a list of IPs.

origin=$(whois `dig facebook.com +short | head -n1` | grep OriginAS | awk ' { print $2 } ') ; whois -h whois.radb.net -- "-i origin $origin" | grep ^route

Tags: IPv4

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001