Bug 508965 - Disabling DHCP also turns off DNS forwarding for a libvirt network
Summary: Disabling DHCP also turns off DNS forwarding for a libvirt network
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-30 17:07 UTC by Charles Duffy
Modified: 2010-03-16 17:21 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-08-14 15:09:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Charles Duffy 2009-06-30 17:07:31 UTC
Description of problem:

Disabling libvirt-controlled DHCP (/network/ip/dhcp) also prevents DNS forwarding from being available to the relevant libvirt-controlled network.

This could be resolved by running dnsmasq with the --no-dhcp-

Version-Release number of selected component (if applicable):

0.6.4

How reproducible:

Every time

Steps to Reproduce:
1. Create a libvirt network without /network/ip/dhcp defined.
2. Start a guest in that network.
3. Attempt to resolve names through DNS through the host's IP on that network (/network/ip/@address)
  
Actual results:

DNS service should be available via the IP defined in the network XML at /network/ip/@address, just as it is with DHCP running.

Expected results:

No DNS redirection is available.

Additional info:

dnsmasq has a --no-dhcp-interface= argument which can be used to implement this functionality.

Comment 1 Daniel Berrangé 2009-08-14 15:09:45 UTC
This was addressed in the 0.7.0 release in the following commit


author:	Daniel P. Berrange <berrange>
	 Thu, 30 Jul 2009 13:52:31 +0000 (14:52 +0100)
commit:	df3de82c06d42fed832c1955dafdee85879bd15a

Allow dnsmasq to provide DNS without DHCP

* src/network_driver.c: Always start dnsmasq to allow it to provide
  DNS, even if no DHCP ranges are enabled


Note You need to log in before you can comment on or make changes to this bug.