all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH container/lxc v3 0/2] fix #7388: prefer container DNS config over host-managed DHCP
@ 2026-12-01 15:33 Filip Schauer
  2026-12-01 15:33 ` [PATCH lxc v3 1/2] patch dhclient-script to allow ignoring DNS settings Filip Schauer
  2026-12-01 15:33 ` [PATCH container v3 2/2] fix #7388: prefer container DNS config over host-managed DHCP Filip Schauer
  0 siblings, 2 replies; 3+ messages in thread
From: Filip Schauer @ 2026-12-01 15:33 UTC (permalink / raw)
  To: pve-devel

For host-managed interfaces with ip=dhcp, dhclient-script rewrites
/etc/resolv.conf with the DNS settings offered by the DHCP server. This
silently overrides the container's nameserver/searchdomain options.

The lxc patch lets dhclient-script ignore the DHCP-supplied nameservers
or search domains when told to. The pve-container patch passes that
request to dhclient when the container config sets the respective
options.

The pve-container patch depends on the lxc one. So lxc-pve needs to be
bumped for the changes to take effect.

Changed since v2:
* Drop the custom dhclient config file approach.
  Handle the DNS precedence in dhclient-script instead, controlled by
  environment variables.

Changed since v1:
* Rebased onto pve-container 6.1.29
* Anchor $IPV4RE $IPV6RE regexes
* Remove redundant `sysseek` call
* Only generate the config on 'start', not on 'stop'
* Use the host's /etc/dhcp/dhclient.conf as the base config


lxc:

Filip Schauer (1):
  oida

 ...fig-deny-rw-mounting-of-sys-and-proc.patch |  2 +-
 ...-PVE-Config-attach-always-use-getent.patch |  2 +-
 ...-script-set-RFC3442-classless-routes.patch |  2 +-
 ...4-dhclient-script-allow-ignoring-dns.patch | 63 +++++++++++++++++++
 debian/patches/series                         |  1 +
 5 files changed, 67 insertions(+), 3 deletions(-)
 create mode 100644 debian/patches/pve/0004-dhclient-script-allow-ignoring-dns.patch


pve-container:

Filip Schauer (1):
  fix #7388: prefer container DNS config over host-managed DHCP

 src/PVE/LXC.pm | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)


Summary over all repositories:
  6 files changed, 84 insertions(+), 9 deletions(-)

-- 
Generated by murpp 0.12.1




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-01 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 15:33 [PATCH container/lxc v3 0/2] fix #7388: prefer container DNS config over host-managed DHCP Filip Schauer
2026-12-01 15:33 ` [PATCH lxc v3 1/2] patch dhclient-script to allow ignoring DNS settings Filip Schauer
2026-12-01 15:33 ` [PATCH container v3 2/2] fix #7388: prefer container DNS config over host-managed DHCP Filip Schauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal