mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
No explicit zone specification.
https://fedorahosted.org/freeipa/ticket/4780 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
026c9eca09
commit
bea417828d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user