LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permanently set resolv.conf with Slackware 14.1 (https://www.linuxquestions.org/questions/linux-newbie-8/permanently-set-resolv-conf-with-slackware-14-1-a-4175525077/)

Gad 11-11-2014 09:30 AM

Permanently set resolv.conf with Slackware 14.1
 
Good day

I am currently connecting to the internet using wvdial and my 3G modem. Everything is fine. However, every time when starting up my computer I need to edit my DNS settings before I am able to successfully load web pages etc...

Code:

root@mypcname:~# cat /etc/resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
nameserver 8.8.8.8

At this time I am using Google as a quick fix but I would like to permanently set DNS servers of my choice.

Look forward to your replies,

Thanks and have great day further!

Sincerely,
Marios

Smokey_justme 11-11-2014 09:47 AM

You already have the answer in the file... :P

Create a file named /etc/resolv.conf.tail with the line:
Code:

nameserver 8.8.8.8
And your changes will be persistent..

Gad 11-12-2014 02:31 PM

Thanks bud!


All times are GMT -5. The time now is 11:02 AM.