]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
debian: drop allow-recursion handling
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 20 Feb 2018 09:48:41 +0000 (10:48 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 20 Feb 2018 09:48:41 +0000 (10:48 +0100)
build-scripts/debian-authoritative/pdns-server.config
build-scripts/debian-authoritative/pdns-server.postinst
build-scripts/debian-authoritative/pdns-server.templates

index 08f55575b841baeaa59226690f6fe0b76c6aec90..f2a181bae4f7f8765f58b7910cac61433c856ad9 100644 (file)
@@ -11,34 +11,17 @@ PDNSCONF=/etc/powerdns/pdns.conf
 db_version 2.0
 if [ ! -f $PDNSCONF ]; then
   db_input medium pdns-server/localaddress || true
-  db_input medium pdns-server/allowrecursion || true
 
   db_go || true
 else
   LOCAL=`(cat $PDNSCONF | grep "^local-address=" | awk -F '=' '{print $2}') || true`
-  RECURSION=`(cat $PDNSCONF | grep "^allow-recursion=" | awk -F '=' '{print $2}') || true`
 
-  # Put multiple lines on one line and separate them by a comma
-  REC=""
-  for i in $RECURSION; do
-    REC="$i,$REC"
-  done
-
-  # Remove , on the end of the line
-  RECURSION=`echo $REC | sed -e 's/,$//'`
-
-  if [ ! -z "$RECURSION" ]; then
-    db_set pdns-server/allowrecursion "$RECURSION"
-  else
-    db_set pdns-server/allowrecursion "127.0.0.1"
-  fi
   if [ ! -z "$LOCAL" ]; then
     db_set pdns-server/localaddress $LOCAL
   else
     db_set pdns-server/localaddress "0.0.0.0"
   fi
 
-  db_fset pdns-server/allowrecursion seen true
   db_fset pdns-server/localaddress seen true
 fi
 
index e83ea4d1aa79eae654ffa97f5419773c78a95476..af42f68490caa56bd9f0f3960c46d5fdf1f2ca12 100644 (file)
@@ -76,12 +76,6 @@ case "$1" in
       sed -i -e "s|^\(#\)\?\(# \)\?local-address=.*$|local-address=$RET|" $PDNSCONFTEMP
     fi
 
-    # Allow recursion subnets ?
-    db_get pdns-server/allowrecursion || true
-    if [ ! -z "$RET" ]; then
-      sed -i -e "s|^\(#\)\?\(# \)\?allow-recursion=.*$|allow-recursion=$RET|" $PDNSCONFTEMP
-    fi
-    
     # this can be removed once we do not have to update from
     # wheezy (pdns 3.1) any more. Note: there was never pdns 3.2 in Debian
     if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then
index 737b5e4aededefc697b2d9ebcbbdf43bd4a13750..dec6256321765cd992bb04f4f23ea95807173db7 100644 (file)
@@ -4,12 +4,3 @@ _Description: IP address where PowerDNS should listen on:
  If you have multiple IPs, the default behaviour of binding to all addresses
  can cause the OS to select the wrong IP for outgoing packets, so it is
  recommended to bind PowerDNS to a specific IP here.
-
-Template: pdns-server/allowrecursion
-Type: string
-Default: 127.0.0.1
-_Description: List of subnets that are allowed to recurse:
- Enter here, comma separated, the subnets that are allowed to recurse.
- Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a
- subnet.
-