]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
s/recursor/resolver 4752/head
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 24 Oct 2016 21:51:28 +0000 (23:51 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 9 Jan 2017 12:26:45 +0000 (13:26 +0100)
docs/markdown/authoritative/howtos.md
docs/markdown/authoritative/recursion.md
docs/markdown/authoritative/settings.md
pdns/common_startup.cc
pdns/stubquery.cc
pdns/stubresolver.cc
regression-tests/backends/gsql-common

index 8ab3cb8075c89b4d9ebcf0335a56aeeb223d4ad1..9d232aed16f3b57ad9f90bc613281e553ea57871 100644 (file)
@@ -154,11 +154,11 @@ If you have multiple IP addresses on the internet on one machine, UNIX often sen
 # Using ALIAS records
 The ALIAS record provides a way to have CNAME-like behaviour on the zone apex.
 
-In order to correctly serve ALIAS records, set the [`recursor`](settings.md#recursor)
+In order to correctly serve ALIAS records, set the [`resolver`](settings.md#resolver)
 setting to an existing resolver: 
 
 ```
-recursor=[::1]:5300
+resolver=[::1]:5300
 ```
 
 and add the ALIAS record to your zone apex. e.g.:
index c7dd4e2c3ae24c460bb6f99db21d06a59dee0ace..21bf921e42c1d9ab13eecbab59135f2a5624458c 100644 (file)
@@ -1,4 +1,4 @@
-**Warning**: Recursion was remove from the Authoritative Server in version 4.1.0
+**Warning**: Recursion was removed from the Authoritative Server in version 4.1.0
 
 # Recursion with the Authoritative Server
 From 2.9.5 onwards, PowerDNS offers both authoritative nameserving capabilities
index a343172339f2ec845ab1614d6497e8e291a27f70..0c036e293dc13b46b104cc4d376744bdbf7930b7 100644 (file)
@@ -676,11 +676,17 @@ Seconds to store recursive packets in the PacketCache. See
 
 ## `recursor`
 * IP Address
-* Only used for ALIAS since: 4.1.0
+* Removed in: 4.1.0
 
 If set, recursive queries will be handed to the recursor specified here. See
 ["Recursion"](recursion.md).
 
+## `resolver`
+* IP Address
+* Added in: 4.1.0
+
+Use this resolver for ALIAS and the internal stub resolver.
+
 ## `retrieval-threads`
 * Integer
 * Default: 2
index 2030c94abd74d7c5e9403e30751c34a61b3f7286..adfa435dbc55603ebe6113179a6e0f3b20ea20d9 100644 (file)
@@ -99,7 +99,7 @@ void declareArguments()
   ::arg().set("signing-threads","Default number of signer threads to start")="3";
   ::arg().set("receiver-threads","Default number of receiver threads to start")="1";
   ::arg().set("queue-limit","Maximum number of milliseconds to queue a query")="1500"; 
-  ::arg().set("recursor","If alias expansion is desired, IP address of a recursing nameserver")="no";
+  ::arg().set("resolver","Use this resolver for ALIAS and the internal stub resolver")="no";
   ::arg().set("udp-truncation-threshold", "Maximum UDP response size before we truncate")="1680";
   ::arg().set("disable-tcp","Do not listen to TCP queries")="no";
   
@@ -509,8 +509,8 @@ void mainthread()
   Utility::dropUserPrivs(newuid);
 
   // We need to start the Recursor Proxy before doing secpoll, see issue #2453
-  if(::arg().mustDo("recursor")){
-    DP=new DNSProxy(::arg()["recursor"]);
+  if(::arg().mustDo("resolver")){
+    DP=new DNSProxy(::arg()["resolver"]);
     DP->go();
   }
 
index c6ac515b96440a3e43be5633c822658cbce3c5ef..140da8bba9007f864adfab55b4d6a54ac9116b4d 100644 (file)
@@ -43,7 +43,7 @@ try
     exit(EXIT_FAILURE);
   }
 
-  ::arg().set("recursor","If recursion is desired, IP address of a recursing nameserver")="no"; 
+  ::arg().set("resolver","Use this resolver for ALIAS and the internal stub resolver")="no"; 
 
   reportAllTypes();
   dns_random_init("0123456789abcdef");
index eab830e1026bed134b8a693245942540a15ba584..72b90f72ce913831e15b4c452e9131a2851f35c9 100644 (file)
@@ -50,8 +50,8 @@ void stubParseResolveConf()
     }
   }
 
-  if(::arg().mustDo("recursor"))
-    s_stubresolvers.push_back(ComboAddress(::arg()["recursor"], 53));
+  if(::arg().mustDo("resolver"))
+    s_stubresolvers.push_back(ComboAddress(::arg()["resolver"], 53));
 
   // Last resort, add 127.0.0.1
   if(s_stubresolvers.empty()) {
index 451a0986039b7e913c528c2fab493617dd6c24f5..e1a9259d5377599ba8624ef9742c2cd46515529a 100644 (file)
@@ -37,7 +37,7 @@ gsql_master()
 
        $RUNWRAPPER $PDNS --daemon=no --local-port=$port --config-dir=. \
                --config-name=$backend --socket-dir=./ --no-shuffle \
-               --dnsupdate=yes --recursor=8.8.8.8 --outgoing-axfr-expand-alias=yes \
+               --dnsupdate=yes --resolver=8.8.8.8 --outgoing-axfr-expand-alias=yes \
                --cache-ttl=$cachettl --dname-processing \
                --disable-axfr-rectify=yes $lua_prequery &