DNS requires absolute zone name, host must provide it.
IDNA patch caused this.

Patch attached.
-- 
Martin^2 Basti
>From bac9f62a7062d6fb25e9135d8fd62767411e46e0 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Tue, 10 Jun 2014 15:57:30 +0200
Subject: [PATCH] Make zonenames absolute in host plugin

This is fix for regression caused by IDNA patch, zone names must be
absolute.
---
 ipalib/plugins/host.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index bd7a3a2ba375a65b587bf0b8b6d47c1797dbad6a..133d55356bbb100fc3c1f1451a68571129945861 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -453,7 +453,7 @@ class host_add(LDAPCreate):
             check_reverse = not options.get('no_reverse', False)
             add_records_for_host_validation('ip_address',
                     DNSName(host),
-                    DNSName(domain),
+                    DNSName(domain).make_absolute(),
                     options['ip_address'],
                     check_forward=True,
                     check_reverse=check_reverse)
@@ -505,7 +505,8 @@ class host_add(LDAPCreate):
                 if options.get('ip_address'):
                     add_reverse = not options.get('no_reverse', False)
 
-                    add_records_for_host(DNSName(host), DNSName(domain),
+                    add_records_for_host(DNSName(host),
+                                         DNSName(domain).make_absolute(),
                                          options['ip_address'],
                                          add_forward=True,
                                          add_reverse=add_reverse)
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to