]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
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.

8 years agoFix incorrect example using non-specific Resolver 286/head
Arcadiy Ivanov [Wed, 15 Nov 2017 01:33:44 +0000 (20:33 -0500)] 
Fix incorrect example using non-specific Resolver

fixes #285

8 years agoMerge pull request #272 from huangsam/patch-1
Bob Halley [Wed, 30 Aug 2017 16:42:25 +0000 (09:42 -0700)] 
Merge pull request #272 from huangsam/patch-1

Update README.md

8 years agoMerge pull request #265 from MartinBasti/py3-fix-hash
Bob Halley [Wed, 30 Aug 2017 16:41:28 +0000 (09:41 -0700)] 
Merge pull request #265 from MartinBasti/py3-fix-hash

Py3+pylint fixes

8 years agoMerge pull request #264 from MartinBasti/py36-pylint
Bob Halley [Wed, 30 Aug 2017 16:38:54 +0000 (09:38 -0700)] 
Merge pull request #264 from MartinBasti/py36-pylint

Travis: enable pylint for py 3.6

8 years agofix error when parsing nsec3 bitmap from text 263/head
Filip Široký [Thu, 13 Jul 2017 15:01:19 +0000 (17:01 +0200)] 
fix error when parsing nsec3 bitmap from text

Exception is raised when parsing nsec3 bitmap into multiple windows
Add test to prove the change fixes the issue

8 years agoUpdate README.md 272/head
Samuel Huang [Sun, 13 Aug 2017 05:45:41 +0000 (22:45 -0700)] 
Update README.md

* Formatted the project title
* Fixed grammar usage
* Ensure that bullet points use * character

8 years agoUnify PY2/3 detection 265/head
Martin [Fri, 14 Jul 2017 23:36:07 +0000 (01:36 +0200)] 
Unify PY2/3 detection

dns._compat module contains constants PY2 and PY3 which should be used
for detection of python version, to have only one method and avoid
duplications

8 years agoFix invalid escape warning 266/head
Noa Resare [Mon, 17 Jul 2017 11:34:23 +0000 (12:34 +0100)] 
Fix invalid escape warning

a literal string '\#' in python 3.6 causes a DeprecationWarning "invalid escape sequence" as there is no defined backslash escape that looks like that. This change changes the string to a raw string, which makes the intent clear. The text format for unknown RR types is defined in RFC3597 Section 5, and should indeed be the two ascii characters backslash (0x5c) followed by pound sign (0x23).

8 years agopylint: fix invalid-str-codecs
Martin [Fri, 14 Jul 2017 20:55:25 +0000 (22:55 +0200)] 
pylint: fix invalid-str-codecs

8 years agopylint disable: keep disabled block as small as possible
Martin [Fri, 14 Jul 2017 18:40:01 +0000 (20:40 +0200)] 
pylint disable: keep disabled block as small as possible

8 years agopy3: maketrans: use rather if statement
Martin [Fri, 14 Jul 2017 18:36:54 +0000 (20:36 +0200)] 
py3: maketrans: use rather if statement

If statement is faster and it makes clear intention that difference is
due PY2 and PY3

8 years agoPylint: reduce range of pylint disable statement
Martin [Fri, 14 Jul 2017 18:17:23 +0000 (20:17 +0200)] 
Pylint: reduce range of pylint disable statement

If pylint disable statement is used on separate line, it disables the
check to the end of module. In that case real errors may be unnoticed.

Pylint disable statement can be used per block and per line

8 years agoTravis: enable pylint for py 3.6 264/head
Martin Basti [Fri, 14 Jul 2017 07:28:48 +0000 (09:28 +0200)] 
Travis: enable pylint for py 3.6

8 years agolifetime (timeout) support for dns.resolver.query 258/head
Shatil Rafiullah [Sun, 4 Jun 2017 19:59:12 +0000 (12:59 -0700)] 
lifetime (timeout) support for dns.resolver.query

Introduces `lifetime` param to `dns.resolver.query`, allowing user to
specify a timeout for querying DNS resolvers instead of being stuck on
the hardcoded default.

This doesn't modify the `Resolver` _instance_ itself, so subsequent
calls to it, without specifying `lifetime` as a param, will honor the
default value configured in `reset` (see `self.lifetime =`).

