]> xenbits.xensource.com Git - libvirt.git/commit
network: add domain to unqualified names defined with <host>
authorLaine Stump <laine@laine.org>
Sat, 25 Jun 2011 05:14:38 +0000 (01:14 -0400)
committerLaine Stump <laine@laine.org>
Tue, 28 Jun 2011 16:57:14 +0000 (12:57 -0400)
commit25171f607c23312eff16cc054886c4b7576e470b
tree556bfa737cfe03572d7fe22cca9e9ffb84c0033a
parent6818cf869017ca406290cd36c83712a246f876bc
network: add domain to unqualified names defined with <host>

If a domain name is defined for a network, add the --expand-hosts
option to the dnsmasq commandline. This results in the domain being
added to any hostname that is defined in a dns <host> element and
contains no '.' characters (i.e. it is an "unqualified"
hostname). Since PTR records are automatically created for any name
defined in <host>, the result of a PTR request will change from the
unqualified name to the qualified name.

This also has the same effect on any hostnames that dnsmasq reads
from the host's /etc/hosts file.

(In the case of guest hostnames that were learned by dnsmasq via DHCP
requests, they were already getting the domain name added on, even
without --expand-hosts).
src/network/bridge_driver.c
tests/networkxml2argvdata/nat-network-dns-hosts.argv
tests/networkxml2argvdata/nat-network-dns-hosts.xml
tests/networkxml2argvdata/netboot-network.argv
tests/networkxml2argvdata/netboot-proxy-network.argv