Using Terminal Commands, How Can I Find The IP-address Of A Site?

English

Here are four commands you can run in the terminal window, which will tell you the IP address of a website in Linux.

Dig is a DNS lookup utility. The purpose of this command is to perform a DNS lookup and display the answers returned by the nameserver of the queried website. By default, dig is not included in Debian 9 "Stretch" and you can't install it by typing the usal apt-command and dig. However, the tool you want is a part of dnsutils package, so we need to install that for it to work.

Type the following command:

sudo apt install dnsutils

Press Enter, wait until it is installed.

Type the following command:

dig <website URL>

Press Enter, like shown in the screenshot below.

nslookup is another tool also used for querying the DNS records. nslookup stands for ‘name server lookup’. It just like dig, isn't by default installed in Debian 9, but it is included in the dnsutils package.

So no need for a second installation, just run the following command:

nslookup <website>

Press Enter, like shown in the screenshot below.

The third command, is the host command and this one you can run without installing dnsutils.

Type the following command:

host <website URL>

Press Enter, like shown in the screenshot below.

The last command on the list is the Ping command which is used to check whether or not the remote host is online. You can use either the server’s IP address or the URL. The syntax is pretty much the same.

Run the following command:

ping <website URL>

Press Enter, like shown in the screenshot below.

NOTE: This will work on Debian 8 "Jessie", as well.

Games For Linux

Windows has always been the preferred platform for gaming, but after STEAM's interest in Linux more game developers are making their games natively available for Linux.

Disclaimer

All information on this website is published in good faith and for general educational purposes and for use in safe testing environments only. While linuxexperten.com strives to make the information on this site as accurate as possible, linuxexperten.com does not warrant its completeness, reliability and accuracy.

We are not responsible for any losses or damages associated with the use of our website. While we strive to provide only links to useful websites, we have no control over the content of these sites and links to other sites do not constitute a recommendation for all content contained on these websites.

 

Site Information

This is a professional review site that receives compensation from the companies whose products reviewed. Each service or product are thoroughly tested and given high marks if considered to be the very best. Independently owned and the opinions expressed here are no one elses.

 

Limited Time Offers

Coming soon...