How do I find the IP address for my domain?
Linode
Linode Staff
I'm trying to determine the IP address for my domain from my terminal session. What command(s) can I run to view this information?
1 Reply
jchism
Linode Staff
As long as you already have DNS records configured for your domain, you can run the following commands to verify the IP address for your domain.
dig +short your_domain_name
host your_domain_name
For a more detailed listing for your domain, you can use the "trace" option.
dig +trace your_domain_name
You can also query individual DNS records, such as MX, NS, and TXT records for your domain but adding those to the end of the "dig" command.
dig +short your_domain_name mx
dig +short your_domain_name ns
dig +short your_domain_name txt