DEV Community

Cover image for How to get the IP address of the website in Linux?
MELVIN GEORGE
MELVIN GEORGE

Posted on • Originally published at melvingeorge.me

How to get the IP address of the website in Linux?

Originally posted here!

To get the IP address of a website URL or a domain name, you can use the ping command followed by the website URL in the terminal on Linux.

For example, to get the IP address of the website google.com you can use the ping command like this,

# Get IP address of website
ping google.com
Enter fullscreen mode Exit fullscreen mode

The command will output some information like below,

ping command output showing the IP address of website

As you can see from the output, the IP address of the website is shown after the website URL inside the brackets.

That's all 😃!

Feel free to share if you found this useful 😃.


Top comments (0)