How to find the domain IP

How to find the IP address of a domain using dig command.

By default, the dig command will give the IP address of the domain. To only show the IP, add +short after the domain name:

dig example.com +short

The result is:

C:\Users\asus>dig example.com +short
93.184.216.34

Dig command with short option, IP address highlighted