Your message dated Sun, 13 Jan 2008 01:13:52 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#455744: cfengine2: action 'resolve' add new DNS servers
but don't delete old
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: cfengine2
Version: 2.1.20-1
Severity: important
I use the resolve action to setup DNS servers on my servers:
resolve:
cf::
60.191.58.178
172.19.0.2
But I found the original DNS servers in servers' /etc/resolv.conf are
not cleared, cfengine only push these addresses on top of resolv.conf:
[EMAIL PROTECTED]:~$ cat /etc/resolv.conf
domain space.163.org
nameserver 60.191.58.178
nameserver 172.19.0.2
nameserver 218.30.26.68
The last line (nameserver 218.30.26.68) was a old and wrong config, but
I cannot use cfengine to clean it.
Is this a feature or a bug?
Chun TIAN (binghe)
--- End Message ---
--- Begin Message ---
"Chun Tian (binghe)" <[EMAIL PROTECTED]> writes:
> I use the resolve action to setup DNS servers on my servers:
>
> resolve:
> cf::
> 60.191.58.178
> 172.19.0.2
>
> But I found the original DNS servers in servers' /etc/resolv.conf are
> not cleared, cfengine only push these addresses on top of resolv.conf:
>
> [EMAIL PROTECTED]:~$ cat /etc/resolv.conf
> domain space.163.org
> nameserver 60.191.58.178
> nameserver 172.19.0.2
> nameserver 218.30.26.68
>
> The last line (nameserver 218.30.26.68) was a old and wrong config, but
> I cannot use cfengine to clean it.
>
> Is this a feature or a bug?
Hi,
from the documentation [1] this is correct behavior. You can, as the
documentation mentions, set the EmptyResolvConf variable to 'true' to
make cfengine remove old nameservers from /etc/resolv.conf. I have not
tested this myself, but assume it does work. Please reopen this bug if
it does not work.
- Werner
[1] http://www.cfengine.org/docs/cfengine-Reference.html#index-resolve-551
--- End Message ---