summaryrefslogtreecommitdiff
path: root/contrib/openresolv/pdns_recursor.in
diff options
context:
space:
mode:
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