[Bug 584862] Re: libvirt launches dnsmasq for non-dhcp networks.

guenther kuenzel guenther.kuenzel at googlemail.com
Sun Nov 20 07:29:58 UTC 2011


i would like to point out, that it starts dnsmasq but it does not listen for dhcp.
it listen to dns, even if no dns entries are defined for the network.

# virsh net-dumpxml default
<network>                                                                                                                                                                                    
  <name>default</name>                                                                                                                                                                       
  <uuid>ff2d70f9-7613-05fe-7c67-40b2d7f6b0e4</uuid>                                                                                                                                          
  <forward mode='nat'/>                                                                                                                                                                      
  <bridge name='virbr0' stp='on' delay='0' />                                                                                                                                                
  <mac address='52:54:00:24:08:E3'/>                                                                                                                                                         
  <ip address='192.168.122.1' netmask='255.255.255.0'>                                                                                                                                       
  </ip>                                                                                                                                                                                      
  <ip address='192.168.10.0' netmask='255.255.255.0'>                                                                                                                                        
  </ip>                                                                                                                                                                                      
  <ip address='192.168.20.0' netmask='255.255.255.0'>                                                                                                                                        
  </ip>                                                                                                                                                                                      
</network>                                                                                                                                                                                   

# ps -e --format=args | grep dnsmasq                                                                                                      
dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --listen-address 192.168.122.1 --listen-address 192.168.10.0 --listen-address 192.168.20.0

# netstat --listen --numeric --tcp --udp --programs | grep dnsmasq                                                                                                        
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      6160/dnsmasq    
tcp        0      0 192.168.10.0:53         0.0.0.0:*               LISTEN      6160/dnsmasq    
tcp        0      0 192.168.20.0:53         0.0.0.0:*               LISTEN      6160/dnsmasq    
udp        0      0 192.168.122.1:53        0.0.0.0:*                           6160/dnsmasq    
udp        0      0 192.168.10.0:53         0.0.0.0:*                           6160/dnsmasq    
udp        0      0 192.168.20.0:53         0.0.0.0:*                           6160/dnsmasq    

dnsmasq should not start if no dhcp and no dns is defined in network xml

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/584862

Title:
  libvirt launches dnsmasq for non-dhcp networks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/584862/+subscriptions



More information about the Ubuntu-server-bugs mailing list