8 years agoImprove TTL detection when reading master zone files. 255/head
Tom Lanyon [Tue, 30 May 2017 07:19:20 +0000 (17:19 +1000)] 
Improve TTL detection when reading master zone files.

This introduces the same behaviour that BIND has when it encounters implicit TTL
values, namely:
  * The $TTL directive is preferred to set the default TTL [RFC2308].
  * If no $TTL directive is seen prior to the SOA RR, the default TTL is set
    to the minimum TTL field of the SOA RR [RFC1033, RFC1035, RFC1912].
  * If neither $TTL nor an SOA are present, use the last seen explicit TTL on an
    RR or raise a SyntaxError if no explicit TTLs have been seen.

Previously, when neither $TTL nor SOA were present, the TTL for an RR without
an explicit TTL would be set to 0 which is known to be a somewhat dangerous
value and shouldn't be encouraged as a default.

One test seems to rely on this default TTL=0 behaviour whilst testing something
seemingly unrelated (RR starting with whitespace), so that test has been
updated to match this new expectation.

Fixes #254.

8 years agofix one my lint that my invocation does not hit, but Travis does
Bob Halley [Tue, 30 May 2017 19:31:07 +0000 (12:31 -0700)] 
fix one my lint that my invocation does not hit, but Travis does

8 years agoFix more latest pylint warnings.
Bob Halley [Tue, 30 May 2017 19:22:54 +0000 (12:22 -0700)] 
Fix more latest pylint warnings.

8 years agoupdate pylint settings for latest pylint
Bob Halley [Tue, 30 May 2017 19:01:35 +0000 (12:01 -0700)] 
update pylint settings for latest pylint

