From ac47599ebf006d34d06d23654cb93f707cbd7d1f Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Jun 08 2020 05:31:52 +0000 Subject: Specify min and max values for TTL of a DNS record Fixes: https://pagure.io/freeipa/issue/8358 Reviewed-By: Alexander Bokovoy --- diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py index a99619b..275e343 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