What’s My IP / Dynamic DNS / DDNS / DynDNS

There are a number of ways to figure out your current public IP address automatically, which can be extremely useful for Dynamic DNS (DDNS) situations or other automation ventures, here are some of them.

OpenDNS

dig +short @resolver1.opendns.com ANY myip.opendns.com

If the above doesn’t work, you may want to try this:

dig +short myip.opendns.com @resolver1.opendns.com

ifconfig.co

curl https://ifconfig.co

Akamai

curl http://whatismyip.akamai.com/

Cloudflare

dig @1.1.1.1 ch txt whoami.cloudflare +short

Google

dig TXT +short o-o.myaddr.l.google.com @ns1.google.com

Leave a Comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.

This site uses Akismet to reduce spam. Learn how your comment data is processed.