]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
5 years agoUpdate for OPT/TSIG changes. 525/head
Brian Wellington [Tue, 30 Jun 2020 17:46:24 +0000 (10:46 -0700)] 
Update for OPT/TSIG changes.

5 years agoRemove dns.message.Message multi field.
Brian Wellington [Tue, 30 Jun 2020 17:41:01 +0000 (10:41 -0700)] 
Remove dns.message.Message multi field.

The only user of this is the internal _WireReader class, so just pass it
the flag rather than store it on the message.

5 years agoFix documentation.
Brian Wellington [Tue, 30 Jun 2020 16:55:20 +0000 (09:55 -0700)] 
Fix documentation.

5 years agoTest (and fix) renderer.add_multi_tsig().
Brian Wellington [Tue, 30 Jun 2020 16:34:41 +0000 (09:34 -0700)] 
Test (and fix) renderer.add_multi_tsig().

5 years agoRemove the concept from "first" from TSIG.
Brian Wellington [Tue, 30 Jun 2020 16:27:06 +0000 (09:27 -0700)] 
Remove the concept from "first" from TSIG.

The sign() and validate() routines took a "first" parameter, which
indicated that this message was the first in a multi-message sequence.
This isn't needed, as it's identical to "not (ctx and multi)".

Remove the parameter from both, as well as the now-unneeded field in the
message object and message.from_wire() parameter.

5 years agoRemove spaces from to_text().
Brian Wellington [Tue, 30 Jun 2020 15:36:39 +0000 (08:36 -0700)] 
Remove spaces from to_text().

5 years agoStore a TSIG rrset on the message object.
Brian Wellington [Mon, 29 Jun 2020 21:55:35 +0000 (14:55 -0700)] 
Store a TSIG rrset on the message object.

5 years agoChange dns.tsig.validate() to take a TSIG record.
Brian Wellington [Mon, 29 Jun 2020 20:48:09 +0000 (13:48 -0700)] 
Change dns.tsig.validate() to take a TSIG record.

5 years agoCreate TSIGRecord; use it in _WireReader.
Brian Wellington [Mon, 29 Jun 2020 20:15:57 +0000 (13:15 -0700)] 
Create TSIGRecord; use it in _WireReader.

5 years agofix indentation of test_bogus_family()
Bob Halley [Mon, 29 Jun 2020 14:34:21 +0000 (07:34 -0700)] 
fix indentation of test_bogus_family()

5 years agomore coverage improvements
Bob Halley [Mon, 29 Jun 2020 14:32:32 +0000 (07:32 -0700)] 
more coverage improvements

5 years agoopcode is a function not an attribute
Bob Halley [Mon, 29 Jun 2020 14:07:00 +0000 (07:07 -0700)] 
opcode is a function not an attribute

5 years agoadd basic renderer testing
Bob Halley [Mon, 29 Jun 2020 13:27:17 +0000 (06:27 -0700)] 
add basic renderer testing

5 years agoIn add_edns(), the value of _make_opt() is an RRSet not an rdataset.
Bob Halley [Mon, 29 Jun 2020 13:26:46 +0000 (06:26 -0700)] 
In add_edns(), the value of _make_opt() is an RRSet not an rdataset.

5 years agoincrease namedict coverage
Bob Halley [Mon, 29 Jun 2020 02:19:37 +0000 (19:19 -0700)] 
increase namedict coverage

5 years agoincrease coverage
Bob Halley [Mon, 29 Jun 2020 02:05:28 +0000 (19:05 -0700)] 
increase coverage

5 years agoRemove no longer needed code to activate EDNS if setting an extended
Bob Halley [Mon, 29 Jun 2020 01:53:20 +0000 (18:53 -0700)] 
Remove no longer needed code to activate EDNS if setting an extended
rcode and EDNS has not previously been activated.  The code is no longer
needed as setting ednsflags to a nonzero value will automatically make
an opt RR and enable EDNS.

5 years agocleanup Makefile; add potestlf rule
Bob Halley [Mon, 29 Jun 2020 01:16:52 +0000 (18:16 -0700)] 
cleanup Makefile; add potestlf rule

5 years agoremove debugging prints
Bob Halley [Mon, 29 Jun 2020 01:12:10 +0000 (18:12 -0700)] 
remove debugging prints

5 years agoUse serial number arithmetic in IXFR.
Bob Halley [Sat, 27 Jun 2020 22:34:29 +0000 (15:34 -0700)] 
Use serial number arithmetic in IXFR.

