Skip to content

Instantly share code, notes, and snippets.

@normoes
Last active March 10, 2022 21:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save normoes/829d65866c8bf6d32b13f020479b172b to your computer and use it in GitHub Desktop.
Save normoes/829d65866c8bf6d32b13f020479b172b to your computer and use it in GitHub Desktop.
Get ASHandle of a domain

Get ASHandle of a domain

I wanted to get all IPs that belong to facebook.com.

The command I found is the following

whois -h whois.radb.net -- '-i origin AS32934'

whois -h whois.radb.net -- '-i origin AS32934' | grep ^route

I wondered where AS32934 was coming from

dig +short facebook.com
# 31.13.91.36
whois -h whois.radb.net 31.13.72.36 | grep -i origin
# origin:     AS32934
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment