How do I find the IP address for my domain?

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

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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct