Hi there,
I’ve got an Setup which works well on Debian, Freebsd and OpenWRT, which adds dynamically PTR Records via DHCPd to Named. The issue they I’ve got is that instead the last octet of an IP Address all four octets of the address get submitted. This is not that what I want Adding regular DNS is working fine.
Oct 31 19:57:53 troonedier named[7972]: client @0xffffa8762960 127.0.0.1#42744/key rndc-key: signer "rndc-key" approved
Oct 31 19:57:53 troonedier named[7972]: client @0xffffa8762960 127.0.0.1#42744/key rndc-key: updating zone '228.23.172.in-addr.arpa/IN': deleting rrset at '52.228.23.172.228.23.172.in-addr.arpa' PTR
Oct 31 19:57:53 troonedier named[7972]: client @0xffffa8762960 127.0.0.1#42744/key rndc-key: updating zone '228.23.172.in-addr.arpa/IN': adding an RR at '52.228.23.172.228.23.172.in-addr.arpa' PTR Mac-mini.webterrorist.lan.
Here ar my configs:
dhcpd:
ddns-updates on;
ddns-update-style standard;
update-static-leases on;
authoritative;
option rfc3442-classless-static-routes code 121 = array of integer 8;
option ms-classless-static-routes code 249 = array of integer 8;
include "/etc/rndc.key";
allow unknown-clients;
use-host-decl-names on;
default-lease-time 86400; #24 hours
max-lease-time 86400;
log-facility local7;
zone webterrorist.lan. {
primary 127.0.0.1;
key rndc-key;
}
zone 228.23.172.in-addr.arpa. {
primary 127.0.0.1;
key rndc-key;
}
subnet 172.23.228.0 netmask 255.255.255.0 {
range 172.23.228.50 172.23.228.199;
option subnet-mask 255.255.255.0;
option routers 172.23.228.1;
option domain-name-servers 172.23.228.8;
option domain-name "webterrorist.lan";
option rfc3442-classless-static-routes 24, 172, 23, 229, 172, 23, 228, 1;
option ms-classless-static-routes 24, 172, 23, 229, 172, 23, 228, 1;
ddns-domainname "webterrorist.lan.";
ddns-rev-domainname "228.23.172.in-addr.arpa.";
}
named:
include "/etc/rndc.key";
acl internals {
172.23.228.0/24;
172.23.229.0/24;
localhost;
localnets;
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
options {
directory "/var/lib/named";
listen-on
{
127.0.0.1;
172.23.228.8;
};
auth-nxdomain no; # conform to RFC1035
forwarders {
62.109.121.1;
62.109.121.2;
};
allow-query { internals; };
// allow-query {
// any;
// };
// restrict recursion
allow-recursion {
internals;
};
allow-transfer {
internals;
};
dnssec-validation yes;
managed-keys-directory "/var/lib/named/managed-keys";
// dnssec-validation no;
listen-on-v6 { any; };
};
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "127.0.0.zone";
};
zone "228.23.172.in-addr.arpa" {
type master;
file "dyn/228.23.172.in-addr.arpa.zone";
allow-update { key rndc-key; };
};
zone "webterrorist.lan" {
type master;
file "dyn/webterrorist.lan.zone";
allow-update { key rndc-key; };
};
the zone file:
228.23.172.in-addr.arpa IN SOA troonedier.webterrorist.lan. root.webterrorist.lan. (
2023092439 ; serial
28800 ; refresh (8 hours)
604800 ; retry (1 week)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS troonedier.webterrorist.lan.
$ORIGIN 228.23.172.in-addr.arpa.
$TTL 3600 ; 1 hour
52.228.23.172 PTR Mac-mini.webterrorist.lan.
But instead “52.228.23.172 PTR Mac-mini.webterrorist.lan.” it should be just “52 PTR Mac-mini.webterrorist.lan.”
and this happens on openSuSE 15.5 only. Anyone have an idea how I could fix it?
cheers Darko