Question: How do I find IP address of a website using terminal?
Answer: Finding the public IP address of a website’s server is absolutely easy. In fact, there are several ways you can find the IP address of a website. I am going to show you some of them here.
These commands are:
You might need to install nslookup. If you have the rights, you can use your Linux distribution’s installation command to install this tool. On Debian and Ubuntu, the command below will install nslookup:
sudo apt install nslookup
Once you have the tool, just use it in the following fashion:
Same goes for ping command:
You’ll have to use Ctrl+C to stop the ping command.
A sample output for LinuxQuickTips looks like this:
I hope this quick Linux tip helped you to find the IP address of a website in terminal.