How to Find the IP Address of a Website using the Linux Terminal

If you are troubleshooting a network issue or configuring a firewall in Linux, you often need to find the exact IP address of a domain name.

Using the ping command

  1. Open your Linux terminal.
  2. Type ping example.com (replace example.com with the website).
  3. The output will display the IP address the domain resolves to.
  4. Press Ctrl + C to stop the ping process.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.