mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
network: Register dnsmasq with resolved only when really requested
An incorrect check for domainRegister caused the DNS server for a virtual domain to be registered with systemd-resolved even if register='no' attribute was present. Only omitting the attribute completely would disable the registration. Reported-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
632eb94e43
commit
dda10ac8ac
@ -2016,7 +2016,9 @@ networkStartNetworkVirtual(virNetworkDriverState *driver,
|
||||
|
||||
dnsmasqStarted = true;
|
||||
|
||||
if (def->domain && def->domainRegister && dnsServer) {
|
||||
if (def->domain &&
|
||||
def->domainRegister == VIR_TRISTATE_BOOL_YES &&
|
||||
dnsServer) {
|
||||
unsigned int link;
|
||||
int rc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user