]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: Propagate DNS forwarder port into dnsmasq config master
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 18 Dec 2025 08:59:31 +0000 (09:59 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 19 Dec 2025 08:49:31 +0000 (09:49 +0100)
commite727c8afad95da1ccf8ec0e5337dcbc3fc5ebd3c
tree77b7d3ff9cb06e3e2176ce1816bfb6a214506d64
parent72e4efbfa6075d620088447d678cd9eb594a0d60
network: Propagate DNS forwarder port into dnsmasq config

If a DNS forwarder has port specified then we ought to format it
into dnsmasq config. The correct syntax is

  server=/domain/ip-address#port

Closes: https://gitlab.com/libvirt/libvirt/-/issues/833
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/network/bridge_driver.c
tests/networkxml2confdata/nat-network-dns-forwarders.conf
tests/networkxml2confdata/nat-network-dns-forwarders.xml