diff options
author | Martin Basti <mbasti@redhat.com> | 2016-09-02 17:22:24 +0200 |
---|---|---|
committer | David Kupka <dkupka@redhat.com> | 2016-09-07 16:22:03 +0200 |
commit | f3d379071a9af50e38fcc07491bc68b8d3d172a4 (patch) | |
tree | f8fd53e381021bd13ba4747c9f9928eaa284d203 /ipaserver/plugins/dns.py | |
parent | 71ad8d4fc982b5349248d50338e1d16ce45c523e (diff) | |
download | freeipa-f3d379071a9af50e38fcc07491bc68b8d3d172a4.tar.gz freeipa-f3d379071a9af50e38fcc07491bc68b8d3d172a4.tar.xz freeipa-f3d379071a9af50e38fcc07491bc68b8d3d172a4.zip |
Allow multicast addresses in A/AAAA records
There is no reason (RFC) why we should prevent users to add multicast
addresses to A/AAAA records
https://fedorahosted.org/freeipa/ticket/5814
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/plugins/dns.py')
-rw-r--r-- | ipaserver/plugins/dns.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py index a5f11a47f..5510a66db 100644 --- a/ipaserver/plugins/dns.py +++ b/ipaserver/plugins/dns.py @@ -566,7 +566,8 @@ def add_records_for_host_validation(option_name, host, domain, ip_addresses, che for ip_address in ip_addresses: try: - ip = CheckedIPAddress(ip_address, match_local=False) + ip = CheckedIPAddress( + ip_address, match_local=False, allow_multicast=True) except Exception as e: raise errors.ValidationError(name=option_name, error=unicode(e)) @@ -597,7 +598,8 @@ def add_records_for_host(host, domain, ip_addresses, add_forward=True, add_rever ip_addresses = [ip_addresses] for ip_address in ip_addresses: - ip = CheckedIPAddress(ip_address, match_local=False) + ip = CheckedIPAddress( + ip_address, match_local=False, allow_multicast=True) if add_forward: add_forward_record(domain, host, unicode(ip)) |