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

Written by admin. Posted in Linux, Mint, Ubuntu

Tagged: , , , ,

Published on September 25, 2011 with No Comments">No Comments

FacebookTwitterStumbleUponPinterestTumblrEmailGoogle+PrintShare

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

 

FacebookTwitterStumbleUponPinterestTumblrEmailGoogle+PrintShare