NoOp glgxg at
Wed Oct 8 18:06:27 UTC 2008

On 10/07/2008 02:03 PM, Leonard Chatagnier wrote:
> --- On Tue, 10/7/08, Derek Broughton <news at> wrote:
> From: Derek Broughton <news at>
> Subject: Re: NetworkManager
> To: ubuntu-users at
> Date: Tuesday, October 7, 2008, 9:58 AM
> lchata at ubuntu-hardy-64bit:/etc/init.d$ cat /etc/resolv.conf
> #
> # Modified_by:  NetworkManager
> # Process:      /usr/bin/NetworkManager
> # Process_id:   5207
> #
> ### END INFO
> search
> nameserver
> lchata at ubuntu-hardy-64bit:/etc/init.d$

/etc/resolv.conf _absolutely_ gets written to by the network manager
when using "Roaming" as you can see from the above. That is how
"Roaming" mode works. As Leonard has shown, it's easy to demontrate this:

1. Open NM and remove any existing DNS entries except for the router
gateway (leave the NM dialog open for all of the following).

Set NM for "Roaming mode" and
sudo /etc/init.d/networking restart
cat /etc/resolv.conf

You will see that Network Manager wrote into the /etc/resolv.conf file
as shown in Leonard's output.

2. Now go back to NM and set it for DHCP. You will see that the

# Modified_by:  NetworkManager
# Process:      /usr/bin/NetworkManager

*is now gone* and instead only the nameserver entries obtained from the
gateway remain:


3. Now go back to NM and set it for a static IP address. Same as 2 above.

4. Now go back and repeat #1 above (set NM for Roaming mode). You will
again see the "Modified_by:  NetworkManager" entries. Nice touch - NM
tells you that it has modified resolv.conf and what it's process ID is.

It's too bad that other processes (dhclient, openvpn etc) don't write in
the "Modified by" as NetworkManger does.


BTW: Leonard, why are you set for roaming mode? I'd set for static IP's
in your particular setup, or just standard DHCP. Also instead of setting
your DNS to "search" just enter the IP address of ( in the DNS box (above the Search
Domains) and your dns resolution will be faster... it doesn't need to
resolve first. Or for even faster, put in your DNS's
directly instead of


More information about the ubuntu-users mailing list