RFC2136 (BIND) DNS credentials
Use an RFC2136 (BIND) DNS credential when your DNS server accepts RFC2136 dynamic updates and TSIG-signed zone transfers (AXFR) with an HMAC key.
An RFC2136 (BIND) credential lets external-dns create and remove records on a DNS server over RFC2136 dynamic updates. The server must also accept TSIG-signed zone transfers (AXFR) with an HMAC key.
Supported options
| Option | Status | Notes |
|---|---|---|
| external-dns records over RFC2136 with TSIG | Supported | external-dns creates records from DNSEndpoints and Ingresses, and removes them again when the source is deleted. |
| Let's Encrypt DNS-01 (RFC2136 challenge) | Not tested | Requires a public zone on the same server, with the same TSIG key. |
| Name server on a port other than 53 | Not supported | The form hints host:port, but only port 53 works. |
| Without TSIG | Not supported | A TSIG key is required. |
Before you start
- A zone on the DNS server that Cloudera Cloud Factory can manage, for example
apps.example.com. - A TSIG key that the server accepts for this zone. The key has a name, a base64 secret, and an algorithm:
hmac-sha256,hmac-sha512, orhmac-sha1. The server must accept the key for:- Dynamic updates. Cloudera Cloud Factory writes A, CNAME, and TXT records.
- Zone transfers (AXFR), signed with the same key. Cloudera Cloud Factory always reads the zone by AXFR to see which records it owns. If the server refuses AXFR, external-dns fails.
- Port 53, TCP and UDP, open from the nodes of the workload cluster to the server.
- The IP address of the server. Use an IP address, not a host name, because the workload cluster might not resolve internal names.
The following BIND configuration is an example for the zone. Adjust the names to your environment. It is a starting point, not a configuration that Cloudera Cloud Factory verifies.
key "ccf-external-dns" {
algorithm hmac-sha256;
secret "<base64 secret>";
};
zone "apps.example.com" {
type primary;
file "/var/lib/bind/apps.example.com.db";
update-policy { grant ccf-external-dns zonesub ANY; };
allow-transfer { key ccf-external-dns; };
};Split-horizon DNS
One credential drives both external-dns and the Let's Encrypt challenge. If your RFC2136 zone is internal-only and the public view of the name is in another service, for example Route53, Let's Encrypt cannot see the challenge. In that case, use RFC2136 for records with a Self-Signed or Customer-Provided CA profile, or put the public zone on the RFC2136 server. In the UI, a credential defaults to Let's Encrypt DNS-01, so select a Self-Signed or Customer-Provided CA profile when you enable DNS for a private zone.
