mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
298fa4858c
This adds a new "localOnly" attribute on the domain element of the
network xml. With this set to "yes", DNS requests under that domain
will only be resolved by libvirt's dnsmasq, never forwarded upstream.
This was how it worked before commit f69a6b987d
, and I found that
functionality useful. For example, I have my host's NetworkManager
dnsmasq configured to forward that domain to libvirt's dnsmasq, so I can
easily resolve guest names from outside. But if libvirt's dnsmasq
doesn't know a name and forwards it to the host, I'd get an endless
forwarding loop. Now I can set localOnly="yes" to prevent the loop.
Signed-off-by: Josh Stone <jistone@redhat.com>
10 lines
287 B
XML
10 lines
287 B
XML
<network>
|
|
<name>default</name>
|
|
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9c</uuid>
|
|
<forward dev='eth0' mode='nat'/>
|
|
<bridge name='virbr0' stp='on' delay='0' />
|
|
<domain name='example.com' localOnly='yes'/>
|
|
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
|
</ip>
|
|
</network>
|