summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/installutils.py
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-01-31 15:30:43 +0100
committerAdam Young <ayoung@redhat.com>2011-02-02 12:39:35 -0500
commitbb56285f6b350fcdd7b22f6d6c4fb69da5ce438d (patch)
tree8751ed42befe4a97fac0817ca6cb6e3317dea644 /ipaserver/install/installutils.py
parent2518612b0de13b3fd09eee7731804d077ded4ccf (diff)
downloadfreeipa-bb56285f6b350fcdd7b22f6d6c4fb69da5ce438d.tar.gz
freeipa-bb56285f6b350fcdd7b22f6d6c4fb69da5ce438d.tar.xz
freeipa-bb56285f6b350fcdd7b22f6d6c4fb69da5ce438d.zip
IPv6 enhancements
* Make host-add, host-del and reverse zone creation IPv6 aware * Make Bind listen on IPv6 interfaces, too https://fedorahosted.org/freeipa/ticket/398
Diffstat (limited to 'ipaserver/install/installutils.py')
-rw-r--r--ipaserver/install/installutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
index 05d397eea..314c26c7f 100644
--- a/ipaserver/install/installutils.py
+++ b/ipaserver/install/installutils.py
@@ -133,12 +133,12 @@ def verify_fqdn(host_name,no_host_dns=False):
# Verify that it is a DNS A or AAAA record
rs = dnsclient.query(host_name+".", dnsclient.DNS_C_IN, dnsclient.DNS_T_A)
- if len(rs) > 0:
+ if len([ rec for rec in rs if rec.dns_type is not dnsclient.DNS_T_SOA ]) > 0:
verify_dns_records(host_name, rs, resaddr, 'ipv4')
return
rs = dnsclient.query(host_name+".", dnsclient.DNS_C_IN, dnsclient.DNS_T_AAAA)
- if len(rs) > 0:
+ if len([ rec for rec in rs if rec.dns_type is not dnsclient.DNS_T_SOA ]) > 0:
verify_dns_records(host_name, rs, resaddr, 'ipv6')
return
else: