On 02/25/2015 05:51 PM, Carlos Miranda
Molina (Mstaaravin) wrote:
It looks like support for that was added in libvirt 1.0.1. Can you provide the entire commandline you use? In what way does it not work? Note that in order to have it take effect immediately and be saved in the persistent config for the network, you must specify "--live --config" on the commandline. Also, you can only add and remove entire <host> records, you can't add a <hostname> into an existing <host>. For example, I just tried this command and it worked for me (note that the outer single quotes around the xml, and use of double quotes within): virsh net-update default add dns-host \ '<host ip="192.168.122.145"> <hostname>blah.laine.org</hostname> <hostname>blorg.laine.org</hostname> </host>' \ --live --config When you enter this command, libvirt will rewrite the the file /var/lib/libvirt/dnsmasq/default.addnhosts and send a SIGHUP to dnsmasq (this is one of the few cases where dnsmasq is actually willing/able to reread a config file without needing to quit and restart the dnsmasq process).
<forwarder> was added in libvirt version 1.1.3. What version are you using? If it is high enough, have you looked at the DNS server used by the guest to see if it has gotten it right and/or tried doing a tcpdump of the DHCP exchange to see if the different forwarder is sent in the response?
|
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users