Created
March 4, 2015 09:27
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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