]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
6 years agospecify seconds for lifetime in Resolver.query() 383/head
kimbo [Thu, 25 Jul 2019 00:11:00 +0000 (20:11 -0400)] 
specify seconds for lifetime in Resolver.query()

6 years agoMerge pull request #382 from singingwolfboy/resolver-stub-exceptions
Bob Halley [Fri, 12 Jul 2019 17:17:42 +0000 (10:17 -0700)] 
Merge pull request #382 from singingwolfboy/resolver-stub-exceptions

Add exceptions to resolver.pyi

6 years agoAdd exceptions to resolver.pyi 382/head
David Baumgold [Fri, 12 Jul 2019 14:57:28 +0000 (16:57 +0200)] 
Add exceptions to resolver.pyi

6 years agoThe EDNS0 client-subnet code didn't work correctly for addresses that
Bob Halley [Fri, 3 May 2019 15:17:54 +0000 (08:17 -0700)] 
The EDNS0 client-subnet code didn't work correctly for addresses that
were not a multiple of 8 bits.

Instead of preserving the required number of high-order bits, it
cleared that number of low-order bits.  Thanks to Brian Wellington for
discovering this and providing the correct code.

6 years agoget rid of python 3.4 as mypy does not support typechecking on it any more
Bob Halley [Tue, 9 Apr 2019 00:51:34 +0000 (17:51 -0700)] 
get rid of python 3.4 as mypy does not support typechecking on it any more

6 years agoParse decimal integer time in RRSIG records.
Bob Halley [Tue, 9 Apr 2019 00:41:27 +0000 (17:41 -0700)] 
Parse decimal integer time in RRSIG records.

