libvirt/tests/networkxml2argvdata
Laine Stump 513122ae93 network: don't forward DNS requests from isolated networks
This is in response to:

  https://bugzilla.redhat.com/show_bug.cgi?id=723862

which points out that a guest on an "isolated" network could
potentially exploit the DNS forwarding provided by dnsmasq to create a
communication channel to the outside.

This patch eliminates that possibility by adding the "--no-resolv"
argument to the dnsmasq commandline, which tells dnsmasq to not
forward on any requests that it can't resolve itself (by looking at
its own static hosts files and runtime list of dhcp clients), but to
instead return a failure for those requests.

This shouldn't cause any undesirable change from current
behavior, even in the case where a guest is currently configured with
multiple interfaces, one of them being connected to an isolated
network, and another to a network that does have connectivity to the
outside. If the isolated network's DNS server is queried for a name
it doesn't know, it will return "Refused" rather than "Unknown", which
indicates to the guest that it should query other servers, so it then
queries the connected DNS server, and gets the desired response.
2011-07-29 17:23:55 -04:00
..
isolated-network.argv network: don't forward DNS requests from isolated networks 2011-07-29 17:23:55 -04:00
isolated-network.xml Network: Add regression tests for the command-line arguments 2011-06-24 16:15:27 -04:00
nat-network-dns-hosts.argv network: add domain to unqualified names defined with <host> 2011-06-28 12:57:14 -04:00
nat-network-dns-hosts.xml network: add domain to unqualified names defined with <host> 2011-06-28 12:57:14 -04:00
nat-network-dns-txt-record.argv network: Fix dnsmasq hostsfile creation logic and related tests 2011-06-29 01:59:34 +02:00
nat-network-dns-txt-record.xml Network: Add regression tests for the command-line arguments 2011-06-24 16:15:27 -04:00
nat-network.argv network: Fix dnsmasq hostsfile creation logic and related tests 2011-06-29 01:59:34 +02:00
nat-network.xml Network: Add regression tests for the command-line arguments 2011-06-24 16:15:27 -04:00
netboot-network.argv network: add domain to unqualified names defined with <host> 2011-06-28 12:57:14 -04:00
netboot-network.xml Network: Add regression tests for the command-line arguments 2011-06-24 16:15:27 -04:00
netboot-proxy-network.argv network: add domain to unqualified names defined with <host> 2011-06-28 12:57:14 -04:00
netboot-proxy-network.xml Network: Add regression tests for the command-line arguments 2011-06-24 16:15:27 -04:00
routed-network.argv build: avoid long line tests 2011-06-24 15:34:28 -06:00
routed-network.xml Network: Add regression tests for the command-line arguments 2011-06-24 16:15:27 -04:00