mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
15b5902db9
It was pointed out here: https://bugzilla.redhat.com/show_bug.cgi?id=1331796#c4 that we shouldn't be adding a "no-resolv" to the dnsmasq.conf file for a network if there isn't any <forwarder> element that specifies an IP address but no qualifying domain. If there is such an element, it will handle all DNS requests that weren't otherwise handled by one of the forwarder entries with a matching domain attribute. If not, then DNS requests that don't match the domain of any <forwarder> would not be resolved if we added no-resolv. So, only add "no-resolv" when there is at least one <forwarder> element that specifies an IP address but no qualifying domain.
17 lines
486 B
Plaintext
17 lines
486 B
Plaintext
##WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
|
|
##OVERWRITTEN AND LOST. Changes to this configuration should be made using:
|
|
## virsh net-edit default
|
|
## or other application using the libvirt API.
|
|
##
|
|
## dnsmasq conf file created by libvirt
|
|
strict-order
|
|
server=8.8.8.8
|
|
server=8.8.4.4
|
|
server=/example.com/192.168.1.1
|
|
server=/www.example.com/#
|
|
no-resolv
|
|
except-interface=lo
|
|
bind-dynamic
|
|
interface=virbr0
|
|
addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts
|