5 years agoadd serial number arithmetic helper
Bob Halley [Sat, 27 Jun 2020 22:33:58 +0000 (15:33 -0700)] 
add serial number arithmetic helper

5 years agoprefer emacs continuation lines in another case
Bob Halley [Sat, 27 Jun 2020 22:33:32 +0000 (15:33 -0700)] 
prefer emacs continuation lines in another case

5 years agofix __all__ list: remove .py suffixes, add asyncbackend
Bob Halley [Sat, 27 Jun 2020 20:35:20 +0000 (13:35 -0700)] 
fix __all__ list: remove .py suffixes, add asyncbackend

5 years agotest update section validation
Bob Halley [Sat, 27 Jun 2020 20:22:25 +0000 (13:22 -0700)] 
test update section validation

5 years agoRefactor OPT handling code into OPT record class. (#520)
Brian Wellington [Sat, 27 Jun 2020 01:55:53 +0000 (18:55 -0700)] 
Refactor OPT handling code into OPT record class. (#520)

* Create an OPT record class.

* Move OPT logic to one place.

* Store the OPT record on the message object.

This also adds a Renderer.add_rdata() method.

* Add Rdataset.rdata_to_wire() helper.

* Fix conflicts; simplify.

* Fix typo.

* style

* Add a trivial to_text so that repr() works.

* Add _parse_special_rr_header

* More OPT checking.

Pass the name to _parse_rr_header and _parse_special_rr_header, and
check that the OPT record has the root name.

5 years agoSimplify code.
Brian Wellington [Fri, 26 Jun 2020 22:42:09 +0000 (15:42 -0700)] 
Simplify code.

There's no need to attach an attribute to the _TextReader/_WireReader
classes; the code has access to the message.

5 years agoeliminate hardcode sections length
Bob Halley [Fri, 26 Jun 2020 21:38:03 +0000 (14:38 -0700)] 
eliminate hardcode sections length

5 years agolint
Bob Halley [Fri, 26 Jun 2020 21:22:45 +0000 (14:22 -0700)] 
lint

5 years agoMerge pull request #521 from rthalley/message
Bob Halley [Fri, 26 Jun 2020 21:19:18 +0000 (14:19 -0700)] 
Merge pull request #521 from rthalley/message

New message hierarchy

5 years agoAttempt to refactor per-opcode validation. 521/head
Brian Wellington [Fri, 26 Jun 2020 20:59:59 +0000 (13:59 -0700)] 
Attempt to refactor per-opcode validation.

Instead of validating rrsets and sections after parsing them, check the
class/type for each record before parsing it.  This is more generic,
because it moves all of the update logic out of the common code.  It's
also more flexible, as it allows the update logic to specify that
meta-records are empty.

5 years agoRemove hardcoded section names from TextReader.
Brian Wellington [Fri, 26 Jun 2020 19:16:30 +0000 (12:16 -0700)] 
Remove hardcoded section names from TextReader.

5 years agoMinor _WireReader refactoring.
Brian Wellington [Fri, 26 Jun 2020 18:30:29 +0000 (11:30 -0700)] 
Minor _WireReader refactoring.

Instead of parsing the header to determine which Message subclass to
create and passing that message to _WireReader, make _WireReader create
the Message subclass itself.

5 years agoadd message-query.rst
Bob Halley [Fri, 26 Jun 2020 14:57:34 +0000 (07:57 -0700)] 
add message-query.rst

5 years agobasic documentation updates for revised message hierarchy
Bob Halley [Fri, 26 Jun 2020 14:57:06 +0000 (07:57 -0700)] 
basic documentation updates for revised message hierarchy

5 years agomove rrset validation to the end-of-section processing
Bob Halley [Fri, 26 Jun 2020 13:51:04 +0000 (06:51 -0700)] 
move rrset validation to the end-of-section processing

5 years agolint
Bob Halley [Fri, 26 Jun 2020 13:43:42 +0000 (06:43 -0700)] 
lint

5 years agofix cut-and-paste error
Bob Halley [Fri, 26 Jun 2020 13:40:40 +0000 (06:40 -0700)] 
fix cut-and-paste error

5 years agotest class factory and update from_wire()
Bob Halley [Fri, 26 Jun 2020 13:38:24 +0000 (06:38 -0700)] 
test class factory and update from_wire()

5 years agomessage.from_text() should have the same relativize options as other text APIs.
Bob Halley [Fri, 26 Jun 2020 13:35:43 +0000 (06:35 -0700)] 
message.from_text() should have the same relativize options as other text APIs.

5 years agonew message class hierarchy and conversion of wire and text readers
Bob Halley [Fri, 26 Jun 2020 03:13:18 +0000 (20:13 -0700)] 
new message class hierarchy and conversion of wire and text readers

5 years agoset update section globals for convenience; fix formatting
Bob Halley [Fri, 26 Jun 2020 00:14:13 +0000 (17:14 -0700)] 
set update section globals for convenience; fix formatting

5 years agomake sections a list; propertize question, answer, etc.
Bob Halley [Fri, 26 Jun 2020 00:13:05 +0000 (17:13 -0700)] 
make sections a list; propertize question, answer, etc.

5 years agosection enums
Bob Halley [Thu, 25 Jun 2020 23:25:53 +0000 (16:25 -0700)] 
section enums

5 years agomake codecov a bit mellower about pulls
Bob Halley [Thu, 25 Jun 2020 22:08:41 +0000 (15:08 -0700)] 
make codecov a bit mellower about pulls

5 years agoMerge pull request #519 from frenzymadness/master
Bob Halley [Thu, 25 Jun 2020 14:13:23 +0000 (07:13 -0700)] 
Merge pull request #519 from frenzymadness/master

Use `configure=False` in tests to skip reading /etc/resolv.conf

5 years agoUse `configure=False` in tests to skip reading /etc/resolv.conf 519/head
Lumir Balhar [Thu, 25 Jun 2020 07:51:49 +0000 (09:51 +0200)] 
Use `configure=False` in tests to skip reading /etc/resolv.conf

5 years agoFix TTL limiting.
Brian Wellington [Thu, 25 Jun 2020 00:04:59 +0000 (17:04 -0700)] 
Fix TTL limiting.

The message code would convert negative TTL into 0, but the TTL could
never be negative, as it was read with the '!I' format, which reads
unsigned 32 bit integers.  We don't want to change that, since OPT flags
(which are encoded in the TTL) should be treated as unsigned.  Instead,
treat all TTLs > (2^31 - 1) as 0.

5 years agoMinor style changes.
Brian Wellington [Thu, 25 Jun 2020 00:02:29 +0000 (17:02 -0700)] 
Minor style changes.

There's no need to pass start=0 to range().  Use += when possible.
Replace multiple comparisons with in.

5 years agolint nanonameserver
Bob Halley [Wed, 24 Jun 2020 17:17:45 +0000 (10:17 -0700)] 
lint nanonameserver

5 years agoMerge pull request #515 from bwelling/nanonameserver
Bob Halley [Wed, 24 Jun 2020 17:14:44 +0000 (10:14 -0700)] 
Merge pull request #515 from bwelling/nanonameserver

Add more functionality to nanonameserver.

5 years agoFix cut-and-paste error. 515/head
Brian Wellington [Wed, 24 Jun 2020 17:04:24 +0000 (10:04 -0700)] 
Fix cut-and-paste error.

5 years agoClose extra UDP sockets more quickly.
Brian Wellington [Wed, 24 Jun 2020 17:01:13 +0000 (10:01 -0700)] 
Close extra UDP sockets more quickly.

If any UDP sockets are left open due to the corresponding TCP ports
being in use, close them.

5 years agoMerge pull request #516 from rthalley/dependabot/pip/mypy-tw-0.782
Bob Halley [Wed, 24 Jun 2020 16:10:15 +0000 (09:10 -0700)] 
Merge pull request #516 from rthalley/dependabot/pip/mypy-tw-0.782

Update mypy requirement from ^0.781 to ^0.782

5 years agoRemove unused code.
Brian Wellington [Wed, 24 Jun 2020 16:09:54 +0000 (09:09 -0700)] 
Remove unused code.

5 years agoUpdate mypy requirement from ^0.781 to ^0.782 516/head
dependabot[bot] [Wed, 24 Jun 2020 05:43:45 +0000 (05:43 +0000)] 
Update mypy requirement from ^0.781 to ^0.782

Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.781...v0.782)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoAdd more functionality to nanonameserver.
Brian Wellington [Tue, 23 Jun 2020 23:46:48 +0000 (16:46 -0700)] 
Add more functionality to nanonameserver.

- When no port is specified, pick the same port for UDP and TCP, so that
TCP fallback can be tested.

- Change handlers to get a single Request object instead of individual
parameters.  The Request object contains the message, peer, and
connection_type previously passed, and also adds the local address and
wire format message.  Additionally, it provides convenient properties
for accessing the question.

5 years agomake read_resolv_conf() tests work on win32 too
Bob Halley [Tue, 23 Jun 2020 15:14:22 +0000 (08:14 -0700)] 
make read_resolv_conf() tests work on win32 too

5 years agomerge mostly redundant resolv.conf test into existing test
Bob Halley [Tue, 23 Jun 2020 15:02:49 +0000 (08:02 -0700)] 
merge mostly redundant resolv.conf test into existing test

5 years agotest resolv.conf settings
Bob Halley [Tue, 23 Jun 2020 14:49:32 +0000 (07:49 -0700)] 
test resolv.conf settings

5 years agotest CH A
Bob Halley [Tue, 23 Jun 2020 14:25:03 +0000 (07:25 -0700)] 
test CH A

5 years agoadd coverage badge
Bob Halley [Tue, 23 Jun 2020 02:14:12 +0000 (19:14 -0700)] 
add coverage badge

5 years agopoetry works; test all extras
Bob Halley [Tue, 23 Jun 2020 02:14:03 +0000 (19:14 -0700)] 
poetry works; test all extras

5 years agotry using poetry on travis
Bob Halley [Tue, 23 Jun 2020 02:09:42 +0000 (19:09 -0700)] 
try using poetry on travis

5 years agotry again to get a later pytest on travis python 3.6 and 3.7
Bob Halley [Tue, 23 Jun 2020 01:58:56 +0000 (18:58 -0700)] 
try again to get a later pytest on travis python 3.6 and 3.7

5 years agotry to get a later pytest on travis python 3.6 and 3.7
Bob Halley [Tue, 23 Jun 2020 01:55:39 +0000 (18:55 -0700)] 
try to get a later pytest on travis python 3.6 and 3.7

5 years agocompute and load coverage from travis
Bob Halley [Tue, 23 Jun 2020 01:47:07 +0000 (18:47 -0700)] 
compute and load coverage from travis

5 years agoThe cached _all_slots technique of the earlier pickle fix didn't work for
Bob Halley [Tue, 23 Jun 2020 01:07:25 +0000 (18:07 -0700)] 
The cached _all_slots technique of the earlier pickle fix didn't work for
GenericRdata or for directly imported types.  This fix just computes the
all slots relatively efficiently every __getstate__().

5 years agoimport dns.dnssec
Brian Wellington [Mon, 22 Jun 2020 23:58:45 +0000 (16:58 -0700)] 
import dns.dnssec

5 years agomove note part to a better place
Bob Halley [Mon, 22 Jun 2020 23:18:01 +0000 (16:18 -0700)] 
move note part to a better place

5 years agoMerge pull request #513 from rthalley/dependabot/pip/mypy-tw-0.781
Bob Halley [Mon, 22 Jun 2020 13:49:16 +0000 (06:49 -0700)] 
Merge pull request #513 from rthalley/dependabot/pip/mypy-tw-0.781

Update mypy requirement from ^0.780 to ^0.781

5 years agoUpdate mypy requirement from ^0.780 to ^0.781 513/head
dependabot[bot] [Mon, 22 Jun 2020 05:44:40 +0000 (05:44 +0000)] 
Update mypy requirement from ^0.780 to ^0.781

Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.780...v0.781)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoset versioning to dev
Bob Halley [Sat, 20 Jun 2020 21:14:49 +0000 (14:14 -0700)] 
set versioning to dev

