No explicit zone specification.

https://fedorahosted.org/freeipa/ticket/4780

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Jan Pazdziora 2014-12-02 11:48:04 +01:00 committed by Martin Kosek
parent 026c9eca09
commit bea417828d

View File

@ -1553,7 +1553,6 @@ def do_nsupdate(update_txt):
UPDATE_TEMPLATE_A = """
debug
zone $ZONE.
update delete $HOSTNAME. IN A
show
send
@ -1564,7 +1563,6 @@ send
UPDATE_TEMPLATE_AAAA = """
debug
zone $ZONE.
update delete $HOSTNAME. IN AAAA
show
send
@ -1588,8 +1586,7 @@ def update_dns(server, hostname):
sub_dict = dict(HOSTNAME=hostname,
IPADDRESS=ip,
TTL=1200,
ZONE='.'.join(hostname.split('.')[1:])
TTL=1200
)
if af == socket.AF_INET:
@ -1664,10 +1661,9 @@ def update_ssh_keys(server, hostname, ssh_dir, create_sshfp):
return
if create_sshfp:
zone = '.'.join(hostname.split('.')[1:])
ttl = 1200
update_txt = 'debug\nzone %s.\n' % zone
update_txt = 'debug\n'
update_txt += 'update delete %s. IN SSHFP\nshow\nsend\n' % hostname
for pubkey in pubkeys:
sshfp = pubkey.fingerprint_dns_sha1()