summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2014-12-02 11:48:04 +0100
committerMartin Kosek <mkosek@redhat.com>2014-12-05 09:46:56 +0100
commitbea417828d61777015785c716c4225bb48dcf037 (patch)
treea19a1c987d93bb07bbb34157c9fd49110716c520 /ipa-client
parent026c9eca0920e92e56148b808c851e9bde00ece8 (diff)
downloadfreeipa-bea417828d61777015785c716c4225bb48dcf037.tar.gz
freeipa-bea417828d61777015785c716c4225bb48dcf037.tar.xz
freeipa-bea417828d61777015785c716c4225bb48dcf037.zip
No explicit zone specification.
https://fedorahosted.org/freeipa/ticket/4780 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipa-client')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install8
1 files changed, 2 insertions, 6 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 612ff62a1..69f63d322 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -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()