mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user