[Pkg-utopia-maintainers] Bug#1131877: Bug#1131877: NetworkManager configures dnsmasq to read all files in /etc/NetworkManager/dnsmasq.d/, including dpkg temporary files

Michael Biebl biebl at debian.org
Wed Mar 25 20:04:57 GMT 2026


Am 25.03.26 um 18:38 schrieb Jann Horn:
> Package: network-manager
> Version: 1.54.3
> 
> NetworkManager has this code in src/core/dns/nm-dns-dnsmasq.c:
> 
> ```
> argv[argv_idx++] = "--conf-dir=" CONFDIR;
> ```
> 
> This instructs NetworkManager to parse _all_ files in
> /etc/NetworkManager/dnsmasq.d/ as config files, including temporary
> files created by dpkg during package upgrades (*.dpkg-new, *.dpkg-tmp,
> *.dpkg-old, *.dpkg-dist). If files in /etc/NetworkManager/dnsmasq.d/
> are managed by a debian package, this can cause dnsmasq to fail to
> start during package upgrades, because listing the same options in two
> files can cause dnsmasq errors.

Please raise such issues upstream at
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/

If you have a need for package provided configuration files, maybe a 
better approach is to have a
/usr/lib/NetworkManager/dnsmasq.d/, where packages can drop in a file 
and users/admins can override that via a file of the same name in 
/etc/NetworkManager/dnsmasq.d.

But as said, this is best discussed upstream.

Regards
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20260325/bd2abc3c/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list