]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: Let domains be restricted to local DNS
authorJosh Stone <jistone@redhat.com>
Thu, 4 Dec 2014 00:01:33 +0000 (16:01 -0800)
committerLaine Stump <laine@laine.org>
Tue, 20 Jan 2015 06:07:18 +0000 (01:07 -0500)
commit298fa4858ced29e2c42681635a5a8dcd6da0b231
treef792371f8b6a299b518e73e61b5fc2c569c36bba
parente11490e358e8d00877fe3fd2006238ecb315b347
network: Let domains be restricted to local DNS

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 f69a6b987d616, 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>
docs/formatnetwork.html.in
docs/schemas/network.rng
src/conf/network_conf.c
src/conf/network_conf.h
src/network/bridge_driver.c
tests/networkxml2confdata/nat-network-dns-local-domain.conf [new file with mode: 0644]
tests/networkxml2confdata/nat-network-dns-local-domain.xml [new file with mode: 0644]
tests/networkxml2conftest.c