Change default DNS zone manager to hostmaster

Change our default zone manager to hostmaster@<domain> (as per
RFC 2142 recommendation).

https://fedorahosted.org/freeipa/ticket/1981
This commit is contained in:
Martin Kosek 2011-11-23 16:09:29 +01:00
parent 3f0eb1417c
commit 6d97444620
2 changed files with 3 additions and 3 deletions

View File

@ -670,7 +670,7 @@ class dnszone(LDAPObject):
cli_name='admin_email',
label=_('Administrator e-mail address'),
doc=_('Administrator e-mail address'),
default_from=lambda idnsname: 'root.%s' % idnsname,
default_from=lambda idnsname: 'hostmaster.%s' % idnsname,
normalizer=normalize_zonemgr,
),
Int('idnssoaserial?',

View File

@ -188,7 +188,7 @@ def add_zone(name, zonemgr=None, dns_backup=None, ns_hostname=None, ns_ip_addres
update_policy = "grant %(realm)s krb5-self * A; grant %(realm)s krb5-self * AAAA;" % dict(realm=api.env.realm)
if zonemgr is None:
zonemgr = 'root.%s' % name
zonemgr = 'hostmaster.%s' % name
if ns_hostname is None:
# automatically retrieve list of DNS masters
@ -387,7 +387,7 @@ class BindInstance(service.Service):
self.zone_notif = zone_notif
if not zonemgr:
self.zonemgr = 'root.%s.%s' % (self.host, self.domain)
self.zonemgr = 'hostmaster.%s' % self.domain
else:
self.zonemgr = normalize_zonemgr(zonemgr)