libvirt/tests/networkxml2confdata
Laine Stump 4f595ba61c network: permit upstream forwarding of unqualified DNS names
This resolves the issue that prompted the filing of

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

(although the request there is for something much larger and more
general than this patch).

commit f3868259ca disabled the
forwarding to upstream DNS servers of unresolved DNS requests for
names that had no domain, but were just simple host names (no "."
character anywhere in the name). While this behavior is frowned upon
by DNS root servers (that's why it was changed in libvirt), it is
convenient in some cases, and since dnsmasq can be configured to allow
it, it must not be strictly forbidden.

This patch restores the old behavior, but since it is usually
undesirable, restoring it requires specification of a new option in
the network config. Adding the attribute "forwardPlainNames='yes'" to
the <dns> elemnt does the trick - when that attribute is added to a
network config, any simple hostnames that can't be resolved by the
network's dnsmasq instance will be forwarded to the DNS servers listed
in the host's /etc/resolv.conf for an attempt at resolution (just as
any FQDN would be forwarded).

When that attribute *isn't* specified, unresolved simple names will
*not* be forwarded to the upstream DNS server - this is the default
behavior.
2013-08-14 09:46:22 -04:00
..
dhcp6-nat-network.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
dhcp6-nat-network.xml use client id for IPv6 DHCP host definition 2013-02-25 02:49:06 -05:00
dhcp6-network.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
dhcp6-network.xml use client id for IPv6 DHCP host definition 2013-02-25 02:49:06 -05:00
dhcp6host-routed-network.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
dhcp6host-routed-network.xml use client id for IPv6 DHCP host definition 2013-02-25 02:49:06 -05:00
isolated-network.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
isolated-network.xml network: put dnsmasq parameters in conf-file instead of command line 2012-12-11 05:49:45 -05:00
nat-network-dns-forward-plain.conf network: permit upstream forwarding of unqualified DNS names 2013-08-14 09:46:22 -04:00
nat-network-dns-forward-plain.xml network: permit upstream forwarding of unqualified DNS names 2013-08-14 09:46:22 -04:00
nat-network-dns-hosts.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
nat-network-dns-hosts.xml network: permit upstream forwarding of unqualified DNS names 2013-08-14 09:46:22 -04:00
nat-network-dns-srv-record-minimal.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
nat-network-dns-srv-record-minimal.xml network: put dnsmasq parameters in conf-file instead of command line 2012-12-11 05:49:45 -05:00
nat-network-dns-srv-record.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
nat-network-dns-srv-record.xml network: put dnsmasq parameters in conf-file instead of command line 2012-12-11 05:49:45 -05:00
nat-network-dns-txt-record.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
nat-network-dns-txt-record.xml network: put dnsmasq parameters in conf-file instead of command line 2012-12-11 05:49:45 -05:00
nat-network.conf Revert "Add support for <option> tag in network config" 2013-02-27 10:55:24 -05:00
nat-network.xml Revert "Add support for <option> tag in network config" 2013-02-27 10:55:24 -05:00
netboot-network.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
netboot-network.xml network: put dnsmasq parameters in conf-file instead of command line 2012-12-11 05:49:45 -05:00
netboot-proxy-network.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
netboot-proxy-network.xml network: put dnsmasq parameters in conf-file instead of command line 2012-12-11 05:49:45 -05:00
routed-network.conf network: prevent dnsmasq from listening on localhost 2012-12-13 12:15:03 -05:00
routed-network.xml network: put dnsmasq parameters in conf-file instead of command line 2012-12-11 05:49:45 -05:00