Primary Zones:
DDNS is most commonly enabled on primary zones. In a primary zone, the DNS records are stored and managed directly on the authoritative DNS server.
With DDNS, clients such as DHCP servers or DHCP clients can add, remove, or update DNS records in the primary zone dynamically. This is often used for automatically updating the DNS records of hosts as they obtain IP addresses from a DHCP server.
Secondary Zones:
While DDNS updates are not directly applied to secondary zones, secondary zones can receive updates indirectly via zone transfers from the primary zone.
When a DDNS update is made to the primary zone, the updated information is propagated to the secondary zones through the standard zone transfer mechanism (AXFR).
Reverse Zones:
A reverse domain needs Dynamic DNS (DDNS) for several reasons, mainly related to the management of changing IP addresses and the need to maintain accurate reverse DNS records.
To enable your DHCP server to dynamically provision IP address to your domains:
When creating a domain via Domains -> Add Domain, enable DDNS and assign a TSIG key for secure dynamic updates. If DDNS is not enabled at this stage, it cannot be activated later through the DNS menu.
Alternatively, add domains that require dynamic configurations by navigating to DHCP -> Domains.
On the Domains page, Click on the Add Domain button in the top right corner.
Note: For your DHCP server to provision network parameters like IP addresses to your domains make sure your Domains and DHCP server are in the same network address.
Dynamic DNS (DDNS) allows the automatic updating of a DNS record when an IP address changes. This is often used for hosts with dynamic IP addresses assigned by a DHCP server.
Enable DDNS for the zone via one of the methods discussed above This would automatically enable the following DHCP options for the domain: ddns-updates:true, ddns-update-style:interim, domainname
Now select the subnet that you would like to provision IP addresses to the domain. Within that subnet specify the option domainname and specify the domain name you would like to create hosts to via dynamic updates like: domainname: data.com. This would enable the specific subnet to provision ip address to the hosts of that particular domain. Save the configurations.
Now for an authoritative forward mapping zone, enabling DDNS would automatically create an A record with a host name assigned to it. the host name assumes variable IPs provisioned by the chosen subnet.
Example: In the provided example, ip6.com. is an IPv6 based Forward mapping zone. Upon enabling DDNS, the DNS server will automatically generate a AAAA record for the zone. Within the AAAA record you can find the host name that holds dynamically variable IPv6 address provisioned by the DHCP server.
In the provided example, 1.1.1.in-addr.arpa. is an IPv4-based reverse zone. Upon enabling DDNS, the DNS server will automatically generate a PTR record within this reverse zone. These PTR records will correspond to the hostnames defined in the authoritative A records of the forward-mapping zone to which the reverse zone is linked.
The PTR record's name is the reverse of the IPv4 address appended to in-addr.arpa.
The reverse zone name 1.1.1.in-addr.arpa. would be the reverse of the assigned IPv4 address and the corresponding PTR record within that zone points to host.check.com. which is the hostname of the system that was assigned the IPv4 address. This enables reverse DNS lookups, where querying the IPv4 address in reverse notation returns the hostname host.check.com.