You are not logged in.

#1 2008-12-27 15:53:31

damjan
Member
Registered: 2006-05-30
Posts: 452

Customizing dhcpcd and NetworkManager 0.7

Since the upgrade of NetworkManager to 0.7 (from /testing/), it now uses dhcpcd instead of the DBus dhcp daemon (that called dhclient).

So previously I had dhclient set, through /etc/dhclient.conf, so that it always prepends "nameserver 127.0.0.1" and also to add a custom "search ..." domain in /etc/resolv.conf.

But now with dhcpcd I don't know how to accomplish the same thing. dhcpcd by itself should at least prepend /etc/resolv.conf.head when it creates /etc/resolv.conf, but NetworkManager calls dhcpcd itself overriding anything in /etc/dhcpcd.conf, and it seems that NetworkManager writes /etc/resolv.conf in the end.

So my question is, how do I cuztomize /etc/resolv.conf when using NetworkManager 0.7 and dhcpcd?

Offline

#2 2009-01-03 23:00:25

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: Customizing dhcpcd and NetworkManager 0.7

anyone?

Offline

#3 2009-01-04 00:14:43

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Customizing dhcpcd and NetworkManager 0.7

Whatever you put in /etc/resolv.conf.head file should always be placed at the top of the resolv.conf created by dhcpcd; similarly whatever you have in /etc/resolv.conf.tail will be placed at the end of the file.

Offline

#4 2009-01-04 15:57:28

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: Customizing dhcpcd and NetworkManager 0.7

@fwojciec, that's how dhcpcd works by default... but NetworkManager overrides that

Offline

#5 2009-01-04 16:06:49

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Customizing dhcpcd and NetworkManager 0.7

Sorry, I didn't read your post carefully enough...
No idea about NetworkManager -- can't you use something else instead?

Offline

#6 2009-01-04 16:32:51

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Customizing dhcpcd and NetworkManager 0.7

Edit Connections -> Wireless(/Wired?) -> Your network -> IPv4 Settings...

Method -- Automatic (DHCP) address only
And enter DNS servers into the "DNS Servers" field like so: 127.0.0.1, 192.168.1.1 (and search domain below, if you want it)

I checked it on my system and it works like it should.

This is with network manager from [testing].

Offline

#7 2009-01-05 22:21:57

damjan
Member
Registered: 2006-05-30
Posts: 452

Re: Customizing dhcpcd and NetworkManager 0.7

Heh.. I would never think to check that the GUI supports this smile

.. although.. this is still suboptimal, I'd have to do this with every wifi network I plan to connect ever.

Offline

#8 2009-02-10 20:43:54

meqif
Member
From: Portugal
Registered: 2006-12-16
Posts: 60
Website

Re: Customizing dhcpcd and NetworkManager 0.7

You can do the same I did: recompile both libnetworkmanager and networkmanager with dhclient support ( --with-dhcp-client=dhclient ).

EDIT: I uploaded PKGBUILDs for both libnetworkmanager and networkmanager using dhclient to AUR, in case you're lazy. tongue
They're named libnetworkmanager-dhclient and networkmanager-dhclient.

Last edited by meqif (2009-02-10 23:15:22)


Ricardo Martins ><>< ricardomartins.cc ><>< GPG key: 0x1308F1B4

Offline

Board footer

Powered by FluxBB