8 years agoRaise a validation failure exception instead of asserting when an
Bob Halley [Sun, 19 Feb 2017 21:56:50 +0000 (13:56 -0800)] 
Raise a validation failure exception instead of asserting when an
ECDSA point is invalid.
[Issue #237]

8 years agoHandle _find_candidate_keys None return case.
Bob Halley [Sun, 19 Feb 2017 21:54:22 +0000 (13:54 -0800)] 
Handle _find_candidate_keys None return case.
[Issue #236]

8 years agoAlways look at Windows global Domain parameter.
Bob Halley [Sun, 19 Feb 2017 21:46:47 +0000 (13:46 -0800)] 
Always look at Windows global Domain parameter.
[Issue #240]

8 years agoMake sure all 'strings' passed to the txtbase constructor are encoded if
Bob Halley [Sun, 19 Feb 2017 21:37:14 +0000 (13:37 -0800)] 
Make sure all 'strings' passed to the txtbase constructor are encoded if
needed.  [Issue #239]

8 years agodns.query.xfr() now raises on a non-zero rcode.
Bob Halley [Sun, 29 Jan 2017 14:53:01 +0000 (06:53 -0800)] 
dns.query.xfr() now raises on a non-zero rcode.
[ISSUE #231]

8 years agoAdd helper methods to dns.resolver.NXDOMAIN to make retrieving
Bob Halley [Sat, 28 Jan 2017 14:16:18 +0000 (06:16 -0800)] 
Add helper methods to dns.resolver.NXDOMAIN to make retrieving
qname and response info easier.

8 years agoThe query refactoring accidentally changed which TSIG MAC for the
Bob Halley [Sat, 28 Jan 2017 13:53:46 +0000 (05:53 -0800)] 
The query refactoring accidentally changed which TSIG MAC for the
request was passed to TSIG validation, resulting in failed
validations.
[Issue #228]

8 years agoUse proper binary empty string in a few places.
Bob Halley [Sat, 28 Jan 2017 13:51:45 +0000 (05:51 -0800)] 
Use proper binary empty string in a few places.

8 years agoInitialize received_time [ISSUE #228].
Bob Halley [Sat, 28 Jan 2017 13:29:34 +0000 (05:29 -0800)] 
Initialize received_time [ISSUE #228].

8 years agofix docstring typo
Bob Halley [Mon, 16 Jan 2017 17:24:32 +0000 (09:24 -0800)] 
fix docstring typo

8 years agoresolver doco
Bob Halley [Mon, 16 Jan 2017 17:23:34 +0000 (09:23 -0800)] 
resolver doco

8 years agoimprove cache doco
Bob Halley [Mon, 16 Jan 2017 16:40:20 +0000 (08:40 -0800)] 
improve cache doco

8 years agodoco answer
Bob Halley [Mon, 16 Jan 2017 16:27:37 +0000 (08:27 -0800)] 
doco answer

8 years agoadd resolver function placeholder
Bob Halley [Mon, 16 Jan 2017 16:16:16 +0000 (08:16 -0800)] 
add resolver function placeholder

8 years agomore resolver doco prep
Bob Halley [Mon, 16 Jan 2017 16:13:02 +0000 (08:13 -0800)] 
more resolver doco prep

8 years agostart resolver doco
Bob Halley [Mon, 16 Jan 2017 16:09:30 +0000 (08:09 -0800)] 
start resolver doco

8 years agonode doco update
Bob Halley [Mon, 16 Jan 2017 15:53:55 +0000 (07:53 -0800)] 
node doco update

8 years agofix breakage from receive_udp cleanup
Bob Halley [Mon, 16 Jan 2017 15:18:18 +0000 (07:18 -0800)] 
fix breakage from receive_udp cleanup

8 years agorender and tokenizer epydoc removal
Bob Halley [Mon, 16 Jan 2017 15:13:03 +0000 (07:13 -0800)] 
render and tokenizer epydoc removal

8 years agomore doco updates
Bob Halley [Mon, 16 Jan 2017 14:53:48 +0000 (06:53 -0800)] 
more doco updates

8 years agoquery doco
Bob Halley [Mon, 16 Jan 2017 14:29:01 +0000 (06:29 -0800)] 
query doco

8 years agonamedict doco
Bob Halley [Mon, 16 Jan 2017 00:02:00 +0000 (16:02 -0800)] 
namedict doco

8 years agodnssec doco
Bob Halley [Sun, 15 Jan 2017 23:52:30 +0000 (15:52 -0800)] 
dnssec doco

8 years agoupdate comment
Bob Halley [Sun, 15 Jan 2017 23:32:13 +0000 (15:32 -0800)] 
update comment

8 years agoAdd RFC reference.
Bob Halley [Sun, 15 Jan 2017 16:07:59 +0000 (08:07 -0800)] 
Add RFC reference.

8 years agoadd RFC cite
Bob Halley [Sun, 15 Jan 2017 16:07:47 +0000 (08:07 -0800)] 
add RFC cite

8 years agodoco Update
Bob Halley [Sun, 15 Jan 2017 14:54:01 +0000 (06:54 -0800)] 
doco Update

8 years agodoco version
Bob Halley [Sun, 15 Jan 2017 14:25:33 +0000 (06:25 -0800)] 
doco version

8 years agodoc more misc things
Bob Halley [Sun, 15 Jan 2017 14:18:35 +0000 (06:18 -0800)] 
doc more misc things

8 years agomore doco overhaul
Bob Halley [Sun, 15 Jan 2017 14:10:09 +0000 (06:10 -0800)] 
more doco overhaul

8 years agodoco overhaul of name helpers
Bob Halley [Sun, 15 Jan 2017 13:25:32 +0000 (05:25 -0800)] 
doco overhaul of name helpers

8 years agofix more typos
Bob Halley [Sat, 14 Jan 2017 18:35:10 +0000 (10:35 -0800)] 
fix more typos

8 years agofix typo
Bob Halley [Sat, 14 Jan 2017 18:33:07 +0000 (10:33 -0800)] 
fix typo

8 years agomore message doco
Bob Halley [Sat, 14 Jan 2017 18:30:41 +0000 (10:30 -0800)] 
more message doco

8 years agoMessage doco.
Bob Halley [Sat, 14 Jan 2017 18:22:45 +0000 (10:22 -0800)] 
Message doco.

Add constants to allow a section name to be specified symbolically rather
than by passing the actual section list value.

8 years agoadd doc gen helper
Bob Halley [Sat, 14 Jan 2017 16:21:06 +0000 (08:21 -0800)] 
add doc gen helper

8 years agoregenerate
Bob Halley [Sat, 14 Jan 2017 16:19:46 +0000 (08:19 -0800)] 
regenerate

8 years agocheckpoint message doc
Bob Halley [Sat, 14 Jan 2017 15:26:49 +0000 (07:26 -0800)] 
checkpoint message doc

8 years agoadd message exceptions
Bob Halley [Sat, 14 Jan 2017 14:46:06 +0000 (06:46 -0800)] 
add message exceptions

8 years agoadd rdatatype and rdataclass data doc
Bob Halley [Sat, 14 Jan 2017 14:39:48 +0000 (06:39 -0800)] 
add rdatatype and rdataclass data doc

8 years agocontinue doco overhaul
Bob Halley [Tue, 10 Jan 2017 22:56:57 +0000 (14:56 -0800)] 
continue doco overhaul

8 years agoadd autodoc mode to comments; document QR
Bob Halley [Tue, 10 Jan 2017 13:53:32 +0000 (05:53 -0800)] 
add autodoc mode to comments; document QR

8 years agoMerge pull request #227 from imaia/patch-1
Bob Halley [Tue, 10 Jan 2017 13:51:54 +0000 (05:51 -0800)] 
Merge pull request #227 from imaia/patch-1

Adding comment for each flag

8 years agoAdding comment for each flag 227/head
Italo Maia [Mon, 9 Jan 2017 20:42:52 +0000 (17:42 -0300)] 
Adding comment for each flag

Reference http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-12

8 years agobump copyright
Bob Halley [Mon, 9 Jan 2017 14:12:43 +0000 (06:12 -0800)] 
bump copyright

8 years agoRaise IndexError in Answer get and delete if rrset is None.
Bob Halley [Mon, 9 Jan 2017 14:10:39 +0000 (06:10 -0800)] 
Raise IndexError in Answer get and delete if rrset is None.
Thanks to mschwager for reporting this.
[Issue #226].

8 years agordataset and rrset doco structure
Bob Halley [Thu, 5 Jan 2017 15:04:20 +0000 (07:04 -0800)] 
rdataset and rrset doco structure

8 years agordata doco
Bob Halley [Thu, 5 Jan 2017 14:45:13 +0000 (06:45 -0800)] 
rdata doco

8 years agoput all exceptions in one document
Bob Halley [Thu, 5 Jan 2017 14:44:39 +0000 (06:44 -0800)] 
put all exceptions in one document

8 years agodoco update
Bob Halley [Tue, 3 Jan 2017 23:39:45 +0000 (15:39 -0800)] 
doco update

8 years agomore doco updates
Bob Halley [Tue, 3 Jan 2017 23:29:55 +0000 (15:29 -0800)] 
more doco updates

8 years agodoco overhaul
Bob Halley [Tue, 3 Jan 2017 23:19:15 +0000 (15:19 -0800)] 
doco overhaul

8 years agodoco conversion
Bob Halley [Tue, 3 Jan 2017 23:12:42 +0000 (15:12 -0800)] 
doco conversion

8 years agoException doc
Bob Halley [Mon, 2 Jan 2017 15:47:20 +0000 (07:47 -0800)] 
Exception doc

8 years agoAdd comment about obsolete nature of EntropyPool.
Bob Halley [Mon, 2 Jan 2017 15:36:59 +0000 (07:36 -0800)] 
Add comment about obsolete nature of EntropyPool.

8 years agodoc update
Bob Halley [Mon, 2 Jan 2017 15:30:52 +0000 (07:30 -0800)] 
doc update

8 years agoadjust __init__ now that we include it in class description
Bob Halley [Mon, 2 Jan 2017 15:30:39 +0000 (07:30 -0800)] 
adjust __init__ now that we include it in class description

8 years agoset autoclass_content to both
Bob Halley [Mon, 2 Jan 2017 15:29:58 +0000 (07:29 -0800)] 
set autoclass_content to both

8 years agofix typo
Bob Halley [Mon, 2 Jan 2017 15:00:59 +0000 (07:00 -0800)] 
fix typo

8 years agoThe IPv4 and IPv6 inet_ntoa() functions were returning binary
Bob Halley [Mon, 2 Jan 2017 14:41:05 +0000 (06:41 -0800)] 
The IPv4 and IPv6 inet_ntoa() functions were returning binary
instead of text, a Py2/Py3 merge bug.

8 years agoto_e164() was returning binary instead of text.
Bob Halley [Mon, 2 Jan 2017 14:19:38 +0000 (06:19 -0800)] 
to_e164() was returning binary instead of text.

Doco update for e164