How to check external IP address using DNS service

I have already described how to check external IP address using curl or your own SSH service, but you can also use dig utility to take advantage of the OpenDNS, Google or Akamai DNS service.

Check IP address using OpenDNS DNS service.

$ dig +short

Check IP address using Google DNS service.

$ dig txt +short

Check IP address using Akamai DNS service.

$ dig +short
Milosz Galazka's Picture

About Milosz Galazka

Milosz is a Linux Foundation Certified Engineer working for a successful Polish company as a system administrator and a long time supporter of Free Software Foundation and Debian operating system.