Skip to content

Instantly share code, notes, and snippets.

@jeremiahmarks
Created March 4, 2015 09:27
Show Gist options
  • Save jeremiahmarks/948bd3a3a83e07a93a1e to your computer and use it in GitHub Desktop.
Save jeremiahmarks/948bd3a3a83e07a93a1e to your computer and use it in GitHub Desktop.
Simple example of how to get IP address using DNS - dig and openDNS.com
#!/usr/bin/env bash
dig +short myip.opendns.com @resolver1.opendns.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment