[Freeipa-devel] [PATCH] 260 Replace DNS client based on acutil with python-dns

Martin Kosek mkosek at redhat.com
Fri May 11 16:52:10 UTC 2012


python-dns is very feature-rich and it can help us a lot with our DNS
related code. This patch does the first step, i.e. replaces acutil use
with python-dns, which is more convenient to use as you will see in the
patch. More integration will follow in the future.

I send this patch rather early, so that I can get responses to this
patch early and also so that we are able to catch issues in a safe
distance from the next release.

---
IPA client and server tool set used authconfig acutil module to
for client DNS operations. This is not optimal DNS interface for
several reasons:
- does not provide native Python object oriented interface
  but but rather C-like interface based on functions and
  structures which is not easy to use and extend
- acutil is not meant to be used by third parties besides
  authconfig and thus can break without notice

Replace the acutil with python-dns package which has a feature rich
interface for dealing with all different aspects of DNS including
DNSSEC. The main target of this patch is to replace all uses of
acutil DNS library with a use python-dns. In most cases, even
though the larger parts of the code are changed, the actual
functionality is changed only in the following cases:
- redundant DNS checks were removed from verify_fqdn function
  in installutils to make the whole DNS check simpler and
  less error-prone. Logging was improves for the remaining
  checks
- improved logging for ipa-client-install DNS discovery

https://fedorahosted.org/freeipa/ticket/2730

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mkosek-260-replace-dns-client-based-on-acutil-with-python-dns.patch
Type: text/x-patch
Size: 40601 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120511/b931151e/attachment.bin>


More information about the Freeipa-devel mailing list