Patch by Brian Wellington (thanks!)
[Issue #364]

6 years agoDefine __version__ in the __init__ module.
Bob Halley [Tue, 2 Apr 2019 18:43:11 +0000 (11:43 -0700)] 
Define __version__ in the __init__ module.
[Issue #361]

6 years agoMerge pull request #357 from DNS-Leo/master
Bob Halley [Mon, 18 Mar 2019 18:38:41 +0000 (11:38 -0700)] 
Merge pull request #357 from DNS-Leo/master

NINFO record

6 years agoCreate NINFO.py 357/head
DNS-Leo [Mon, 18 Mar 2019 17:43:36 +0000 (18:43 +0100)] 
Create NINFO.py

Added NINFO record - assigned as type 56 by IANA
See:
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4
https://www.iana.org/assignments/dns-parameters/NINFO/ninfo-completed-template
https://tools.ietf.org/html/draft-reid-dnsext-zs-01

6 years agoUpdate rdatatype.py
DNS-Leo [Mon, 18 Mar 2019 17:36:36 +0000 (18:36 +0100)] 
Update rdatatype.py

Added NINFO (identical to TXT), assigned as type 56 by IANA.
See:
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4
https://www.iana.org/assignments/dns-parameters/NINFO/ninfo-completed-template
https://tools.ietf.org/html/draft-reid-dnsext-zs-01

6 years agoHandle the case where the NOTIFY has no answer SOA RR.
Bob Halley [Mon, 18 Mar 2019 15:28:57 +0000 (08:28 -0700)] 
Handle the case where the NOTIFY has no answer SOA RR.

6 years ago$GENERATE was not padding correctly given a pattern like ${0,3} it was
Bob Halley [Thu, 21 Feb 2019 14:33:00 +0000 (06:33 -0800)] 
$GENERATE was not padding correctly given a pattern like ${0,3} it was
using the index field (0) as the padding width, instead of the correct value
3.

6 years agoMerge pull request #353 from sigmunau/master
Bob Halley [Thu, 21 Feb 2019 14:29:44 +0000 (06:29 -0800)] 
Merge pull request #353 from sigmunau/master

Fix exception when parsing certain generate statements

6 years agoFix exception when parsing certain generate statements 353/head
Sigmund Augdal [Thu, 21 Feb 2019 11:39:34 +0000 (12:39 +0100)] 
Fix exception when parsing certain generate statements

6 years agoMerge pull request #346 from tomaskrizek/dnssec-make-ds
Bob Halley [Sat, 12 Jan 2019 17:29:41 +0000 (09:29 -0800)] 
Merge pull request #346 from tomaskrizek/dnssec-make-ds

dnssec: use hashlib in make_ds()

6 years agoThe copyright edit moved the shebang to the wrong spot; fix!
Bob Halley [Tue, 8 Jan 2019 16:18:55 +0000 (08:18 -0800)] 
The copyright edit moved the shebang to the wrong spot; fix!

6 years agoremove the rest of the unicode string prefixes
Bob Halley [Tue, 8 Jan 2019 15:03:46 +0000 (07:03 -0800)] 
remove the rest of the unicode string prefixes

6 years agoWhen dealing with an IDNA 2003 non-punycode label, escapify it before unicode
Bob Halley [Mon, 7 Jan 2019 15:35:39 +0000 (07:35 -0800)] 
When dealing with an IDNA 2003 non-punycode label, escapify it before unicode
conversion.  This ensures that labels with codepoints that need escaping
get it, as opposed to raising an exception because we tried to interpret a
non-UTF-8 sequence as UTF-8.

6 years agoIf there are no non-ASCII codepoints in the input, treat the name as
Bob Halley [Sun, 6 Jan 2019 21:22:25 +0000 (13:22 -0800)] 
If there are no non-ASCII codepoints in the input, treat the name as
an ordinary domain name in from_text and do NOT apply any IDNA.

This makes non-Unicode binary names like
\150\151\152\153\154\155\156\157\158\159. work properly again.
[Issue #270]

6 years agoUnicode label escapify was not escapifying special characters.
Bob Halley [Sun, 6 Jan 2019 01:36:49 +0000 (17:36 -0800)] 
Unicode label escapify was not escapifying special characters.
[Issue #339]

This commit also simplifies code and changes u'string' to 'string'.

6 years agoRender type 0 in text as "TYPE0" not "NONE". [Issue #326]
Bob Halley [Sat, 5 Jan 2019 19:18:40 +0000 (11:18 -0800)] 
Render type 0 in text as "TYPE0" not "NONE".  [Issue #326]

6 years agodns.message.from_wire() now sets message.original_id sensibly.
Bob Halley [Sat, 5 Jan 2019 19:08:23 +0000 (11:08 -0800)] 
dns.message.from_wire() now sets message.original_id sensibly.
[Issue #278]

6 years agoFor _getaddrinfo(), if AI_ADDRCONFIG or AI_V4MAPPED are specified, raise
Bob Halley [Sat, 5 Jan 2019 18:58:15 +0000 (10:58 -0800)] 
For _getaddrinfo(), if AI_ADDRCONFIG or AI_V4MAPPED are specified, raise
socket.gaierror(socket.EAI_SYSTEM) instead of NotImplementedError, as higher
level software will cope better.  [Issue #316]

6 years agoWhen decoding from wire format, if a message has TC set, raise a Truncated
Bob Halley [Sat, 5 Jan 2019 18:38:32 +0000 (10:38 -0800)] 
When decoding from wire format, if a message has TC set, raise a Truncated
exception.  [Issue #297]

6 years agoremove bytearray() wrapping used for python 2 compatibility
Bob Halley [Sat, 5 Jan 2019 18:07:02 +0000 (10:07 -0800)] 
remove bytearray() wrapping used for python 2 compatibility

6 years agoignore mypy cache
Bob Halley [Sat, 5 Jan 2019 18:06:23 +0000 (10:06 -0800)] 
ignore mypy cache

6 years agoUse base64.decodebytes() and base64.encodebytes(). [Issue #338]
Bob Halley [Sat, 5 Jan 2019 15:09:28 +0000 (07:09 -0800)] 
Use base64.decodebytes() and base64.encodebytes().  [Issue #338]

This commit also adds test coverage for tsigkeyring, and fixes to_text()
on python 3, which had never worked properly due to an extra .decode().

6 years agoIf reading /etc/resolv.conf fails, or finds no servers, raise NoResolverConfiguration
Bob Halley [Sat, 5 Jan 2019 14:46:29 +0000 (06:46 -0800)] 
If reading /etc/resolv.conf fails, or finds no servers, raise NoResolverConfiguration
[Issue #332]

6 years agoMerge pull request #348 from tomaskrizek/remove-hash-module
Bob Halley [Wed, 2 Jan 2019 16:30:08 +0000 (08:30 -0800)] 
Merge pull request #348 from tomaskrizek/remove-hash-module

dnssec/hash: remove obsolete module

6 years agodnssec/hash: remove obsolete module 348/head
Tomas Krizek [Wed, 2 Jan 2019 14:34:30 +0000 (15:34 +0100)] 
dnssec/hash: remove obsolete module

6 years agoMerge pull request #347 from tomaskrizek/fix-setup
Tomas Krizek [Wed, 2 Jan 2019 14:34:01 +0000 (15:34 +0100)] 
Merge pull request #347 from tomaskrizek/fix-setup

Fix missing test dependency for python 2.7 / 3.4

6 years agoFix missing test dependency for python 2.7 / 3.4 347/head
Romuald Brunet [Tue, 11 Dec 2018 13:50:18 +0000 (14:50 +0100)] 
Fix missing test dependency for python 2.7 / 3.4

6 years agotest/dnssec: flake8 fixes 346/head
Tomas Krizek [Wed, 2 Jan 2019 14:03:07 +0000 (15:03 +0100)] 
test/dnssec: flake8 fixes

6 years agotests/dnssec: don't require pycrypto for make_ds() tests
Tomas Krizek [Wed, 2 Jan 2019 14:00:21 +0000 (15:00 +0100)] 
tests/dnssec: don't require pycrypto for make_ds() tests

6 years agodnssec: use hashlib in make_ds()
Tomas Krizek [Wed, 2 Jan 2019 13:54:00 +0000 (14:54 +0100)] 
dnssec: use hashlib in make_ds()

Use hashlib to avoid introducing pycryptodome dependency for
make_ds() function to be consistent with previous dnspython versions.

Fixes #343

7 years agomore python 3 only cleanups
Bob Halley [Sun, 9 Dec 2018 23:02:00 +0000 (15:02 -0800)] 
more python 3 only cleanups

7 years agopylint3 -> pylint
Bob Halley [Sun, 9 Dec 2018 20:10:19 +0000 (12:10 -0800)] 
pylint3 -> pylint

7 years agoremove 2.7 from .travis.yml
Bob Halley [Sun, 9 Dec 2018 20:08:07 +0000 (12:08 -0800)] 
remove 2.7 from .travis.yml

7 years agoRemove _compat module.
Bob Halley [Sun, 9 Dec 2018 20:06:24 +0000 (12:06 -0800)] 
Remove _compat module.

7 years agosetup.py now requires python 3.4 or greater.
Bob Halley [Sun, 9 Dec 2018 19:25:39 +0000 (11:25 -0800)] 
setup.py now requires python 3.4 or greater.

7 years agoBump version to 2.0.0; discontinue Python 2.7 testing.
Bob Halley [Sat, 8 Dec 2018 20:09:47 +0000 (12:09 -0800)] 
Bump version to 2.0.0; discontinue Python 2.7 testing.

7 years agodoc->doco to avoid make confusion with doc directory v1.16.0
Bob Halley [Sat, 8 Dec 2018 18:56:36 +0000 (10:56 -0800)] 
doc->doco to avoid make confusion with doc directory

7 years agofurther updates for 1.16.0
Bob Halley [Sat, 8 Dec 2018 15:31:38 +0000 (07:31 -0800)] 
further updates for 1.16.0

7 years agorm ChangeLog
Bob Halley [Thu, 6 Dec 2018 15:52:18 +0000 (07:52 -0800)] 
rm ChangeLog

7 years agoupdate for 1.16.0
Bob Halley [Thu, 6 Dec 2018 15:51:22 +0000 (07:51 -0800)] 
update for 1.16.0

7 years agoupdate README.me to be current re Nominum
Bob Halley [Wed, 5 Dec 2018 13:48:23 +0000 (05:48 -0800)] 
update README.me to be current re Nominum

7 years agofix coding lines broken by copyright update
Bob Halley [Sat, 1 Dec 2018 15:49:30 +0000 (07:49 -0800)] 
fix coding lines broken by copyright update

7 years agodisable spurious pylint errors for python 2.7
Bob Halley [Sat, 1 Dec 2018 15:44:25 +0000 (07:44 -0800)] 
disable spurious pylint errors for python 2.7

7 years agodelint
Bob Halley [Sat, 1 Dec 2018 15:35:23 +0000 (07:35 -0800)] 
delint

7 years agoremove year on LICENSE
Bob Halley [Sat, 1 Dec 2018 15:28:19 +0000 (07:28 -0800)] 
remove year on LICENSE

7 years agoupdate copyright
Bob Halley [Sat, 1 Dec 2018 15:26:45 +0000 (07:26 -0800)] 
update copyright

7 years agoMerge pull request #334 from hugovk/update-versions
Bob Halley [Sat, 1 Dec 2018 14:57:22 +0000 (06:57 -0800)] 
Merge pull request #334 from hugovk/update-versions

Update supported versions

7 years agoMerge pull request #341 from bictorv/chaos-addresses
Bob Halley [Sat, 1 Dec 2018 14:56:51 +0000 (06:56 -0800)] 
Merge pull request #341 from bictorv/chaos-addresses

Support for Chaos A records

7 years agoFIxes pylint complaints. 341/head
Björn Victor [Sun, 18 Nov 2018 15:39:51 +0000 (16:39 +0100)] 
FIxes pylint complaints.

7 years agoMake lint happier
Björn Victor [Mon, 12 Nov 2018 16:45:17 +0000 (17:45 +0100)] 
Make lint happier

7 years agoSupport for Chaos A records
Björn Victor [Mon, 12 Nov 2018 07:58:25 +0000 (08:58 +0100)] 
Support for Chaos A records

Based on MX records. Adds functionality to the tokenizer to read octal 16-bit numbers.

7 years agoUpgrade Python syntax with pyupgrade https://github.com/asottile/pyupgrade 334/head
Hugo [Thu, 6 Sep 2018 11:18:29 +0000 (14:18 +0300)] 
Upgrade Python syntax with pyupgrade https://github.com/asottile/pyupgrade

7 years agoUpdate required versions
Hugo [Thu, 6 Sep 2018 11:14:45 +0000 (14:14 +0300)] 
Update required versions

7 years agoUpdate Trove classifiers
Hugo [Thu, 6 Sep 2018 11:13:43 +0000 (14:13 +0300)] 
Update Trove classifiers

7 years agoAdd python_requires to help pip
Hugo [Thu, 6 Sep 2018 11:13:32 +0000 (14:13 +0300)] 
Add python_requires to help pip

7 years agolock importing to avoid races with multiple threads
Bob Halley [Tue, 28 Aug 2018 16:06:48 +0000 (09:06 -0700)] 
lock importing to avoid races with multiple threads

7 years agoMerge pull request #313 from ysangkok/master
Bob Halley [Tue, 31 Jul 2018 18:22:15 +0000 (11:22 -0700)] 
Merge pull request #313 from ysangkok/master

Add type signatures

7 years agoInitial type signatures 313/head
Janus [Mon, 23 Jul 2018 14:11:00 +0000 (16:11 +0200)] 
Initial type signatures

7 years agoPEP 561 marker file
Janus [Fri, 13 Jul 2018 13:42:02 +0000 (15:42 +0200)] 
PEP 561 marker file

7 years agoMerge pull request #279 from sapcc/renderer-add-running-tsig-support
Bob Halley [Tue, 31 Jul 2018 16:41:37 +0000 (09:41 -0700)] 
Merge pull request #279 from sapcc/renderer-add-running-tsig-support

extend dns.renderer.Renderer to support TSIG on DNS envelope sequences

7 years agoMerge pull request #325 from PhillWide/ignore_trailing
Bob Halley [Tue, 31 Jul 2018 16:33:14 +0000 (09:33 -0700)] 
Merge pull request #325 from PhillWide/ignore_trailing

Add ignore_trailing option for message.from_wire to query udp and tcp

7 years agoMerge pull request #327 from tomaskrizek/cython
Bob Halley [Tue, 31 Jul 2018 16:29:01 +0000 (09:29 -0700)] 
Merge pull request #327 from tomaskrizek/cython

setup.py: support compilation with Cython

7 years agoMerge pull request #319 from tomaskrizek/pycryptodome-migration
Bob Halley [Tue, 31 Jul 2018 16:28:23 +0000 (09:28 -0700)] 
Merge pull request #319 from tomaskrizek/pycryptodome-migration

migration from pycrypto to pycryptodome(x)

7 years agosetup.py: support compilation with Cython 327/head
Tomas Krizek [Mon, 30 Jul 2018 14:25:40 +0000 (16:25 +0200)] 
setup.py: support compilation with Cython

To provide a slight perfomrance boost, the Python code can be
compiled with Cython. Provide --cython-compile to setup.py, or
when usng pip:

pip install dnspython --install-option="--cython-compile"

7 years agoAdd ignore_trailing option for message.from_wire to query udp and tcp 325/head
Filip Široký [Wed, 25 Jul 2018 12:47:56 +0000 (14:47 +0200)] 
Add ignore_trailing option for message.from_wire to query udp and tcp

7 years agodns/hash: keep module for backward compatibility, add deprecation warning 319/head
Tomas Krizek [Wed, 18 Jul 2018 11:17:39 +0000 (13:17 +0200)] 
dns/hash: keep module for backward compatibility, add deprecation warning

7 years agodns/dnssec: remove redundant return
Tomas Krizek [Wed, 18 Jul 2018 12:57:42 +0000 (14:57 +0200)] 
dns/dnssec: remove redundant return

7 years agodns/dnssec: support both pycryptodome and pycryptodomex
Tomas Krizek [Wed, 18 Jul 2018 12:56:31 +0000 (14:56 +0200)] 
dns/dnssec: support both pycryptodome and pycryptodomex

7 years agodns/dnssec: keep algorithm names for backwards compatibility
Tomas Krizek [Wed, 18 Jul 2018 11:23:21 +0000 (13:23 +0200)] 
dns/dnssec: keep algorithm names for backwards compatibility

7 years agodns/tsig: use hashlib to avoid cryptodome dependency for TSIG
Tomas Krizek [Wed, 18 Jul 2018 11:14:17 +0000 (13:14 +0200)] 
dns/tsig: use hashlib to avoid cryptodome dependency for TSIG

7 years agodns/dnssec: add missing rrsigname
Tomas Krizek [Wed, 18 Jul 2018 11:08:17 +0000 (13:08 +0200)] 
dns/dnssec: add missing rrsigname

7 years agoupdate travis to use pycryptodome
Daniel Robbins [Thu, 21 Dec 2017 19:19:07 +0000 (12:19 -0700)] 
update travis to use pycryptodome

7 years agoUpdate DNSSEC code to use pycryptodome instead of pycrypto. These changes
Daniel Robbins [Thu, 21 Dec 2017 16:24:40 +0000 (09:24 -0700)] 
Update DNSSEC code to use pycryptodome instead of pycrypto. These changes
make dnspython *incompatible* with pycrypto -- pycryptodome must be used.
The ecdsa module continues to be used for ECDSA support.

7 years agoMerge pull request #320 from tomaskrizek/fix-ci-issues
Bob Halley [Fri, 20 Jul 2018 14:19:04 +0000 (07:19 -0700)] 
Merge pull request #320 from tomaskrizek/fix-ci-issues

ci: fix issues, remove unsupported Python 2.6/3.3

7 years agoci: add Python 3.7 for testing 320/head
Tomas Krizek [Fri, 20 Jul 2018 12:49:17 +0000 (14:49 +0200)] 
ci: add Python 3.7 for testing

7 years agoRemove support for EOL Python 2.6 and 3.3
Tomas Krizek [Wed, 18 Jul 2018 13:52:25 +0000 (15:52 +0200)] 
Remove support for EOL Python 2.6 and 3.3

7 years agotests/test_rdata: fix pylint (relative-import)
Tomas Krizek [Wed, 18 Jul 2018 13:41:27 +0000 (15:41 +0200)] 
tests/test_rdata: fix pylint (relative-import)

7 years agodns/rdatatype: fix pylint (redefined-outer-name)
Tomas Krizek [Wed, 18 Jul 2018 13:40:23 +0000 (15:40 +0200)] 
dns/rdatatype: fix pylint (redefined-outer-name)

7 years agoexamples/zonediff: fix pylint (singleton-comparison)
Tomas Krizek [Wed, 18 Jul 2018 13:35:51 +0000 (15:35 +0200)] 
examples/zonediff: fix pylint (singleton-comparison)

7 years agoAdd a way to dynamically register an rdata module.
Bob Halley [Tue, 17 Jul 2018 14:02:38 +0000 (07:02 -0700)] 
Add a way to dynamically register an rdata module.

7 years agoMerge pull request #258 from shatil/resolver-query-lifetime-timeout
Bob Halley [Tue, 17 Jul 2018 13:08:24 +0000 (06:08 -0700)] 
Merge pull request #258 from shatil/resolver-query-lifetime-timeout

lifetime (timeout) support for dns.resolver.query

7 years agoMerge pull request #266 from nresare/patch-1
Bob Halley [Tue, 17 Jul 2018 13:03:01 +0000 (06:03 -0700)] 
Merge pull request #266 from nresare/patch-1

Fix invalid escape warning

7 years agoMerge pull request #255 from tomlanyon/master
Bob Halley [Tue, 17 Jul 2018 13:02:31 +0000 (06:02 -0700)] 
Merge pull request #255 from tomlanyon/master

Improve TTL detection when reading master zone files.

7 years agoMerge pull request #300 from jamadden/dont-bare-except
Bob Halley [Tue, 17 Jul 2018 12:51:12 +0000 (05:51 -0700)] 
Merge pull request #300 from jamadden/dont-bare-except

Don't use a bare except: in resolver._getaddrinfo

7 years agoMerge pull request #263 from PhillWide/nsec3_bitmap_from_text_bug
Bob Halley [Sun, 18 Mar 2018 13:14:31 +0000 (06:14 -0700)] 
Merge pull request #263 from PhillWide/nsec3_bitmap_from_text_bug

fix nsec3 bitmap from text bug for multiple windows

7 years agoMerge pull request #301 from cooperlees/master
Bob Halley [Mon, 26 Feb 2018 14:04:41 +0000 (06:04 -0800)] 
Merge pull request #301 from cooperlees/master

Fix ipv6.py invalid escape sequences

7 years agoFix ipv6.py invalid escape sequences 301/head
Cooper Lees [Mon, 26 Feb 2018 01:18:02 +0000 (17:18 -0800)] 
Fix ipv6.py invalid escape sequences

dns/ipv6.py:94: DeprecationWarning: invalid escape sequence \d
- Update to use raw strings/bytes

7 years agothe universal newlines fix was backwards
Bob Halley [Wed, 21 Feb 2018 23:07:40 +0000 (15:07 -0800)] 
the universal newlines fix was backwards

7 years agoThe NXDOMAIN exception should not use its docstring.
Bob Halley [Tue, 20 Feb 2018 20:19:04 +0000 (12:19 -0800)] 
The NXDOMAIN exception should not use its docstring.
[Issue #253]

7 years agoDo not test on 2.6 any more as things have stopped supporting it.
Bob Halley [Tue, 20 Feb 2018 20:15:08 +0000 (12:15 -0800)] 
Do not test on 2.6 any more as things have stopped supporting it.

7 years agoRemove deprecated U option to open on python 3.
Bob Halley [Tue, 20 Feb 2018 20:13:26 +0000 (12:13 -0800)] 
Remove deprecated U option to open on python 3.
[Issue #252]

7 years agodelint
Bob Halley [Tue, 20 Feb 2018 20:08:47 +0000 (12:08 -0800)] 
delint

7 years agoMerge pull request #286 from arcivanov/issue_285
Bob Halley [Tue, 20 Feb 2018 19:54:57 +0000 (11:54 -0800)] 
Merge pull request #286 from arcivanov/issue_285

Fix incorrect example using non-specific Resolver

7 years agoDNSSEC validation did not check names properly.
Bob Halley [Tue, 20 Feb 2018 19:41:30 +0000 (11:41 -0800)] 
DNSSEC validation did not check names properly.
(Found by LGTM scan tool).
[Issue #295]

7 years agoDon't use a bare except: 300/head
Jason Madden [Wed, 31 Jan 2018 23:30:54 +0000 (17:30 -0600)] 
Don't use a bare except:

This catches things like KeyboardInterrupt and SystemExit that shouldn't be caught here.

Under gevent, it breaks Timeout handling.