# 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.:
-**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
## `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
::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";
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();
}
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");
}
}
- 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()) {
$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 &