5 years agoadd wheel v2.0.0rc1
Bob Halley [Sat, 20 Jun 2020 17:44:26 +0000 (10:44 -0700)] 
add wheel

5 years agoadd twine to dev tools
Bob Halley [Sat, 20 Jun 2020 17:40:31 +0000 (10:40 -0700)] 
add twine to dev tools

5 years agoprep rc doc
Bob Halley [Sat, 20 Jun 2020 17:37:02 +0000 (10:37 -0700)] 
prep rc doc

5 years agoimprove resolver coverage
Bob Halley [Sat, 20 Jun 2020 14:38:16 +0000 (07:38 -0700)] 
improve resolver coverage

5 years agoremove differences.md as doco has fuller description
Bob Halley [Sat, 20 Jun 2020 14:12:49 +0000 (07:12 -0700)] 
remove differences.md as doco has fuller description

5 years agoremove linux jobs as coverage does not fuse
Bob Halley [Sat, 20 Jun 2020 14:10:55 +0000 (07:10 -0700)] 
remove linux jobs as coverage does not fuse

5 years agotry a different type for NoData test to make azure happier
Bob Halley [Sat, 20 Jun 2020 14:01:49 +0000 (07:01 -0700)] 
try a different type for NoData test to make azure happier

5 years agotry a different type for NoData test to make azure happier
Bob Halley [Sat, 20 Jun 2020 13:44:54 +0000 (06:44 -0700)] 
try a different type for NoData test to make azure happier

5 years agotry azure update again
Bob Halley [Sat, 20 Jun 2020 13:39:13 +0000 (06:39 -0700)] 
try azure update again

5 years agotry a much more complicated azure job
Bob Halley [Sat, 20 Jun 2020 13:36:06 +0000 (06:36 -0700)] 
try a much more complicated azure job

5 years agobind our UDP socket
Bob Halley [Sat, 20 Jun 2020 01:17:40 +0000 (18:17 -0700)] 
bind our UDP socket

5 years agoimprove TSIG coverage
Bob Halley [Fri, 19 Jun 2020 21:47:53 +0000 (14:47 -0700)] 
improve TSIG coverage

5 years agoRemove hmac_md5(), as it was added for backwards compatibility when we
Bob Halley [Fri, 19 Jun 2020 20:50:14 +0000 (13:50 -0700)] 
Remove hmac_md5(), as it was added for backwards compatibility when we
switched to using sign() back in 2010.

5 years agoimprove coverage
Bob Halley [Fri, 19 Jun 2020 18:21:18 +0000 (11:21 -0700)] 
improve coverage

5 years agoadd coverage
Bob Halley [Fri, 19 Jun 2020 18:15:15 +0000 (11:15 -0700)] 
add coverage

5 years agoadd comment about is-response checking for DDNS
Bob Halley [Fri, 19 Jun 2020 18:15:06 +0000 (11:15 -0700)] 
add comment about is-response checking for DDNS

