summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/dns.py
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-06-20 14:38:56 +0200
committerMartin Basti <mbasti@redhat.com>2016-06-21 12:38:00 +0200
commiteefdcc6b076e4305a14f231865636d46e4f16cf5 (patch)
tree485ac1c12a0a7f98fe8443b8857e851c41fb688f /ipaserver/plugins/dns.py
parentb00dbca98fee86f0c7584f1f37db376db9a57566 (diff)
downloadfreeipa-eefdcc6b076e4305a14f231865636d46e4f16cf5.tar.gz
freeipa-eefdcc6b076e4305a14f231865636d46e4f16cf5.tar.xz
freeipa-eefdcc6b076e4305a14f231865636d46e4f16cf5.zip
DNS: Support default TTL setting for master DNS zones
https://fedorahosted.org/freeipa/ticket/2956 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/plugins/dns.py')
-rw-r--r--ipaserver/plugins/dns.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py
index 14607b3fe..5b99ecf3d 100644
--- a/ipaserver/plugins/dns.py
+++ b/ipaserver/plugins/dns.py
@@ -2414,6 +2414,13 @@ class dnszone(DNSZoneBase):
minvalue=0,
maxvalue=2147483647, # see RFC 2181
),
+ Int('dnsdefaultttl?',
+ cli_name='default_ttl',
+ label=_('Default time to live'),
+ doc=_('Time to live for records without explicit TTL definition'),
+ minvalue=0,
+ maxvalue=2147483647, # see RFC 2181
+ ),
StrEnum('dnsclass?',
# Deprecated
cli_name='class',
@@ -2496,8 +2503,8 @@ class dnszone(DNSZoneBase):
'objectclass',
'a6record', 'aaaarecord', 'afsdbrecord', 'aplrecord', 'arecord',
'certrecord', 'cn', 'cnamerecord', 'dhcidrecord', 'dlvrecord',
- 'dnamerecord', 'dnsclass', 'dnsttl', 'dsrecord',
- 'hinforecord', 'hiprecord', 'idnsallowdynupdate',
+ 'dnamerecord', 'dnsclass', 'dnsdefaultttl', 'dnsttl',
+ 'dsrecord', 'hinforecord', 'hiprecord', 'idnsallowdynupdate',
'idnsallowquery', 'idnsallowsyncptr', 'idnsallowtransfer',
'idnsforwarders', 'idnsforwardpolicy', 'idnsname',
'idnssecinlinesigning', 'idnssoaexpire', 'idnssoaminimum',
@@ -2533,8 +2540,8 @@ class dnszone(DNSZoneBase):
'objectclass', # needed for record templates
'a6record', 'aaaarecord', 'afsdbrecord', 'aplrecord', 'arecord',
'certrecord', 'cn', 'cnamerecord', 'dhcidrecord', 'dlvrecord',
- 'dnamerecord', 'dnsclass', 'dnsttl', 'dsrecord',
- 'hinforecord', 'hiprecord', 'idnsallowdynupdate',
+ 'dnamerecord', 'dnsclass', 'dnsdefaultttl', 'dnsttl',
+ 'dsrecord', 'hinforecord', 'hiprecord', 'idnsallowdynupdate',
'idnsallowquery', 'idnsallowsyncptr', 'idnsallowtransfer',
'idnsforwarders', 'idnsforwardpolicy', 'idnsname',
'idnssecinlinesigning', 'idnssoaexpire', 'idnssoaminimum',