diff --git a/update-virt-hosts b/update-virt-hosts index bf3a142..de608ba 100755 --- a/update-virt-hosts +++ b/update-virt-hosts @@ -1,7 +1,8 @@ #!/bin/sh : ${LIBVIRT_NETWORK:=${1:-default}} +: ${DNSMASQ_DOMAIN:=${LIBVIRT_NETWORK}.virt} -virt-hosts $LIBVIRT_NETWORK > /var/lib/libvirt/dnsmasq/${LIBVIRT_NETWORK}.addnhosts +virt-hosts -D $DNSMASQ_DOMAIN -N $LIBVIRT_NETWORK > /var/lib/libvirt/dnsmasq/${LIBVIRT_NETWORK}.addnhosts killall -HUP dnsmasq