AXFR+DDNS
This provider uses the native DNS protocols. It uses the AXFR (RFC5936, Zone Transfer Protocol) to retrieve the existing records and DDNS (RFC2136, Dynamic Update) to make corrections. It can use TSIG (RFC2845) or IP-based authentication (ACLs).
It is able to work with any standards-compliant authoritative DNS server. It has been tested with BIND, Knot, and Yadifa.
Configuration
To use this provider, add an entry to creds.json
with TYPE
set to AXFRDDNS
.
Connection modes
Zone transfers default to TCP, DDNS updates default to UDP when using this provider.
The following two parameters in creds.json
allow switching to TCP or TCP over TLS.
update-mode
: May containudp
(the default),tcp
, ortcp-tls
.transfer-mode
: May containtcp
(the default), ortcp-tls
.
Authentication
Authentication information is included in the creds.json
entry for the provider:
transfer-key
: If this exists, the value is used to authenticate AXFR transfers.update-key
: If this exists, the value is used to authenticate DDNS updates.
For instance, your creds.json
might looks like:
If either key is missing, DNSControl defaults to IP-based ACL authentication for that function. Including both keys is the most secure option. Omitting both keys defaults to IP-based ACLs for all operations, which is the least secure option.
If distinct zones require distinct keys, you will need to instantiate the provider once for each key:
And update creds.json
accordingly:
Default nameservers
The AXFR+DDNS provider can be configured with a list of default nameservers. They will be added to all the zones handled by the provider.
This list can be provided either as metadata or in creds.json
. Only the later allows get-zones
to work properly.
Primary master
By default, the AXFR+DDNS provider will send the AXFR requests and the DDNS updates to the first nameserver of the zone, usually known as the "primary master". Typically, this is the first of the default nameservers. Though, on some networks, the primary master is a private node, hidden behind slaves, and it does not appear in the NS
records of the zone. In that case, the IP or the name of the primary server must be provided in creds.json
. With this option, a non-standard port might be used.
When no nameserver appears in the zone, and no default nameservers nor custom master are configured, the AXFR+DDNS provider will fail with the following error message:
Transfer/AXFR server
As mentioned above, the AXFR+DDNS provider will send AXFR requests to the primary master for the zone. On some networks, the AXFR requests are handled by a separate server to DDNS requests. Use the transfer-server
option in creds.json
. If not specified, it falls back to the primary master.
Buggy DNS servers regarding CNAME updates
When modifying a CNAME record, or when replacing an A record by a CNAME one in a single batched DDNS update, some DNS servers (e.g. Knot) will incorrectly reject the update. For this particular case, you might set the option buggy-cname = "yes"
in creds.json
. The changes will then be split in two DDNS updates, applied successively by the server. This will allow Knot to successfully apply the changes, but you will loose the atomic-update property.
Example: local testing
When testing dnscontrol
against a local nameserver, you might use the following minimal configuration:
Server configuration examples
Bind9
Here is a sample named.conf
example for an authauritative server on zone example.com
. It uses a simple IP-based ACL for the AXFR transfer and a conjunction of TSIG and IP-based ACL for the updates.
FYI: get-zones
When using get-zones
, a custom master or a list of default nameservers should be configured in creds.json
.
THe AXFR+DDNS provider does not display DNSSec records. But, if any DNSSec records is found in the zone, it will replace all of them with a single placeholder record:
FYI: create-domain
The AXFR+DDNS provider is not able to create domain.
FYI: AUTODNSSEC
The AXFR+DDNS provider is not able to ask the DNS server to sign the zone. But, it is able to check whether the server seems to do so or not.
When AutoDNSSEC is enabled, the AXFR+DDNS provider will emit a warning when no RRSIG, DNSKEY or NSEC records are found in the zone.
When AutoDNSSEC is disabled, the AXFR+DDNS provider will emit a warning when RRSIG, DNSKEY or NSEC records are found in the zone.
When AutoDNSSEC is not enabled or disabled, no checking is done.
FYI: MD5 Support
By default the used DNS Go package by miekg has deprecated supporting the (insecure) MD5 algorithm https://github.com/miekg/dns/commit/93945c284489394b77653323d11d5de83a2a6fb5. Some providers like the Leibniz Supercomputing Centre (LRZ) located in Munich still use this algorithm to authenticate internal dynamic DNS updates. To compensate the lack of MD5 a custom MD5 TSIG Provider was added into DNSControl.
Last updated