unbound.in (416ba5c74546f32a993436a99516d35008e9f384) unbound.in (2d004dd5bc51eaef924f55d1e2407e80a9b4bcb5)
1#!/bin/sh
2# Copyright (c) 2009-2014 Roy Marples
3# All rights reserved
4
5# unbound subscriber for resolvconf
6
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions

--- 31 unchanged lines hidden (view full) ---

40: ${unbound_restart:=@RESTARTCMD ${unbound_service}@}
41newconf="# Generated by resolvconf$NL"
42
43for d in $DOMAINS; do
44 dn="${d%%:*}"
45 ns="${d#*:}"
46 case "$unbound_insecure" in
47 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
1#!/bin/sh
2# Copyright (c) 2009-2014 Roy Marples
3# All rights reserved
4
5# unbound subscriber for resolvconf
6
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions

--- 31 unchanged lines hidden (view full) ---

40: ${unbound_restart:=@RESTARTCMD ${unbound_service}@}
41newconf="# Generated by resolvconf$NL"
42
43for d in $DOMAINS; do
44 dn="${d%%:*}"
45 ns="${d#*:}"
46 case "$unbound_insecure" in
47 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
48 newconf="$newconf${NL}domain-insecure: \"$dn\""
48 newconf="$newconf${NL}server:$NL"
49 newconf="$newconf domain-insecure: \"$dn\"$NL"
49 ;;
50 esac
51 newconf="$newconf${NL}forward-zone:$NL name: \"$dn\"$NL"
52 while [ -n "$ns" ]; do
53 newconf="$newconf forward-addr: ${ns%%,*}$NL"
54 [ "$ns" = "${ns#*,}" ] && break
55 ns="${ns#*,}"
56 done

--- 29 unchanged lines hidden ---
50 ;;
51 esac
52 newconf="$newconf${NL}forward-zone:$NL name: \"$dn\"$NL"
53 while [ -n "$ns" ]; do
54 newconf="$newconf forward-addr: ${ns%%,*}$NL"
55 [ "$ns" = "${ns#*,}" ] && break
56 ns="${ns#*,}"
57 done

--- 29 unchanged lines hidden ---