From 373f8cdce707e250e88f43cd59aeae3e1b5d9d12 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Fri, 5 Jun 2020 22:42:02 +0200 Subject: [PATCH] Specify min and max values for TTL of a DNS record Fixes: https://pagure.io/freeipa/issue/8358 Reviewed-By: Alexander Bokovoy --- ipaserver/plugins/dns.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py index a99619b82..275e3433e 100644 --- a/ipaserver/plugins/dns.py +++ b/ipaserver/plugins/dns.py @@ -3021,6 +3021,8 @@ class dnsrecord(LDAPObject): cli_name='ttl', label=_('Time to live'), doc=_('Time to live'), + minvalue=0, + maxvalue=2147483647, # see RFC 2181, ), StrEnum('dnsclass?', # Deprecated