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 +short

The result is:

C:\Users\asus>dig +short

Dig command with short option, IP address highlighted