# DDNS on DHCP Server and NAMED

**URL:** <https://forums.rockylinux.org/t/ddns-on-dhcp-server-and-named/11705>\
**Category:** Rocky Linux Help & Support\
**Created:** [October 27, 2023, 3:25pm UTC](https://forums.rockylinux.org/t/ddns-on-dhcp-server-and-named/11705 "2023-10-27T15:25:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan1970](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@ivan1970](https://forums.rockylinux.org/u/ivan1970)\
**Post date:** [October 27, 2023, 3:25pm UTC](https://forums.rockylinux.org/t/ddns-on-dhcp-server-and-named/11705/1 "2023-10-27T15:25:42Z")

</div>

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

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

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

include "/etc/rndc.key";

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

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.50 192.168.1.250;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

zone 1.168.192.in-addr.arpa. {
        primary 192.168.1.1;
        key rndc-key;
}

zone example.com. {
    primary 192.168.1.1;
    key rndc-key;
}
}

```

this is my named.conf file

```auto

options {
	#listen-on port 53 { 127.0.0.1; };
	#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; 192.168.1.0/24;};
	
	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";

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [December 26, 2023, 3:26pm UTC](https://forums.rockylinux.org/t/ddns-on-dhcp-server-and-named/11705/2 "2023-12-26T15:26:15Z")

</div>

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