| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Attempt to refactor per-opcode validation.message | Brian Wellington | 2020-06-26 | 1 | -43/+28 |
| | | | | | | | | | 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 Wellington | 2020-06-26 | 1 | -26/+36 |
| | | |||||
| * | Minor _WireReader refactoring. | Brian Wellington | 2020-06-26 | 1 | -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. | ||||
| * | basic documentation updates for revised message hierarchy | Bob Halley | 2020-06-26 | 1 | -4/+11 |
| | | |||||
| * | move rrset validation to the end-of-section processing | Bob Halley | 2020-06-26 | 1 | -11/+7 |
| | | |||||
| * | lint | Bob Halley | 2020-06-26 | 1 | -2/+2 |
| | | |||||
| * | fix cut-and-paste error | Bob Halley | 2020-06-26 | 1 | -3/+0 |
| | | |||||
| * | message.from_text() should have the same relativize options as other text APIs. | Bob Halley | 2020-06-26 | 1 | -7/+32 |
| | | |||||
| * | new message class hierarchy and conversion of wire and text readers | Bob Halley | 2020-06-25 | 1 | -77/+137 |
| | | |||||
| * | set update section globals for convenience; fix formatting | Bob Halley | 2020-06-25 | 1 | -1/+1 |
| | | |||||
| * | make sections a list; propertize question, answer, etc. | Bob Halley | 2020-06-25 | 1 | -49/+59 |
| | | |||||
| * | section enums | Bob Halley | 2020-06-25 | 1 | -35/+16 |
| | | |||||
| * | Fix TTL limiting. | Brian Wellington | 2020-06-24 | 1 | -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 Wellington | 2020-06-24 | 1 | -9/+8 |
| | | | | | | There's no need to pass start=0 to range(). Use += when possible. Replace multiple comparisons with in. | ||||
| * | add comment about is-response checking for DDNS | Bob Halley | 2020-06-19 | 1 | -0/+4 |
| | | |||||
| * | Fix typo. | Brian Wellington | 2020-06-17 | 1 | -1/+1 |
| | | |||||
| * | lint | Bob Halley | 2020-06-16 | 1 | -1/+2 |
| | | |||||
| * | Add support for multi-message TSIG. | Brian Wellington | 2020-06-16 | 1 | -5/+19 |
| | | | | | | The underlying renderer code supported this, but it was not exposed through message.to_wire(). | ||||
| * | Fix typo. | Brian Wellington | 2020-06-16 | 1 | -1/+1 |
| | | |||||
| * | Fix typo. | Brian Wellington | 2020-06-16 | 1 | -1/+1 |
| | | |||||
| * | Add one_rr_per_rrset mode to text reader, as it is handy for testing. | Bob Halley | 2020-06-14 | 1 | -6/+19 |
| | | |||||
| * | Minor Python 3 cleanups. | Brian Wellington | 2020-06-03 | 1 | -3/+3 |
| | | | | | | | | Classes inherit from object by default; there's no need to explicitly include this. Replace super(Foo, self) with super(). | ||||
| * | revision of truncation handling | Bob Halley | 2020-05-22 | 1 | -5/+26 |
| | | |||||
| * | Remove dns.rdata{type,class}.to_enum. | Brian Wellington | 2020-05-21 | 1 | -2/+2 |
| | | | | | | | | These methods (which convert a str/int into an enum/int) shouldn't be commonly used by external code, so don't need to exist at the module level. The make() method on the enum class (renamed from to_enum()) can still be used, and the internal callers have been updated to use it. | ||||
| * | Start converting rdatatype/rdataclass to enum. | Brian Wellington | 2020-05-18 | 1 | -4/+2 |
| | | |||||
| * | Fix the dns.message.BadEDNS documentation. | Brian Wellington | 2020-05-11 | 1 | -1/+1 |
| | | | | | | The OPT record isn't required to be at the start of the additional section, and the code doesn't enforce that. | ||||
| * | in doco, text->str, binary->bytes | Bob Halley | 2020-05-08 | 1 | -9/+9 |
| | | |||||
| * | Document dns.message.from_text() blank line behavior [Issue #354]. | Bob Halley | 2020-05-07 | 1 | -0/+6 |
| | | |||||
| * | IDNA support for zones, messages, names in rdata, rrsets, and rdatasets. | Bob Halley | 2020-05-03 | 1 | -8/+16 |
| | | |||||
| * | Use context managers to simplify code. | Brian Wellington | 2020-05-01 | 1 | -15/+5 |
| | | | | | | | | | Simplify code using try/finally to use context managers. In some cases, contextlib.ExitStack() is used; this could probably be further simplified to use contextlib.nullcontext() once Python 3.7+ is a requirement. | ||||
| * | In library code, replace from io import BytesIO (or StringIO) with import io | Bob Halley | 2020-05-01 | 1 | -2/+2 |
| | | |||||
| * | Remove "from __future__ import" statements. | Brian Wellington | 2020-05-01 | 1 | -2/+0 |
| | | | | | None of these are needed anymore. | ||||
| * | Correct Message.is_response docstring | Peter Olson | 2020-02-29 | 1 | -1/+1 |
| | | | | | | When testing responses, I discovered that the docstring for Message.is_response had the comparison backwards, specifically in how the `QR` flag is checked. The documentation was incorrectly updated in fc7db7da4284eedaa951e6acc34e6e6f94da1c64 | ||||
| * | remove the rest of the unicode string prefixes | Bob Halley | 2019-01-08 | 1 | -19/+19 |
| | | |||||
| * | dns.message.from_wire() now sets message.original_id sensibly. | Bob Halley | 2019-01-05 | 1 | -0/+1 |
| | | | | | [Issue #278] | ||||
| * | When decoding from wire format, if a message has TC set, raise a Truncated | Bob Halley | 2019-01-05 | 1 | -0/+8 |
| | | | | | exception. [Issue #297] | ||||
| * | Remove _compat module. | Bob Halley | 2018-12-09 | 1 | -11/+9 |
| | | |||||
| * | update copyright | Bob Halley | 2018-12-01 | 1 | -0/+2 |
| | | |||||
| * | Use proper binary empty string in a few places. | Bob Halley | 2017-01-28 | 1 | -6/+6 |
| | | |||||
| * | fix more typos | Bob Halley | 2017-01-14 | 1 | -3/+3 |
| | | |||||
| * | more message doco | Bob Halley | 2017-01-14 | 1 | -1/+1 |
| | | |||||
| * | Message doco. | Bob Halley | 2017-01-14 | 1 | -221/+318 |
| | | | | | | Add constants to allow a section name to be specified symbolically rather than by passing the actual section list value. | ||||
| * | checkpoint message doc | Bob Halley | 2017-01-14 | 1 | -79/+1 |
| | | |||||
| * | Implement EDNS Client Subnet option | pascal.bouchareine | 2016-11-03 | 1 | -0/+2 |
| | | |||||
| * | Pylint: remove bare excepts | Martin | 2016-08-31 | 1 | -3/+3 |
| | | | | | Bare excepts should not be used, because they may hide system exceptions such as KeyboardInterupts or SystemExits. | ||||
| * | Pylint: enable bad-whitespace check | Martin Basti | 2016-06-27 | 1 | -1/+1 |
| | | |||||
| * | Pylint: enable unused-import check | Martin Basti | 2016-06-27 | 1 | -1/+0 |
| | | |||||
| * | Fix typos | Jakub Wilk | 2016-05-26 | 1 | -3/+3 |
| | | |||||
| * | dns.message.make_query() now interprets any setting that implies | Bob Halley | 2016-05-13 | 1 | -2/+23 |
| | | | | | | EDNS as a request to turn on EDNS, if use_edns has not been set explicitly. | ||||
| * | Dictionary keys doesn't support slicing. That's throw an error in the program | Luis González Fernández | 2016-05-05 | 1 | -1/+1 |
| | | | | | | | if the 'keyname' parameter is not passed. Doing a list(dict())[0] solve this problem. | ||||
