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