DEV Community

loading...
Cover image for How to get the IP address of the website in Linux?

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

MELVIN GEORGE
Hi, I'm Melvin George, A web developer, and a blogger.
Originally published at melvingeorge.me ・1 min read

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 😃.


Discussion (0)