summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Attempt to refactor per-opcode validation.messageBrian Wellington2020-06-262-52/+44
| | | | | | | | 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.
* Remove hardcoded section names from TextReader.Brian Wellington2020-06-261-26/+36
|
* Minor _WireReader refactoring.Brian Wellington2020-06-261-47/+49
| | | | | | 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.
* add message-query.rstBob Halley2020-06-261-0/+9
|
* basic documentation updates for revised message hierarchyBob Halley2020-06-265-27/+39
|
* move rrset validation to the end-of-section processingBob Halley2020-06-261-11/+7
|
* lintBob Halley2020-06-261-2/+2
|
* fix cut-and-paste errorBob Halley2020-06-261-3/+0
|
* test class factory and update from_wire()Bob Halley2020-06-262-0/+11
|
* message.from_text() should have the same relativize options as other text APIs.Bob Halley2020-06-261-7/+32
|
* new message class hierarchy and conversion of wire and text readersBob Halley2020-06-252-102/+165
|
* set update section globals for convenience; fix formattingBob Halley2020-06-252-1/+3
|
* make sections a list; propertize question, answer, etc.Bob Halley2020-06-252-60/+98
|
* section enumsBob Halley2020-06-252-35/+26
|
* make codecov a bit mellower about pullsBob Halley2020-06-251-0/+6
|
* Merge pull request #519 from frenzymadness/masterBob Halley2020-06-251-5/+5
|\ | | | | Use `configure=False` in tests to skip reading /etc/resolv.conf
| * Use `configure=False` in tests to skip reading /etc/resolv.confLumir Balhar2020-06-251-5/+5
|/
* Fix TTL limiting.Brian Wellington2020-06-241-1/+1
| | | | | | | | 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.
* Minor style changes.Brian Wellington2020-06-241-9/+8
| | | | | There's no need to pass start=0 to range(). Use += when possible. Replace multiple comparisons with in.
* lint nanonameserverBob Halley2020-06-241-1/+1
|
* Merge pull request #515 from bwelling/nanonameserverBob Halley2020-06-243-34/+81
|\ | | | | Add more functionality to nanonameserver.
| * Fix cut-and-paste error.Brian Wellington2020-06-241-1/+1
| |
| * Close extra UDP sockets more quickly.Brian Wellington2020-06-241-23/+30
| | | | | | | | | | If any UDP sockets are left open due to the corresponding TCP ports being in use, close them.
| * Remove unused code.Brian Wellington2020-06-241-16/+0
| |
| * Add more functionality to nanonameserver.Brian Wellington2020-06-233-29/+85
| | | | | | | | | | | | | | | | | | | | | | - 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.
* | Merge pull request #516 from rthalley/dependabot/pip/mypy-tw-0.782Bob Halley2020-06-241-1/+1
|\ \ | |/ |/| Update mypy requirement from ^0.781 to ^0.782
| * Update mypy requirement from ^0.781 to ^0.782dependabot/pip/mypy-tw-0.782dependabot[bot]2020-06-241-1/+1
|/ | | | | | | 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>
* make read_resolv_conf() tests work on win32 tooBob Halley2020-06-231-2/+4
|
* merge mostly redundant resolv.conf test into existing testBob Halley2020-06-231-35/+15
|
* test resolv.conf settingsBob Halley2020-06-231-0/+20
|
* test CH ABob Halley2020-06-231-0/+13
|
* add coverage badgeBob Halley2020-06-221-0/+1
|
* poetry works; test all extrasBob Halley2020-06-221-1/+1
|
* try using poetry on travisBob Halley2020-06-221-3/+3
|
* try again to get a later pytest on travis python 3.6 and 3.7Bob Halley2020-06-221-1/+1
|
* try to get a later pytest on travis python 3.6 and 3.7Bob Halley2020-06-221-0/+1
|
* compute and load coverage from travisBob Halley2020-06-224-5/+6
|
* The cached _all_slots technique of the earlier pickle fix didn't work forBob Halley2020-06-221-12/+6
| | | | | GenericRdata or for directly imported types. This fix just computes the all slots relatively efficiently every __getstate__().
* import dns.dnssecBrian Wellington2020-06-221-0/+1
|
* move note part to a better placeBob Halley2020-06-221-3/+3
|
* Merge pull request #513 from rthalley/dependabot/pip/mypy-tw-0.781Bob Halley2020-06-221-1/+1
|\ | | | | Update mypy requirement from ^0.780 to ^0.781
| * Update mypy requirement from ^0.780 to ^0.781dependabot/pip/mypy-tw-0.781dependabot[bot]2020-06-221-1/+1
|/ | | | | | | 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>
* set versioning to devBob Halley2020-06-204-6/+6
|
* add wheelv2.0.0rc1Bob Halley2020-06-201-0/+1
|
* add twine to dev toolsBob Halley2020-06-201-0/+1
|
* prep rc docBob Halley2020-06-201-4/+18
|
* improve resolver coverageBob Halley2020-06-202-6/+25
|
* remove differences.md as doco has fuller descriptionBob Halley2020-06-201-14/+0
|
* remove linux jobs as coverage does not fuseBob Halley2020-06-201-39/+0
|
* try a different type for NoData test to make azure happierBob Halley2020-06-201-2/+2
|