Modifying nm-dhclient-wlan0.conf ?

Tony Molloy tony.molloy at ul.ie
Tue Jul 31 17:30:22 UTC 2012


On Tuesday 31 July 2012 17:52:45 Bruno Wolff III wrote:
> My short term goal is to set up resolv.conf the way I want without
> disabling network manager.
> I set up a config file for dhclient, but it turns out that
>  NetworkManager runs dhclient with the configfile set to one it
>  generates insteqad of the normal one used by dhclient. For the
>  first wireless interface the file is named
>  /var/run/nm-dhclient-wlan0.conf .
> 
> Is there a way to control what is in that file using NetworkManager
> configuration?
> 

It's really difficult to get rid of NetworkManager in Fedora, I've 
tried.

So here's a solution:

Set up /etc/resolv.conf just as you want. Then

chattr +1 /etc/resolv.conf

This prevents NetworkManager from messing with it ever again.

Tony


More information about the users mailing list