Re: How can I prevent NetworkManager to overwrite /etc/resolv.conf in no-dhcp wired networks?



2008/6/16 Dan Williams <dcbw redhat com>:
> On Sun, 2008-06-15 at 03:02 +0200, Stolz wrote:
>> I use NetworkManager 0.6.6 to connect to wired and wireless networks
>> and it works as expected when there is DHCP available. The problems
>> appears when I connect to a network which requires a static
>> configuration (no DHCP). Whenever I connect to a wired network wichout
>> DHCP my /etc/resolv.conf is overwitten by NetworkManager with the next
>> content:
>> ### BEGIN INFO
>> #
>> # Modified_by:  NetworkManager
>> # Process:      /usr/bin/NetworkManager
>> # Process_id:   4393
>> #
>> ### END INFO
>
> Which distro are you using?  This probably means that your distro's
> backend (which reads static configuration) isn't able to pull your DNS
> servers from that static config.
>

Thanks for your answer. I'm using Gentoo. My distro stores the network
config in /etc/conf.d/net. Without NetworkManager the config is read
and used as expected, but with NetworkManager seems it is ignored. Is
NetworkManager supposed to be able to read my network config from my
distro config files? I thought NetworkManager configuration was
independent from the distro config and should be configured
separately. Iin fact, that's exactly what I was asking, how to
configure it but from your words I deduce there is a backend which
reads the files I use to configure the network in my distro.

So now the question is, how  I can find out if NetworkManager backend
can find my dns settings from my distro config files?

Regadrs


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]