Where to set the DNS settings in the Linux OS

To connect to the Internet from a Linux machine, we need to set the DNS for the Linux machine using the command line. We need to set up an entry in a file that is /etc/resolv.conf. Below is the way using which we can setup an entry:-

Step 1: Login onto the server using SSH.

Step 2:  Edit the file with your favourite editor:- 

vi /etc/resolv.conf

and then place the entry of the DNS as below :-



and then save the file.

That's all we need to do here for connecting to the Internet.

Sachin Tuesday 08 October 2013 - 09:22 am | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.