DDNS on DHCP Server and NAMED

we need help to enable dynamic DNS update when DHCP Server assign an IP address on a windows client.
DHCP correctly assign IP Address on client but no update is sent to dns server (named).
I have a Rocky Linux 9.2

this is my dhcpd.con file

default-lease-time 21600;
max-lease-time 86400;

option domain-name "example.com";
option domain-name-servers;

include "/etc/rndc.key";

ddns-domainname         "example.com";
ddns-rev-domainname     "in-addr.arpa";
ddns-update-style       interim;
ddns-updates            on;
#ignore                  client-updates;

subnet netmask {
option routers;
option subnet-mask;

zone  1.168.192.in-addr.arpa. {
        key rndc-key;

zone example.com. {
    key rndc-key;

this is my named.conf file

options {
	#listen-on port 53 {; };
	#listen-on-v6 port 53 { ::1; };
	directory 	"/var/named";
	dump-file 	"/var/named/data/cache_dump.db";
	statistics-file "/var/named/data/named_stats.txt";
	memstatistics-file "/var/named/data/named_mem_stats.txt";
	secroots-file	"/var/named/data/named.secroots";
	recursing-file	"/var/named/data/named.recursing";
	allow-query     { localhost;;};
	recursion no;

	dnssec-enable yes;
	dnssec-validation no;

	managed-keys-directory "/var/named/dynamic";
	geoip-directory "/usr/share/GeoIP";

	pid-file "/run/named/named.pid";
	session-keyfile "/run/named/session.key";

	/* https://fedoraproject.org/wiki/Changes/CryptoPolicy */
	include "/etc/crypto-policies/back-ends/bind.config";

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;

zone "." IN {
	type hint;
	file "named.ca";

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

# primary forward and reverse zones
//forward zone
zone "example.com" IN {
     type master;
     file "example.com.db";
     allow-update { key "rndc-key"; };
    allow-query {any; };
//reverse zone
zone "1.168.192.in-addr.arpa" IN {
     type master;
     file "example.com.rev";
     allow-update { key "rndc-key"; };
    allow-query { any; };

include "/etc/rndc.key";

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.