LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2009, 04:06 AM   #1
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
dhcpcd how I hate you.


Sorry if this sounds a bit pissy but im a bit frustrated with this problem and its something I just cannot understand why it has never been fixed. Back some time ago I used to love this program called dhcpcd it would find my hosts setup my network and not touch my resolv.conf file if I passed it the -R option. Then something happened the guys who develop the program decided that users setting up there resolv.conf was just crazytalk and took out the option. They however had the hindsight to add in a -C option to not touch resolv.conf.
But alas not all was well in the village for dhcpcd would ignore this and clobber the file anyway. I understand that for most people having this file created every time is not a problem, then again everyone normally has name resolvers working properly. Many others after searching around are also frustrated with this problem and yet no one can seam to get dhcpcd to behave. If I could ask the devs one question it would be why did they remove the option and second when they added the new one make sure it works before writing this off as not a problem.
Anyone out there got a solution that actually works without me having to edit this file every time dhcpcd is started?
 
Old 12-28-2009, 06:33 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
This is a slightly sideways answer, but yet relevant to the big picture.....Use WICD. You put settings into each connection option and the system handles the rest. I haven't typed "dhcpcd" for quite some time.
 
Old 12-28-2009, 05:21 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
WICD is a connection manager tho so it still is going to have to do something behind the scenes with other programs. Does it use dhcpcd or does it have a built in for this? I have heard of this program before and it has spiked my interest even if its a gui tool and I like to keep stuff with my network console based.
 
Old 12-28-2009, 11:26 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Take a look at "man dhclient.conf" and the supersede and prepend options. I don't use them any more, so I can't remember which it is. On my system, I use the "send host-name" line to tell dhcp what my host name will be when configured. And yes, it took me forever to find this stuff though it's right there in the manual.

for example:
Code:
send host-name "musem";
gives me a resolv.conf of:
Code:
domain gateway.2wire.net
search gateway.2wire.net
nameserver 192.168.1.254
And names my machine "musem" on the dhcp server.

Added:
Oops, this is for dhclient, not dhcpcd. But, I believe you can do similar things in /etc/dhcpcd.conf.

Last edited by Quakeboy02; 12-29-2009 at 12:06 AM.
 
Old 12-29-2009, 01:17 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by exvor View Post
WICD is a connection manager tho so it still is going to have to do something behind the scenes with other programs. Does it use dhcpcd or does it have a built in for this? I have heard of this program before and it has spiked my interest even if its a gui tool and I like to keep stuff with my network console based.
I like to use the tool that make things the easiest---sometimes that's GUI--sometimes CLI. Networking--I use CLI mainly for torubleshooting.
 
Old 12-29-2009, 06:40 AM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
I actually got this sorted out by asking the program dev's. Thanks for the help you all
 
0 members found this post helpful.
Old 12-29-2009, 11:07 AM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by exvor View Post
I actually got this sorted out by asking the program dev's. Thanks for the help you all
What did you do?
 
1 members found this post helpful.
Old 12-29-2009, 06:13 PM   #8
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
They explained that they went to a system that uses scripts and that I was using the -C command incorrectly. They said that if you cannot get it to work by just using resolv.conf then try putting int he whole path to the script and that worked. This may have something to do with it being on a LFS system I dunno.
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DDclient slack13 dhcpcd.sh vs dhcpcd.eth0.exe question nl1at Slackware 3 10-27-2010 01:51 PM
dhcpcd wireless problems. dhcpcd wlan0 removes essid entry in iwconfig. Romanus81 Slackware 3 08-25-2008 10:34 PM
I hate these... phantom_cyph General 11 06-25-2007 08:18 PM
Help with dhcpcd jamescov Slackware 3 11-21-2003 04:25 PM
I hate it linuxdoesntwork Linux - Newbie 3 06-29-2003 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:31 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