Skip to content

Instantly share code, notes, and snippets.

@tomwassenberg
Created April 2, 2018 21:58
Show Gist options
  • Select an option

  • Save tomwassenberg/395184ebd7e680d726cb203ece621667 to your computer and use it in GitHub Desktop.

Select an option

Save tomwassenberg/395184ebd7e680d726cb203ece621667 to your computer and use it in GitHub Desktop.
Checks the WhoIS of the upstream DNS resolver your system currently uses.
#!/usr/bin/env bash
dig +short whoami.akamai.net | xargs whois | grep -oP '^netname:\s+\K.+$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment