Hi all,
there might be someone explaining the issue here (knowing @pmhahn as the DNS guy is busy).
I have a CNAME entry in my zone (DNS backend is Samba) configured:
root@praxis:~# univention-ldapsearch relativeDomainName=backuppc
[...]
# backuppc, schule.de, dns, schule2.de
dn: relativeDomainName=backuppc,zoneName=schule.de,cn=dns,dc=schule2,dc=de
zoneName: schule.de
relativeDomainName: backuppc
cNAMERecord: backuppc41.schule.de.
objectClass: top
objectClass: dNSZone
objectClass: univentionObject
univentionObjectType: dns/alias
dNSTTL: 30
[...]
# numEntries: 1
Note the dNSTTL of 30 seconds. Now -even after a restart of bind9- I am getting the follwoing from my clients:
root@praxis:~# systemctl restart bind9
root@praxis:~# dig backuppc.schule.de +ttlunits
; <<>> DiG 9.11.5-P4-5.1+deb10u5A~5.0.0.202105030845-Univention <<>> backuppc.schule.de +ttlunits
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50378
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: b48ef92fc447fb9074f675286125e3e3ddc275c8ae36232b (good)
;; QUESTION SECTION:
;backuppc.schule.de. IN A
;; ANSWER SECTION:
backuppc.schule.de. 15m IN CNAME backuppc41.schule.de.
backuppc41.schule.de. 15m IN A 192.168.9.2
;; AUTHORITY SECTION:
schule.de. 15m IN NS praxis2.schule.de.
schule.de. 15m IN NS praxis.schule2.de.
;; ADDITIONAL SECTION:
praxis.schule2.de. 15m IN A 192.168.1.10
;; Query time: 2 msec
;; SERVER: 192.168.1.10#53(192.168.1.10)
;; WHEN: Mi Aug 25 08:32:03 CEST 2021
;; MSG SIZE rcvd: 194
So the DNS TTL is set to 15 minutes instead of 30 seconds according to dig
.
Just to make sure I did a request on a Windows10 machine with nslookup:
C:\Users\chvoelker>nslookup -debug backuppc.schule.de 192.168.1.10
[...]
QUESTIONS:
backuppc.schule.de, type = A, class = IN
ANSWERS:
-> backuppc.schule.de
canonical name = backuppc41.schule.de
ttl = 900 (15 mins)
-> backuppc41.schule.de
internet address = 192.168.9.2
ttl = 900 (15 mins)
AUTHORITY RECORDS:
-> schule.de
nameserver = praxis2.schule.de
ttl = 900 (15 mins)
[...]
So it shows clearly the TTL of 15minutes. Not as configured of 30 seconds.
I even tried to set the TTL for a single entry to a large number (3 days). It will always reply with the 15 minutes. So where do they come from?
Why does bind9 not use the configured values?
Thanks a lot!
/KNEBB