LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2014, 10:30 AM   #1
Gad
Member
 
Registered: May 2013
Distribution: Debian
Posts: 189

Rep: Reputation: 7
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
 
Old 11-11-2014, 10:47 AM   #2
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
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..
 
Old 11-12-2014, 03:31 PM   #3
Gad
Member
 
Registered: May 2013
Distribution: Debian
Posts: 189

Original Poster
Rep: Reputation: 7
Thanks bud!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf vignesh_murali2003 Linux - Newbie 3 06-12-2013 04:38 PM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 10:21 AM
resolv.conf jmdlcar Slackware 9 05-15-2004 12:44 PM
Slackware resolv.conf question jspaceman Linux - Networking 1 03-24-2004 08:31 AM
resolv.conf Culbert Linux - Networking 8 03-20-2003 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration