Skip to content

Commit

Permalink
use network name in domain
Browse files Browse the repository at this point in the history
  • Loading branch information
larsks committed Oct 4, 2013
1 parent 0e4a37d commit d4b0078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update-virt-hosts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d4b0078

Please sign in to comment.