9 lines
253 B
Plaintext
9 lines
253 B
Plaintext
# Example using a router's automatic wan-ip name as Ubiquity routers do:
|
|
#dig +short @172.17.0.1 wan-ip.mydomain
|
|
|
|
# Use OpenDNS to get MyIP
|
|
#dig +short myip.opendns.com @resolver1.opendns.com
|
|
|
|
# Use ipecho.com to get MyIP
|
|
curl --silent ipecho.net/plain
|