On Linux systems, you can find the IP address of your domain in a terminal application without using a third-party web service. You can also check multiple domains at once. This article describes how to use a terminal application to get the IP address of a domain on the command line. I’m using Ubuntu to test all these commands. All of these command line tools are installed on your Ubuntu system. Open a terminal application (ctrl + alt + t) and run all the following commands one at a time to see the results.
1. Use the host command to find the IP address of the domain
Host commands are a simple command line application for performing DNS domain name system lookup operations.At the terminal run
host connectwww.com | grep "has address" | sed 's/has address/-/g'
2. Use the nslookup command to find the IP address of the domain
nslookup is a free network management command line tool for querying DNS records.
3. Use the ping command to find the IP address of your domain
ping Packet Internet Groper is a small free network tool.
ping -c 3 connectwww.com
4. Use the dig command to find the IP address of the domain
dig is a small command line tool for querying DNS records, also known as the domain information grouper.
Recommended Reading: How to Install a Productivity Timer on Ubuntu-Time Management App