From 4db65cac250073059c9b6b282081d12a250dacc0 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Jun 08 2020 05:31:11 +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 d6baa2f..d18d7af 100644 --- a/ipaserver/plugins/dns.py +++ b/ipaserver/plugins/dns.py @@ -3020,6 +3020,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