Description of problem:
Currently libvirtd runs dnsmasq without setting domain or giving possibility to specify domain search list. This makes DHCP NAT networking unfriendly as host "appserver" won't get resolved, one needs to use FQDN "appserver.a.example.com". In many customer environments there are scripts, applications, and services which depend on properly specified domain search list.
Killing the libvirtd instance started by dnsmasq and running the same command manually but also using a proper configuration file solves this issue. It would be very helpful if either the configuration file could be specified in the network XML file or the related options could be added to XML directly.
The following dnsmasq options would be most needed:
expand-hosts
domain=a.example.com
dhcp-option=119,"a.example.com b.example.com example.com"
Version-Release number of selected component (if applicable):
RHEL 6.0 RC 1
Note that this option:
domain=a.example.com
is added to the dnsmasq configuration whenever the line:
<domain name='a.example.com'/>
is put in the network definition XML. This feature has been present since libvirt version 0.4.5, so it is already in RHEL6.0.
the "expand-hosts' option has also been present since libvirt 0.9.3, so it will be in the next RHEL release.
That leaves only:
dhcp-option=119,"a.example.com b.example.com example.com"
to be implemented.