[Freeipa-devel] [PATCH] Proper fix for ticket 5306
Petr Spacek
pspacek at redhat.com
Wed Sep 23 07:13:38 UTC 2015
On 22.9.2015 10:42, Oleg Fayans wrote:
> +++ b/ipatests/test_integration/tasks.py
> @@ -58,6 +58,14 @@ def check_arguments_are(slice, instanceof):
> return wrapped
> return wrapper
>
> +def prepare_reverse_zone(host, ip):
> + nums = ip.split('.')[:-1]
> + zone = ".".join(reversed(nums)) + ".in-addr.arpa."
> + host.run_command(["ipa",
> + "dnszone-add",
> + zone,
> + "--name-from-ip=%s" % ip], raiseonerr=False)
> +
NACK:
- this will break IPv6-only hosts
- you should use DNSName class or other functions from python-dns for DNS name
manipulation
I hope this helps.
--
Petr^2 Spacek
More information about the Freeipa-devel
mailing list