LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-21-2013, 10:51 AM   #1
qweyu
LQ Newbie
 
Registered: Jan 2012
Location: Kampala - Uganda
Distribution: Slackware 14.1
Posts: 21

Rep: Reputation: Disabled
editing resolv.conf


hi good people,

am trying to vi my nameservers in /etc/resolv.conf bu t keep getting this "Generated by dchpcd ...."" being inputed instead. by the way this is slackware 13.0 and am new to this stuff.
 
Old 08-21-2013, 11:05 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
DHCP is the program which automagically configures your internet connection every time you boot up. So when you configure /etc/resolv.conf then DHCP is overwriting what you entered the next time DHCP runs. You can modify how DHCP configures resolv.conf by modifying /lib/dhcpcd/dhcpcd-hooks.

You can learn how to modify what DHCP sets up by beginning at this web page:

http://www.linuxfromscratch.org/blfs...et/dhcpcd.html

---------------------------
Steve Stites

Last edited by jailbait; 08-21-2013 at 06:15 PM.
 
Old 08-21-2013, 01:42 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Take at a look at this about about halfway down under network configuration paramters.
http://alien.slackbook.org/dokuwiki/...ckware:network If your wanting the resolve.conf file to not change for dial-up then edit /etc/ppp/resolv.conf
 
  


Reply



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
How to change nameservers WITHOUT editing resolv.conf??? zeeple Linux - Newbie 3 12-02-2008 01:29 PM
Editing /etc/resolv.conf keysorsoze Red Hat 2 04-13-2007 10:49 PM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
resolv.conf Snump Mandriva 54 10-31-2004 04:16 PM
resolv.conf dnsbum Linux - Networking 1 10-21-2003 12:00 PM

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

All times are GMT -5. The time now is 04:27 PM.

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
Open Source Consulting | Domain Registration