5 years agoimprove coverage
Bob Halley [Fri, 19 Jun 2020 18:14:34 +0000 (11:14 -0700)] 
improve coverage

5 years agoimprove coverage
Bob Halley [Fri, 19 Jun 2020 18:14:12 +0000 (11:14 -0700)] 
improve coverage

5 years agowe did not check label-too-long in a few text cases
Bob Halley [Fri, 19 Jun 2020 18:13:49 +0000 (11:13 -0700)] 
we did not check label-too-long in a few text cases

5 years agoimprove e164 coverage
Bob Halley [Fri, 19 Jun 2020 16:56:28 +0000 (09:56 -0700)] 
improve e164 coverage

5 years agoimprove set coverage
Bob Halley [Fri, 19 Jun 2020 16:56:13 +0000 (09:56 -0700)] 
improve set coverage

5 years agomore EDNS coverage
Bob Halley [Fri, 19 Jun 2020 16:26:50 +0000 (09:26 -0700)] 
more EDNS coverage

5 years agoMake _cmp generic for all EDNS Options. It now compares the wire formats
Bob Halley [Fri, 19 Jun 2020 16:23:52 +0000 (09:23 -0700)] 
Make _cmp generic for all EDNS Options.  It now compares the wire formats
of two objects of the same class.

Previously we did type-specific stuff for ECSOption, but we only
checked the padded address info, not the srclen or scopelen, so
different options could compare the same.  Also, it's not clear that
there's any better semantic ordering of options than the wire format,
so we will just go for simplicity and use the generic implementation.

5 years agofix indentation issue that let to pointless extra checking
Bob Halley [Fri, 19 Jun 2020 16:23:16 +0000 (09:23 -0700)] 
fix indentation issue that let to pointless extra checking

5 years agolint
Bob Halley [Fri, 19 Jun 2020 14:56:39 +0000 (07:56 -0700)] 
lint

5 years agomisc rdata coverage improvements
Bob Halley [Fri, 19 Jun 2020 14:53:12 +0000 (07:53 -0700)] 
misc rdata coverage improvements

5 years agomore coverage improvements
Bob Halley [Fri, 19 Jun 2020 14:53:00 +0000 (07:53 -0700)] 
more coverage improvements

5 years agofix cut-and-paste typo
Bob Halley [Fri, 19 Jun 2020 14:48:49 +0000 (07:48 -0700)] 
fix cut-and-paste typo