summaryrefslogtreecommitdiff
path: root/contrib/openresolv/pdns_recursor.in
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2019-11-20 23:56:20 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2019-11-20 23:56:20 +0000
commit9af6c78cd43b18e169f10802142c61638bd62bed (patch)
tree7e0e61c1b6a2c107e072b2ca22f5bcaf08bcd971 /contrib/openresolv/pdns_recursor.in
parent6467506baf5c2958d7d19546cf4076d19a8586c2 (diff)
parent2d823aa1c78fa588688b3d0ad06e678cd94304d4 (diff)
downloadsrc-test2-9af6c78cd43b18e169f10802142c61638bd62bed.tar.gz
src-test2-9af6c78cd43b18e169f10802142c61638bd62bed.zip
Notes
Diffstat (limited to 'contrib/openresolv/pdns_recursor.in')
-rw-r--r--contrib/openresolv/pdns_recursor.in17
1 files changed, 7 insertions, 10 deletions
diff --git a/contrib/openresolv/pdns_recursor.in b/contrib/openresolv/pdns_recursor.in
index ad2d922dc4de..f3632e000385 100644
--- a/contrib/openresolv/pdns_recursor.in
+++ b/contrib/openresolv/pdns_recursor.in
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (c) 2009-2011 Roy Marples
+# Copyright (c) 2009-2019 Roy Marples
# All rights reserved
# PowerDNS Recursor subscriber for resolvconf
@@ -33,17 +33,14 @@
NL="
"
-: ${pdns_service:=pdns_recursor}
+: ${pdns_service:=pdns-recursor}
newzones=
-# pds_recursor does not present support global forward servers, which
-# does limit it's usefulness somewhat.
-# If it did, the below code can be enabled, or something like it.
-#for n in $NAMESERVERS; do
-# newzones="$newzones${newzones:+,}$n"
-#done
-#[ -n "$newzones" ] && newzones=".=$newzones$NL"
+for n in $NAMESERVERS; do
+ newzones="$newzones${newzones:+,}$n"
+done
+[ -n "$newzones" ] && newzones="+.=$newzones$NL"
for d in $DOMAINS; do
newns=
@@ -71,7 +68,7 @@ then
eval $pdns_restart
elif [ -n "$RESTARTCMD" ]; then
set -- ${pdns_service}
- eval $RESTARTCMD
+ eval "$RESTARTCMD"
else
@SBINDIR@/resolvconf -r ${pdns_service}
fi