Univention Bugzilla – Bug 53623
Synchronisation of DNS TTL data
Last modified: 2021-08-06 09:02:53 CEST
As customer requested I will reopen this bug and set the version up to UCS 4.4; I'm sure the problem is still relevant in UCS 5. The ttl is not synchronized to samba. +++ This bug was initially created as a clone of Bug #23732 +++ Die DNS TTL Daten werden im Moment nicht synchronisiert. Ich denke es wäre gut, wenn wir das noch zu 3.0 umsetzen.
To verify the problem easily change the TTL in UMC (actually you do not need to do that as UMC default TTL is 3 hours) in a /dns/backend=samba domain to a different value than 900 minutes. This change will never applied. A fast rgrep through our s4 code shows that we sync hardcoded 900 minute ttl: rgrep ttl=900 services/univention-s4-connector/modules/univention/s4connector/s4/dns.py:# def __init__(self, ip_addr, serial=1, ttl=900, rank=dnsp.DNS_RANK_ZONE): services/univention-s4-connector/modules/univention/s4connector/s4/dns.py:# def __init__(self, ip6_addr, serial=1, ttl=900, rank=dnsp.DNS_RANK_ZONE): services/univention-s4-connector/modules/univention/s4connector/s4/dns.py:# def __init__(self, dns_server, serial=1, ttl=900, rank=dnsp.DNS_RANK_ZONE): services/univention-s4-connector/modules/univention/s4connector/s4/dns.py:# def __init__(self, target, port, priority=0, weight=100, serial=1, ttl=900, rank=dnsp.DNS_RANK_ZONE): services/univention-s4-connector/modules/univention/s4connector/s4/dns.py:# def __init__(self, cname, serial=1, ttl=900, rank=dnsp.DNS_RANK_ZONE): services/univention-s4-connector/modules/univention/s4connector/s4/dns.py:# def __init__(self, slist, serial=1, ttl=900, rank=dnsp.DNS_RANK_ZONE): services/univention-s4-connector/modules/univention/s4connector/s4/dns.py: def __init__(self, ptr, serial=1, ttl=900, rank=dnsp.DNS_RANK_ZONE): services/univention-s4-connector/modules/univention/s4connector/s4/dns.py: def __init__(self, name, priority, serial=1, ttl=900, rank=dnsp.DNS_RANK_ZONE): btw this code has not changed in UCS5 and so the bug will also apply to UCS5
Created attachment 10791 [details] bug53623_incomplete_draft.patch
Created attachment 10792 [details] bug53623.patch This patch should be better.
Created attachment 10794 [details] bug53623-ucs448.patch
A git branch with the patch would be nice. Maybe with a merge request, so that one can review it professionally.
Patch worked in my 448 testenvironment. Many thanks.