Pages

Configure DNS Name Server IP Address in Linux

You need to edit /etc/resolv.conf file under Linux to set Name server IP address that the resolver should query. Up to 3 name server internet IP address can be defined. If there are multiple servers, the resolver library queries them in the order listed.

Ubuntu Linux Configure DNS Name resolution

Type the following command, enter:
$ sudo vi /etc/resolv.conf

Or use nano text editor:
$ sudo nano /etc/resolv.conf

Append your ISP name server IP address as follow:
nameserver

Save and close the file. Test your dns configuration by typing the following commands:
$ host yahoo.com
$ nslookup google.com
$ ping my-it-life.blogspot.com

No comments:

Post a Comment

You might also like:

Popular Posts