Skip to content

Instantly share code, notes, and snippets.

@Marcocanc
Created July 10, 2017 07:15
Show Gist options
  • Save Marcocanc/c922d90eeea0a4c810b7f9c77dedc166 to your computer and use it in GitHub Desktop.
Save Marcocanc/c922d90eeea0a4c810b7f9c77dedc166 to your computer and use it in GitHub Desktop.
Domain to Ripe Lookup
#!/bin/bash
IP=$(dig +short $1 | sed -n 1p)
whois -h whois.ripe.net -- "-T route ${IP}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment