How To Resolve Host Name To IP Address And Vice Versa From Linux Terminal

Here’s how to resolve host name to IP address and vice versa from Linux terminal:

1. To resolve host name to IP address, issue the following command at the Linux terminal –

host <host name>

e.g. host google.com

Resolve Host Name To IP Address And Vice Versa From Linux Terminal

2. To resolve IP address to host name, issue the following command at the Linux terminal –

host <IP address>

e.g. host 4.2.2.2

Resolve Host Name To IP Address And Vice Versa From Linux Terminal

 

Comments are closed.