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 } ') ; w
hois -h whois.radb.net -- "-i origin $origin" | grep ^route
Rick Donato

Want to become a networking expert?

Here is our hand-picked selection of the best courses you can find online:
Cisco CCNA 200-301 Certification Gold Bootcamp
Complete Cyber Security Course – Network Security
Internet Security Deep Dive course
Python Pro Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial