X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Funbound%2Flocal.sh;h=319df49a7dbdcad79404a2fc9a8a03b08d885633;hp=0b68dca8c905ec94bd62c23c57d9e81872085dfe;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d diff --git a/etc/sv/unbound/local.sh b/etc/sv/unbound/local.sh index 0b68dca..319df49 100644 --- a/etc/sv/unbound/local.sh +++ b/etc/sv/unbound/local.sh @@ -2,16 +2,16 @@ sudo apt-get install unbound "$tool"/local/insserv-remove unbound sudo install -m 644 -o root -g root /dev/stdin /etc/resolv.conf <<-EOF - search ${vm_host#*.} + search ${local_host#*.} nameserver 127.0.0.1 - #nameserver ${vm_host_nameserver} + #nameserver ${local_host_nameserver} EOF sudo install -m 440 -o unbound -g unbound \ "$tool"/etc/unbound/named.cache \ /etc/unbound/named.cache m4 \ - --define=OUTGOING_INTERFACE=$vm_ipv4 \ + --define=OUTGOING_INTERFACE=$local_ipv4 \ <"$tool"/etc/unbound/unbound.conf | sudo install -m 440 -o unbound -g unbound /dev/stdin \ /etc/unbound/unbound.conf