summaryrefslogtreecommitdiff
path: root/net/py-dns
diff options
context:
space:
mode:
authorgson <gson@pkgsrc.org>2007-03-09 09:41:36 +0000
committergson <gson@pkgsrc.org>2007-03-09 09:41:36 +0000
commit0300972fd895e29423ada65946c0d5ae355d1fb9 (patch)
treee5e403db997a962cd7addbff160b932b7fafe13a /net/py-dns
parent2cca9b926fff29a7da51b6b7d68184dd8c2225ca (diff)
downloadpkgsrc-0300972fd895e29423ada65946c0d5ae355d1fb9.tar.gz
Update py-dns to 1.5.0.
Summary of changes since 1.3.3: * dns/rdtypes/IN/DHCID.py: Added support for the DHCID RR type. * dns/query.py (udp): Messages from unexpected sources can now be ignored by setting ignore_unexpected to True. * dns/query.py (udp): When raising UnexpectedSource, add more detail about what went wrong to the exception. * dns/message.py (Message.use_edns): add reasonable defaults for the ednsflags, payload, and request_payload parameters. * dns/message.py (Message.want_dnssec): add a convenience method for enabling/disabling the "DNSSEC desired" flag in requests. * dns/message.py (make_query): add "use_edns" and "want_dnssec" parameters. * dns/resolver.py (Resolver.read_resolv_conf): If /etc/resolv.conf doesn't exist, just use the default resolver configuration (i.e. the same thing we would have used if resolv.conf had existed and been empty). * dns/resolver.py (Resolver._config_win32_fromkey): fix cut-and-paste error where we passed the wrong variable to self._config_win32_search(). Thanks to David Arnold for finding the bug and submitting a patch. * dns/resolver.py (Answer): Add more support for the sequence protocol, forwarding requests to the answer object's rrset. E.g. "for a in answer" is equivalent to "for a in answer.rrset", "answer[i]" is equivalent to "answer.rrset[i]", and "answer[i:j]" is equivalent to "answer.rrset[i:j]". * dns/query.py (xfr): Add IXFR support. * dns/rdtypes/IN/IPSECKEY.py: Added support for the IPSECKEY RR type. * dns/rdtypes/ANY/SPF.py: Added support for the SPF RR type. * (Version 1.4.0 released) * dns/rrset.py (RRset.to_rdataset): Added a convenience method to convert an rrset into an rdataset. * Added dns.e164.query(). This function can be used to look for NAPTR RRs for a specified number in several domains, e.g.: dns.e164.query('16505551212', ['e164.dnspython.org.', 'e164.arpa.']) * dns/resolver.py (Resolver.query): The resolver deleted from a list while iterating it, which makes the iterator unhappy. * dns/resolver.py (Resolver.query): The resolver needlessly delayed responses for successful queries. * dns/rdata.py: added a validate() method to the rdata class. If you change an rdata by assigning to its fields, it is a good idea to call validate() when you are done making changes. For example, if 'r' is an MX record and then you execute: r.preference = 100000 # invalid, because > 65535 r.validate() The validation will fail and an exception will be raised. * dns/ttl.py: TTLs are now bounds checked to be within the closed interval [0, 2^31 - 1]. * The BIND 8 TTL syntax is now accepted in the SOA refresh, retry, expire, and minimum fields, and in the original_ttl field of SIG and RRSIG records. * dns/resolver.py: The windows registry irritatingly changes the list element delimiter in between ' ' and ',' (and vice-versa) in various versions of windows. We now cope by always looking for either one (' ' first). * dns/e164.py: Added routines to convert between E.164 numbers and their ENUM domain name equivalents. * dns/reversename.py: Added routines to convert between IPv4 and IPv6 addresses and their DNS reverse-map equivalents. * dns/rdtypes/ANY/LOC.py (_tuple_to_float): The sign was lost when converting a tuple into a float, which broke conversions of south latitudes and west longitudes. * dns/zone.py: The 'origin' parameter to from_text() and from_file() is now optional. If not specified, dnspython will use the first $ORIGIN in the text as the zone's origin. * dns/zone.py: Sanity checks of the zone's origin node can now be disabled. * dns/name.py: Preliminary Unicode support has been added for domain names. Running dns.name.from_text() on a Unicode string will now encode each label using the IDN ACE encoding. The to_unicode() method may be used to convert a dns.name.Name with IDN ACE labels back into a Unicode string. This functionality requires Python 2.3 or greater. * (Version 1.3.5 released) * dns/zone.py: Zone.iterate_rdatasets() and Zone.iterate_rdatas() did not have a default rdtype of dns.rdatatype.ANY as their docstrings said they did. They do now. * dns/name.py: Added the parent() method, which returns the parent of a name. * dns/resolver.py: Added zone_for_name() helper, which returns the name of the zone which contains the specified name. * dns/resolver.py: Added get_default_resolver(), which returns the default resolver, initializing it if necessary. * dns/resolver.py (Resolver._compute_timeout): If time goes backwards a little bit, ignore it. * (Version 1.3.4 released) * dns/message.py (make_response): Trying to respond to a response threw a NameError while trying to throw a FormErr since it used the wrong name for the FormErr exception. * dns/query.py (_connect): We needed to ignore EALREADY too. * dns/query.py: Optional "source" and "source_port" parameters have been added to udp(), tcp(), and xfr(). Thanks to Ralf Weber for suggesting the change and providing a patch. * dns/query.py: The requirement that the "where" parameter be an IPv4 or IPv6 address is now documented. * dns/resolver.py: The resolver now does exponential backoff each time it runs through all of the nameservers. * dns/resolver.py: rcodes which indicate a nameserver is likely to be a "permanent failure" for a query cause the nameserver to be removed from the mix for that query.
Diffstat (limited to 'net/py-dns')
-rw-r--r--net/py-dns/Makefile7
-rw-r--r--net/py-dns/PLIST20
-rw-r--r--net/py-dns/distinfo8
3 files changed, 26 insertions, 9 deletions
diff --git a/net/py-dns/Makefile b/net/py-dns/Makefile
index 0e782075804..c0334a2237f 100644
--- a/net/py-dns/Makefile
+++ b/net/py-dns/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2007/02/22 19:26:58 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2007/03/09 09:41:36 gson Exp $
-DISTNAME= dnspython-1.3.3
-PKGNAME= ${PYPKGPREFIX}-dns-1.3.3
-PKGREVISION= 1
+DISTNAME= dnspython-1.5.0
+PKGNAME= ${PYPKGPREFIX}-dns-1.5.0
CATEGORIES= net python
MASTER_SITES= http://www.dnspython.org/kits/${PKGVERSION}/
diff --git a/net/py-dns/PLIST b/net/py-dns/PLIST
index 3016183d0b3..962eb974cfb 100644
--- a/net/py-dns/PLIST
+++ b/net/py-dns/PLIST
@@ -1,10 +1,13 @@
-@comment $NetBSD: PLIST,v 1.4 2005/04/09 16:50:03 gson Exp $
+@comment $NetBSD: PLIST,v 1.5 2007/03/09 09:41:36 gson Exp $
${PYSITELIB}/dns/__init__.py
${PYSITELIB}/dns/__init__.pyc
${PYSITELIB}/dns/__init__.pyo
${PYSITELIB}/dns/dnssec.py
${PYSITELIB}/dns/dnssec.pyc
${PYSITELIB}/dns/dnssec.pyo
+${PYSITELIB}/dns/e164.py
+${PYSITELIB}/dns/e164.pyc
+${PYSITELIB}/dns/e164.pyo
${PYSITELIB}/dns/exception.py
${PYSITELIB}/dns/exception.pyc
${PYSITELIB}/dns/exception.pyo
@@ -116,6 +119,9 @@ ${PYSITELIB}/dns/rdtypes/ANY/SIG.pyo
${PYSITELIB}/dns/rdtypes/ANY/SOA.py
${PYSITELIB}/dns/rdtypes/ANY/SOA.pyc
${PYSITELIB}/dns/rdtypes/ANY/SOA.pyo
+${PYSITELIB}/dns/rdtypes/ANY/SPF.py
+${PYSITELIB}/dns/rdtypes/ANY/SPF.pyc
+${PYSITELIB}/dns/rdtypes/ANY/SPF.pyo
${PYSITELIB}/dns/rdtypes/ANY/SSHFP.py
${PYSITELIB}/dns/rdtypes/ANY/SSHFP.pyc
${PYSITELIB}/dns/rdtypes/ANY/SSHFP.pyo
@@ -137,6 +143,12 @@ ${PYSITELIB}/dns/rdtypes/IN/AAAA.pyo
${PYSITELIB}/dns/rdtypes/IN/APL.py
${PYSITELIB}/dns/rdtypes/IN/APL.pyc
${PYSITELIB}/dns/rdtypes/IN/APL.pyo
+${PYSITELIB}/dns/rdtypes/IN/DHCID.py
+${PYSITELIB}/dns/rdtypes/IN/DHCID.pyc
+${PYSITELIB}/dns/rdtypes/IN/DHCID.pyo
+${PYSITELIB}/dns/rdtypes/IN/IPSECKEY.py
+${PYSITELIB}/dns/rdtypes/IN/IPSECKEY.pyc
+${PYSITELIB}/dns/rdtypes/IN/IPSECKEY.pyo
${PYSITELIB}/dns/rdtypes/IN/KX.py
${PYSITELIB}/dns/rdtypes/IN/KX.pyc
${PYSITELIB}/dns/rdtypes/IN/KX.pyo
@@ -176,12 +188,18 @@ ${PYSITELIB}/dns/rdtypes/nsbase.pyo
${PYSITELIB}/dns/rdtypes/sigbase.py
${PYSITELIB}/dns/rdtypes/sigbase.pyc
${PYSITELIB}/dns/rdtypes/sigbase.pyo
+${PYSITELIB}/dns/rdtypes/txtbase.py
+${PYSITELIB}/dns/rdtypes/txtbase.pyc
+${PYSITELIB}/dns/rdtypes/txtbase.pyo
${PYSITELIB}/dns/renderer.py
${PYSITELIB}/dns/renderer.pyc
${PYSITELIB}/dns/renderer.pyo
${PYSITELIB}/dns/resolver.py
${PYSITELIB}/dns/resolver.pyc
${PYSITELIB}/dns/resolver.pyo
+${PYSITELIB}/dns/reversename.py
+${PYSITELIB}/dns/reversename.pyc
+${PYSITELIB}/dns/reversename.pyo
${PYSITELIB}/dns/rrset.py
${PYSITELIB}/dns/rrset.pyc
${PYSITELIB}/dns/rrset.pyo
diff --git a/net/py-dns/distinfo b/net/py-dns/distinfo
index 62fd4b84680..8d9774a649b 100644
--- a/net/py-dns/distinfo
+++ b/net/py-dns/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.6 2005/04/09 16:50:03 gson Exp $
+$NetBSD: distinfo,v 1.7 2007/03/09 09:41:36 gson Exp $
-SHA1 (dnspython-1.3.3.tar.gz) = 0e6fe002c3bc987bf03c91912c4186307dccd1fd
-RMD160 (dnspython-1.3.3.tar.gz) = f2f7ec3435283316c00784ae3a2d019b4586a494
-Size (dnspython-1.3.3.tar.gz) = 86619 bytes
+SHA1 (dnspython-1.5.0.tar.gz) = 65bec9f891a22bfe2885ebcaa0efc735b5f5194b
+RMD160 (dnspython-1.5.0.tar.gz) = 4a0c9d3b082879528c7468dfb38c20009890fd87
+Size (dnspython-1.5.0.tar.gz) = 99179 bytes