#549183 libvirt0: Require dnsmasq even when dhcp is disabled

Package:
libvirt-bin
Source:
libvirt
Submitter:
Daniel Dehennin
Date:
2023-04-17 15:57:29 UTC
Severity:
normal
Tags:
#549183#5
Date:
2009-10-01 09:48:06 UTC
From:
To:
Updating from 0.6.5-3 the following network configuration requires dnsmasq.
#549183#18
Date:
2009-12-11 19:38:47 UTC
From:
To:
Hello,

I looked at the source code and saw the problem in
src/network/bridge_driver.c[1]:
--8<---------------cut here---------------start------------->8---
if ((network->def->ipAddress ||
     network->def->nranges) &&
    dhcpStartDhcpDaemon(conn, network) < 0)
    goto err_delbr2;
--8<---------------cut here---------------end--------------->8---

The dhcpStartDhcpDaemon should be called only if network->def->nranges
is defined.

Regards.
Footnotes:
[1]  http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/network/bridge_driver.c;h=abee78cbbf1d6025e302f999a0569d0bb0b1a433;hb=master#l953

#549183#23
Date:
2009-12-13 12:20:57 UTC
From:
To:
Hi Daniel,
This was done on purpose so dnsmasq can provide DNS. See upstream commit
	df3de82c06d42fed832c1955dafdee85879bd15a
Cheers,
 -- Guido

#549183#30
Date:
2009-12-13 13:43:08 UTC
From:
To:
Le 5947 Septembre 1993, Guido Günther a envoyé:

Ok, so there is one problem:

- the debian package should depends on dnsmasq since I can not start the
  default network

- the dnsmasq feature should be configurable in libvirt so we can
  disable it.

Regards.