Finding out your DNS lookup IP address on a Linux and Unix

Fig.01: Finding out your DNS lookup IP address on a Linux and Unix

Fig.01: Finding out your DNS lookup IP address on a Linux and Unix

Use any one of the following command to find out your dns lookup IP address on a Linux, BSD, OS X and Unix-like systems:

less /etc/resolv.conf

OR

more /etc/resolv.conf

To change DNS lookup IP address use a text editor such as vi to edit file and change entry that starts with “nameserver” keyword:

vi /etc/resolv.conf

In this example, set it to Google DNS:

nameserver 8.8.8.8
nameserver 8.8.4.4

Examples and usage: How To Look Up DNS on a Linux and Unix Systems