]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
9 years agoAdd compatibility with BlockingIOError for Python3 158/head
Nathan Henrie [Sat, 14 May 2016 21:10:52 +0000 (15:10 -0600)] 
Add compatibility with BlockingIOError for Python3

Fixes rthalley/dnspython#156

At least in Python3.5, BlockingIOError is not subscriptable. Its
`.errno` attribute seems to be able to provide the necessary
information.

9 years agoUpdate with recent changes
Bob Halley [Fri, 13 May 2016 13:44:37 +0000 (06:44 -0700)] 
Update with recent changes

9 years agodns.message.make_query() now interprets any setting that implies
Bob Halley [Fri, 13 May 2016 13:43:36 +0000 (06:43 -0700)] 
dns.message.make_query() now interprets any setting that implies
EDNS as a request to turn on EDNS, if use_edns has not been set
explicitly.

9 years agoTry again to fix TSIG hashes
Bob Halley [Thu, 12 May 2016 21:19:35 +0000 (14:19 -0700)] 
Try again to fix TSIG hashes

9 years agoFix TSIG algorithm to hash mapping
Bob Halley [Thu, 12 May 2016 21:15:34 +0000 (14:15 -0700)] 
Fix TSIG algorithm to hash mapping

9 years agoDo not reference docstrings in exception formatting as they may be stripped.
Bob Halley [Thu, 12 May 2016 13:20:01 +0000 (06:20 -0700)] 
Do not reference docstrings in exception formatting as they may be stripped.
[issue #154]

9 years agoAllow an origin of None to be specified when constructing a
Bob Halley [Wed, 11 May 2016 21:54:30 +0000 (14:54 -0700)] 
Allow an origin of None to be specified when constructing a
Zone object.
[issue #153]

9 years agoDoc prep for 1.13 v1.13.0
Bob Halley [Tue, 10 May 2016 17:02:12 +0000 (10:02 -0700)] 
Doc prep for 1.13

9 years agounichr portability support
Bob Halley [Tue, 10 May 2016 16:57:17 +0000 (09:57 -0700)] 
unichr portability support

9 years agoFix problems with
Bob Halley [Sun, 8 May 2016 18:53:19 +0000 (11:53 -0700)] 
Fix problems with

dns.name.from_unicode(u'\u00ff' * 60)
dns.name.from_unicode(u'\\255')

9 years agoAllow zone origin to be specified as a string.
Bob Halley [Sun, 8 May 2016 18:41:21 +0000 (11:41 -0700)] 
Allow zone origin to be specified as a string.

9 years agofix another indexing keys() issue.
Bob Halley [Sun, 8 May 2016 17:43:31 +0000 (10:43 -0700)] 
fix another indexing keys() issue.

9 years agoMerge pull request #151 from luisgf/master
Bob Halley [Fri, 6 May 2016 15:26:06 +0000 (08:26 -0700)] 
Merge pull request #151 from luisgf/master

Dictionary keys doesn't support slicing.

9 years agoDictionary keys doesn't support slicing. That's throw an error in the program 151/head
Luis González Fernández [Thu, 5 May 2016 19:02:52 +0000 (21:02 +0200)] 
Dictionary keys doesn't support slicing. That's throw an error in the program
if the 'keyname' parameter is not passed.

Doing a list(dict())[0] solve this problem.

9 years agostart 1.13 release prep
Bob Halley [Tue, 3 May 2016 23:16:33 +0000 (16:16 -0700)] 
start 1.13 release prep

9 years agoMerge pull request #148 from baloo/python3-python2
Bob Halley [Tue, 3 May 2016 23:10:47 +0000 (16:10 -0700)] 
Merge pull request #148 from baloo/python3-python2

make dnspython codebase python2/python3 compatible

9 years agotest: I believe this ip to be legitimate 148/head
Arthur Gautier [Thu, 21 Apr 2016 00:40:59 +0000 (00:40 +0000)] 
test: I believe this ip to be legitimate

Signed-off-by: Arthur Gautier <baloo@gandi.net>
9 years agotest: incorrect test relying on type comparison
Arthur Gautier [Wed, 30 Mar 2016 23:09:45 +0000 (23:09 +0000)] 
test: incorrect test relying on type comparison

This test relies on python2 type comparison mechanism.

A simplier test case is:
``` python
In [1]: class X(object):
    def __gt__(self, other):
        return NotImplemented
   ...:

In [2]: a=X()

In [3]: a>1
Out[3]: True

In [4]: a<1
Out[4]: False
```

Works on python2, not on python3.
Therefore, I'm dropping the testcase

See http://eli.thegreenplace.net/2016/comparing-types-in-python-3/ for
more information about that

Signed-off-by: Arthur Gautier <baloo@gandi.net>
9 years agosetup.py: version classifiers
Arthur Gautier [Thu, 21 Apr 2016 15:19:01 +0000 (15:19 +0000)] 
setup.py: version classifiers

Signed-off-by: Arthur Gautier <baloo@gandi.net>
9 years agopython3 support
Arthur Gautier [Tue, 29 Mar 2016 17:51:13 +0000 (17:51 +0000)] 
python3 support

Signed-off-by: Arthur Gautier <baloo@gandi.net>
9 years agoAdds tox and coverage.py
Arthur Gautier [Wed, 30 Mar 2016 20:52:21 +0000 (20:52 +0000)] 
Adds tox and coverage.py

Signed-off-by: Arthur Gautier <baloo@gandi.net>
9 years agosetup.py: use setuptools instead of distutils
Arthur Gautier [Tue, 29 Mar 2016 18:03:43 +0000 (18:03 +0000)] 
setup.py: use setuptools instead of distutils

Signed-off-by: Arthur Gautier <baloo@gandi.net>
9 years agoMerge pull request #146 from CoresecSystems/master
Bob Halley [Sat, 5 Mar 2016 00:33:52 +0000 (16:33 -0800)] 
Merge pull request #146 from CoresecSystems/master

Fix NameDicts (on python2)

9 years agoFix NameDicts so they keep track of the max_length properly and handle things like... 146/head
Francisco Izquierdo [Fri, 4 Mar 2016 20:41:44 +0000 (21:41 +0100)] 
Fix NameDicts so they keep track of the max_length properly and handle things like update properly

9 years agofurther md-ify
Bob Halley [Sun, 21 Feb 2016 23:38:08 +0000 (15:38 -0800)] 
further md-ify

9 years agoImport dns.tsig
Bob Halley [Sun, 21 Feb 2016 23:30:54 +0000 (15:30 -0800)] 
Import dns.tsig

9 years agoMerge pull request #141 from tbabej/master
Bob Halley [Sun, 21 Feb 2016 23:27:52 +0000 (15:27 -0800)] 
Merge pull request #141 from tbabej/master

resolver: Reject lines with less than two tokens

9 years agoMerge pull request #138 from crhan/feature/add_build_status
Bob Halley [Sun, 21 Feb 2016 23:26:46 +0000 (15:26 -0800)] 
Merge pull request #138 from crhan/feature/add_build_status

add build status in README for master branch

9 years agoMerge pull request #142 from bastiak/master
Bob Halley [Sun, 21 Feb 2016 23:24:56 +0000 (15:24 -0800)] 
Merge pull request #142 from bastiak/master

Fix typo in resolver.py

9 years agoSet response_time to zero when exceptions occur early.
Bob Halley [Sun, 21 Feb 2016 23:22:21 +0000 (15:22 -0800)] 
Set response_time to zero when exceptions occur early.

9 years agoFix typo in resolver.py 142/head
Martin Basti [Fri, 29 Jan 2016 17:23:22 +0000 (18:23 +0100)] 
Fix typo in resolver.py

9 years agoresolver: Reject lines with less than two tokens 141/head
Tomas Babej [Thu, 28 Jan 2016 14:05:01 +0000 (15:05 +0100)] 
resolver: Reject lines with less than two tokens

9 years agofix it 138/head
ruohan.chen [Sun, 10 Jan 2016 01:59:57 +0000 (09:59 +0800)] 
fix it

9 years agochange to tweak travis
Bob Halley [Sat, 9 Jan 2016 00:16:49 +0000 (16:16 -0800)] 
change to tweak travis

9 years agoonly python 2.7
Bob Halley [Sat, 9 Jan 2016 00:13:11 +0000 (16:13 -0800)] 
only python 2.7

9 years agoMerge pull request #136 from crhan/feature/travis-ci
Bob Halley [Sat, 9 Jan 2016 00:10:30 +0000 (16:10 -0800)] 
Merge pull request #136 from crhan/feature/travis-ci

add trvis-ci support

9 years agoexit with non-zero status on failure
Bob Halley [Sat, 9 Jan 2016 00:08:31 +0000 (16:08 -0800)] 
exit with non-zero status on failure

9 years agoadd trvis-ci 136/head
ruohan.chen [Thu, 7 Jan 2016 03:26:42 +0000 (11:26 +0800)] 
add trvis-ci

10 years agoMerge pull request #131 from crhan/unicode_bugfix
Bob Halley [Mon, 14 Dec 2015 18:01:10 +0000 (10:01 -0800)] 
Merge pull request #131 from crhan/unicode_bugfix

Unicode support bugfix

10 years agoUnicode support bugfix 131/head
ruohan.chen [Sat, 12 Dec 2015 08:59:05 +0000 (16:59 +0800)] 
Unicode support bugfix

10 years agoMerge pull request #130 from pspacek/eui
Bob Halley [Thu, 3 Dec 2015 15:52:20 +0000 (07:52 -0800)] 
Merge pull request #130 from pspacek/eui

Add support for EUI48 and EUI64 RR types

10 years agoAdd support for EUI48 and EUI64 RR types 130/head
Petr Spacek [Thu, 3 Dec 2015 12:07:41 +0000 (13:07 +0100)] 
Add support for EUI48 and EUI64 RR types

10 years agoMerge pull request #128 from fcelda/master
Bob Halley [Mon, 2 Nov 2015 14:03:30 +0000 (06:03 -0800)] 
Merge pull request #128 from fcelda/master

CDS/CDNSKEY support (Python 2)

10 years agoAdd support for CDNSKEY record type 128/head
Jan Vcelak [Sat, 31 Oct 2015 11:19:06 +0000 (12:19 +0100)] 
Add support for CDNSKEY record type

10 years agoAdd support for CDS record type
Jan Vcelak [Sat, 31 Oct 2015 05:42:07 +0000 (06:42 +0100)] 
Add support for CDS record type

10 years agoMerge pull request #119 from TJRoger/master
Bob Halley [Mon, 7 Sep 2015 12:57:41 +0000 (05:57 -0700)] 
Merge pull request #119 from TJRoger/master

Add installation guide

10 years agoUpdate README.md 119/head
Roger [Sun, 6 Sep 2015 15:36:36 +0000 (23:36 +0800)] 
Update README.md

10 years agoRename README to README.md
Roger [Sun, 6 Sep 2015 15:35:03 +0000 (23:35 +0800)] 
Rename README to README.md

10 years agoUpdate README
Roger [Sun, 6 Sep 2015 15:34:24 +0000 (23:34 +0800)] 
Update README

10 years agoMerge pull request #113 from akettmann/master
Bob Halley [Tue, 14 Jul 2015 12:40:54 +0000 (05:40 -0700)] 
Merge pull request #113 from akettmann/master

Correct some typos of "of of"

10 years agoMerge pull request #111 from preo/dns-port
Bob Halley [Tue, 14 Jul 2015 12:36:24 +0000 (05:36 -0700)] 
Merge pull request #111 from preo/dns-port

Support per-nameserver port setting to dns.resolver.Resolver.

10 years agoMerge pull request #112 from preo/safe-fqdn
Bob Halley [Tue, 14 Jul 2015 12:33:01 +0000 (05:33 -0700)] 
Merge pull request #112 from preo/safe-fqdn

Don't throw on unresolved FQDN in overridden getfqdn.

10 years agoSupport per-nameserver port setting. 111/head
Robert Estelle [Thu, 9 Oct 2014 21:51:21 +0000 (17:51 -0400)] 
Support per-nameserver port setting.

This change is backwards-compatible by maintaining a nameserver_port
mapping dict.

10 years agoRevert tuple-based per-nameserver port setting.
Robert Estelle [Tue, 14 Jul 2015 01:15:07 +0000 (21:15 -0400)] 
Revert tuple-based per-nameserver port setting.

This reverts commit 55d1abc74c6360d4ae96a8b59e999ba5dc5997ad.

10 years agoCorrect some typos of "of of" 113/head
akettmann [Tue, 23 Jun 2015 17:41:06 +0000 (12:41 -0500)] 
Correct some typos of "of of"

10 years agoDon't throw on unresolved-fqdn for overridden getfqdn. 112/head
Robert Estelle [Sat, 11 Oct 2014 00:50:24 +0000 (20:50 -0400)] 
Don't throw on unresolved-fqdn for overridden getfqdn.

10 years agoSupport per-nameserver port setting.
Robert Estelle [Thu, 9 Oct 2014 21:51:21 +0000 (17:51 -0400)] 
Support per-nameserver port setting.

10 years agoFix CAA from_wire()
Bob Halley [Sat, 13 Jun 2015 12:26:21 +0000 (05:26 -0700)] 
Fix CAA from_wire()

10 years agoMerge pull request #92 from pspacek/parametrized_exceptions
Bob Halley [Tue, 14 Apr 2015 15:21:29 +0000 (08:21 -0700)] 
Merge pull request #92 from pspacek/parametrized_exceptions

Parametrized exceptions

10 years agoAdd information about protocol, request, and response to NoNameservers exception. 92/head
Petr Spacek [Fri, 27 Mar 2015 13:52:25 +0000 (14:52 +0100)] 
Add information about protocol, request, and response to NoNameservers exception.

Information about UDP/TCP protocol usage is returned from str(NoNameservers) but
request and response variables are intended for application debug logs
and are not returned from str().

str() for parametrized version of the exception now returns string like:
All nameservers failed to answer the query localhost. IN URI: Server 192.0.2.1 TCP port 53 anwered BADVERS; Server 192.0.2.2 UDP port 53 anwered BADVERS

10 years agoConvert NoNameservers exception to the new DNSException style.
Petr Spacek [Wed, 25 Mar 2015 08:34:06 +0000 (09:34 +0100)] 
Convert NoNameservers exception to the new DNSException style.

str() for parametrized version now returns string like:
All nameservers failed to answer the query localhost. IN URI: Server 192.0.2.1 anwered BADVERS; Server 192.0.2.55 anwered BADVERS

10 years agoAdd response to NoAnswer exception.
Petr Spacek [Fri, 27 Mar 2015 14:51:24 +0000 (15:51 +0100)] 
Add response to NoAnswer exception.

Only question section is returned from str(NoAnswer).
Whole response variable is intended for application debug logs
and is not returned from str().

10 years agoConvert NoAnswer exception to the new DNSException style.
Petr Spacek [Wed, 25 Mar 2015 08:33:14 +0000 (09:33 +0100)] 
Convert NoAnswer exception to the new DNSException style.

str() for paramerized exceptions returns string like:
The DNS response does not contain an answer to the question: localhost. IN URI

10 years agoReturn list of non-existent names as part of str(NXDOMAIN).
Petr Spacek [Thu, 19 Mar 2015 17:03:19 +0000 (18:03 +0100)] 
Return list of non-existent names as part of str(NXDOMAIN).

10 years agoReturn timeout duration as part of str(Timeout).
Petr Spacek [Thu, 19 Mar 2015 17:02:08 +0000 (18:02 +0100)] 
Return timeout duration as part of str(Timeout).

10 years agoTest new DNSException behavior.
Petr Spacek [Fri, 20 Mar 2015 12:39:28 +0000 (13:39 +0100)] 
Test new DNSException behavior.

10 years agoSeparate class docstring and default str() messages in DNSException.
Petr Spacek [Wed, 25 Mar 2015 08:22:35 +0000 (09:22 +0100)] 
Separate class docstring and default str() messages in DNSException.

str() for non-parametrized exceptions still defaults to class docstring
but now it is possible to simply override the message by defining
class.msg variable.

10 years agoAdd list pretty-printing for parametrized exceptions.
Petr Spacek [Fri, 20 Mar 2015 14:55:03 +0000 (15:55 +0100)] 
Add list pretty-printing for parametrized exceptions.

All list entries are converted to strings before the list is printed.
I.e. one-item list is printed as 'vm-123.idm.lab.eng.brq.redhat.com. IN NS'
instead [<DNS vm-123.idm.lab.eng.brq.redhat.com. IN NS RRset>].

10 years agoAdd support for parametrizable __str__ in DNSException.
Petr Spacek [Thu, 19 Mar 2015 16:55:30 +0000 (17:55 +0100)] 
Add support for parametrizable __str__ in DNSException.

This change makes __init__ and __str__ parametrization simpler
and keeps backward compatiblity with old code which does not use keyword
arguments in raise().

Parametrized __str__ can be implemented simply by defining "fmt" and
"supp_kwargs" class variables in particular exception class.

Doc string is used in cases where specific message parameters were not provided
during instantiation/raise.

10 years agoAdd URI RR to test data.
Bob Halley [Sat, 21 Mar 2015 13:25:33 +0000 (06:25 -0700)] 
Add URI RR to test data.

10 years agoMerge pull request #91 from pspacek/uri
Bob Halley [Sat, 21 Mar 2015 13:18:35 +0000 (06:18 -0700)] 
Merge pull request #91 from pspacek/uri

Add URI record type (draft-faltstrom-uri-13)

10 years agoMerge pull request #83 from bastiak/name_exceptions
Bob Halley [Sat, 21 Mar 2015 13:17:29 +0000 (06:17 -0700)] 
Merge pull request #83 from bastiak/name_exceptions

Fix name.from_unicode to raise prorper exception

10 years agoMerge pull request #61 from mattiaslundberg/timing
Bob Halley [Sat, 21 Mar 2015 13:16:44 +0000 (06:16 -0700)] 
Merge pull request #61 from mattiaslundberg/timing

Add response time to the response when querying a server.

10 years agoAdd URI record type (draft-faltstrom-uri-13) 91/head
Petr Spacek [Tue, 17 Mar 2015 15:31:13 +0000 (16:31 +0100)] 
Add URI record type (draft-faltstrom-uri-13)

10 years agoMerge pull request #88 from wdv4758h/master
Bob Halley [Mon, 2 Mar 2015 17:10:49 +0000 (09:10 -0800)] 
Merge pull request #88 from wdv4758h/master

clean Tab

10 years agoclean Tab 88/head
dv [Mon, 2 Mar 2015 12:49:33 +0000 (20:49 +0800)] 
clean Tab

10 years agoImplement the pickle protocol.
Bob Halley [Thu, 26 Feb 2015 14:04:26 +0000 (06:04 -0800)] 
Implement the pickle protocol.

10 years agoMerge pull request #87 from ThomasWaldmann/master
Bob Halley [Thu, 26 Feb 2015 13:53:07 +0000 (05:53 -0800)] 
Merge pull request #87 from ThomasWaldmann/master

fix unicode ipaddr crashes in rdata.from_text and tokenizer.Tokenizer

10 years agoMerge pull request #85 from spacekpe/readable_exceptions
Bob Halley [Thu, 26 Feb 2015 13:48:53 +0000 (05:48 -0800)] 
Merge pull request #85 from spacekpe/readable_exceptions

Readable exceptions

10 years agofix unicode ipaddr crashes in rdata.from_text and tokenizer.Tokenizer, fixes #41 87/head
Thomas Waldmann [Tue, 24 Feb 2015 18:49:23 +0000 (19:49 +0100)] 
fix unicode ipaddr crashes in rdata.from_text and tokenizer.Tokenizer, fixes #41

also added unit tests for both issues.

10 years agoAdd tests for str() handling in DNSException. 85/head
Petr Spacek [Mon, 19 Jan 2015 14:16:24 +0000 (15:16 +0100)] 
Add tests for str() handling in DNSException.

10 years agoRemove redundant 'pass' from class definitions.
Petr Spacek [Fri, 16 Jan 2015 12:10:46 +0000 (13:10 +0100)] 
Remove redundant 'pass' from class definitions.

10 years agoAdd missing docstring for BadTTL exception.
Petr Spacek [Fri, 16 Jan 2015 12:10:04 +0000 (13:10 +0100)] 
Add missing docstring for BadTTL exception.

10 years agoExtend NoNameservers exception with list of servers and respective errors.
Petr Spacek [Thu, 15 Jan 2015 16:46:27 +0000 (17:46 +0100)] 
Extend NoNameservers exception with list of servers and respective errors.

String represetation of the NoNameservers exception now looks like:
"No non-broken nameservers are available to answer the query. Server 10.16.78.1 REFUSED; Server 10.16.78.2 SERVFAIL"

10 years agoExtend NoAnswer exception with optional question.
Petr Spacek [Thu, 15 Jan 2015 16:44:49 +0000 (17:44 +0100)] 
Extend NoAnswer exception with optional question.

The actual question will be printed as part of string representation of
NoAnswer exception instead of terse
"The response did not contain an answer to the question."

10 years agoAmend doc strings for all DNSExceptions to make them suitable for direct printing.
Petr Spacek [Thu, 15 Jan 2015 16:27:27 +0000 (17:27 +0100)] 
Amend doc strings for all DNSExceptions to make them suitable for direct printing.

10 years agoSupport string representation for all DNSExceptions.
Petr Spacek [Thu, 15 Jan 2015 16:25:10 +0000 (17:25 +0100)] 
Support string representation for all DNSExceptions.

Doc string is used in cases where more specific message was not provided
during instantiation/raise.

11 years agoFix name.from_unicode to raise prorper exception 83/head
Martin Basti [Wed, 19 Nov 2014 13:43:06 +0000 (14:43 +0100)] 
Fix name.from_unicode to raise prorper exception

Without this fix, UnicodeError exception was raised instead of
LabelTooLong

11 years agoAll rdata comparsion now uses the digestable form.
Bob Halley [Thu, 4 Sep 2014 22:21:32 +0000 (15:21 -0700)] 
All rdata comparsion now uses the digestable form.

11 years agoAdd CAA.
Bob Halley [Thu, 4 Sep 2014 21:50:57 +0000 (14:50 -0700)] 
Add CAA.

11 years agoPrep 1.12.0 v1.12.0
Bob Halley [Mon, 1 Sep 2014 13:03:01 +0000 (06:03 -0700)] 
Prep 1.12.0

11 years agoFix ChangeLog formatting.
Bob Halley [Mon, 1 Sep 2014 12:41:13 +0000 (05:41 -0700)] 
Fix ChangeLog formatting.

11 years agoCope with 64-bit Python on Windows passing the wrong value for the unbounded slice...
Bob Halley [Thu, 24 Jul 2014 15:11:36 +0000 (08:11 -0700)] 
Cope with 64-bit Python on Windows passing the wrong value for the unbounded slice constant.

11 years agoMerge pull request #76 from bastiak/master
Bob Halley [Wed, 16 Jul 2014 13:18:30 +0000 (06:18 -0700)] 
Merge pull request #76 from bastiak/master

NSEC3PARAM should allow only 4 parts of data

11 years agoNSEC3PARAM should allow only 4 parts of data 76/head
Martin Basti [Wed, 16 Jul 2014 12:15:29 +0000 (14:15 +0200)] 
NSEC3PARAM should allow only 4 parts of data

11 years agoAdd ChangeLog entry for resolver.rotate
Bob Halley [Sat, 21 Jun 2014 16:13:57 +0000 (09:13 -0700)] 
Add ChangeLog entry for resolver.rotate
Tweak options processing for greater flexibility

11 years agoMerge pull request #58 from underrun/options_rotate
Bob Halley [Sat, 21 Jun 2014 16:06:16 +0000 (09:06 -0700)] 
Merge pull request #58 from underrun/options_rotate

add options rotate handling

11 years agoAdd dns.zone.to_text() convenience method.
Bob Halley [Sat, 21 Jun 2014 15:55:09 +0000 (08:55 -0700)] 
Add dns.zone.to_text() convenience method.

Thanks to Brandon Whaley <redkrieg@gmail.com> for the patch.

11 years agoadd thanks
Bob Halley [Sat, 21 Jun 2014 14:46:47 +0000 (07:46 -0700)] 
add thanks

11 years agoFix exception when reading from a masterfile.
Bob Halley [Sat, 21 Jun 2014 14:45:14 +0000 (07:45 -0700)] 
Fix exception when reading from a masterfile.

When reading from a masterfile, if the first content line started
with leading whitespace, we raised an ugly exception instead of
doing the right thing, namely using the zone origin as the name.
[#73]