You are not logged in.
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
anyone?
Offline
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
@fwojciec, that's how dhcpcd works by default... but NetworkManager overrides that
Offline
Sorry, I didn't read your post carefully enough...
No idea about NetworkManager -- can't you use something else instead?
Offline
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
Heh.. I would never think to check that the GUI supports this
.. although.. this is still suboptimal, I'd have to do this with every wifi network I plan to connect ever.
Offline
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.
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