| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Message get_rrset() needs to pass idna_codec to find_rrset(). | Bob Halley | 2023-04-06 | 1 | -2/+9 |
| | | | | | Also removes some lint about "section = section" being a no-op. | ||||
| * | Enum typing (#923) | Brian Wellington | 2023-04-06 | 1 | -5/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | * IntEnum improvements. This changes make() to always return an instance of the subclass, creating one on the fly if the value is not known, and updates the typ registration code to deal with this. It also adds typing annotations to make(). * Add missing int check. Some older versions of python weren't rejecting non-int values. * Fix int check. Raise TypeError for non-int, not ValueError, to make tests happy. * Annotate to_text/from_text. * Remove many the_ prefixed variables. These were needed in the past to work around typing issues. | ||||
| * | Improve get_rrset/find_rrset API. (#922) | Brian Wellington | 2023-04-06 | 1 | -23/+45 |
| | | | | | | | | | | | | * Improve get_rrset/find_rrset API. This allows most of the parameters to be specified as strings, matching the interface for dns.message.make_query(). * Remove unneeded "the_section". There's no need to use a separate internal variable for the section; mypy doesn't complain about reuse. | ||||
| * | re-run black | Bob Halley | 2023-03-19 | 1 | -1/+1 |
| | | |||||
| * | more lint | Bob Halley | 2022-10-02 | 1 | -1/+1 |
| | | |||||
| * | Add EDNS padding. | Bob Halley | 2022-03-23 | 1 | -15/+64 |
| | | |||||
| * | Add typing info. | Brian Wellington | 2022-03-18 | 1 | -1/+1 |
| | | |||||
| * | Use contextlib.nullcontext(). | Brian Wellington | 2022-03-18 | 1 | -3/+5 |
| | | | | | | Replaces uses of contextlib.ExitStack, since nullcontext() is available in 3.7. | ||||
| * | join adjacent strings (formatting) | Bob Halley | 2022-03-17 | 1 | -1/+1 |
| | | |||||
| * | black autoformatting | Bob Halley | 2022-03-15 | 1 | -250/+403 |
| | | |||||
| * | One more pass, after adding --disallow-incomplete-defs | Bob Halley | 2022-03-11 | 1 | -8/+8 |
| | | |||||
| * | Typing pass number 2, featuring typing of bools, adding a return type | Bob Halley | 2022-03-10 | 1 | -32/+42 |
| | | | | | | of "-> None" to procedures, and various fixes for omissions, errors, and new issues discovered by type checking previously unchecked things. | ||||
| * | misc type annotation lint | Bob Halley | 2022-03-08 | 1 | -2/+2 |
| | | |||||
| * | LGTM lint | Bob Halley | 2022-03-06 | 1 | -1/+1 |
| | | |||||
| * | Add integrated typing to much of dnspython. | Bob Halley | 2022-03-05 | 1 | -62/+93 |
| | | |||||
| * | fix various typing issues (typos) | Sebastian Wagner | 2022-01-29 | 1 | -1/+1 |
| | | | | | I stumbled over a few typos and then decided to fix 'em all | ||||
| * | Add flags to dns.message.make_query(). | Brian Wellington | 2021-11-02 | 1 | -2/+5 |
| | | |||||
| * | Simplify; add a MessageError class.continue_on_error | Bob Halley | 2021-10-24 | 1 | -47/+48 |
| | | |||||
| * | change error format to have current instead of last good | Bob Halley | 2021-10-23 | 1 | -10/+9 |
| | | |||||
| * | draft continue_on_error | Bob Halley | 2021-10-23 | 1 | -62/+103 |
| | | |||||
| * | Add id to dns.message.make_query(). | Brian Wellington | 2021-10-14 | 1 | -2/+6 |
| | | | | | Allow the caller to supply a message id when building a query. | ||||
| * | Improve dns.message.make_query() docs. | Brian Wellington | 2021-10-13 | 1 | -1/+3 |
| | | | | | | | | Update the docs to match the code. Specifically, the docs implied that EDNS was only enabled if use_edns was set, while the code would enable EDNS if any parameter that required EDNS was set and use_edns was not set. | ||||
| * | fix typo and improve dns.message.Message.is_response() doc string | Bob Halley | 2021-10-10 | 1 | -1/+2 |
| | | |||||
| * | use methods with appropriate rcode/opcode typecasting in Message.to_text() | Bob Halley | 2021-01-04 | 1 | -4/+2 |
| | | |||||
| * | Cast flags and ednsflags to int when calling dns.rcode.from_flags() and | Bob Halley | 2021-01-04 | 1 | -2/+2 |
| | | | | | | dns.opcode.from_flags(). This avoids subsequent to_text issues and other type confusion if the values were allowed to remain IntFlags. | ||||
| * | _WireReader.read() should make flags a dns.flags.Flag [Issue #606] | Bob Halley | 2021-01-04 | 1 | -1/+1 |
| | | |||||
| * | Change ChainingResult "rrset" to "answer"; fix typo.resolve_chaining | Bob Halley | 2020-12-21 | 1 | -10/+10 |
| | | |||||
| * | resolve_chaining() now returns a ChainingResult object. | Bob Halley | 2020-12-21 | 1 | -7/+30 |
| | | |||||
| * | resolve_chaining() should not go into an infinite loop if the qtype is | Bob Halley | 2020-12-21 | 1 | -0/+3 |
| | | | | | CNAME and there is no answer [Issue #610]. | ||||
| * | fix rrset match signature problemsfull_match | Bob Halley | 2020-09-03 | 1 | -1/+2 |
| | | |||||
| * | do not call the OPT constructor with rdclass == None | Bob Halley | 2020-08-21 | 1 | -1/+1 |
| | | |||||
| * | Fix dns.message.use_tsig(). | Brian Wellington | 2020-08-10 | 1 | -3/+4 |
| | | | | | | | | | Passing only a dns.tsig.Key to dns.message.use_tsig() didn't work, as the placeholder tsig rrset on the message object was created with None as its name, not the name associated with the key. Also do a bit of refactoring to make the code more clear. | ||||
| * | Support callable() TSIG keyrings for use-cases like GSSTSig. | Nick Hall | 2020-08-08 | 1 | -3/+9 |
| | | |||||
| * | Add a lightweight wrapper around the HMAC types and refactor the "is gss-api ↵ | Nick Hall | 2020-08-08 | 1 | -4/+4 |
| | | | | | or not" wrapper functions to just call the class methods | ||||
| * | fix case of enum namesconstants2 | Bob Halley | 2020-08-03 | 1 | -2/+2 |
| | | |||||
| * | remove globals() enum updating | Bob Halley | 2020-08-03 | 1 | -1/+0 |
| | | |||||
| * | add constants | Bob Halley | 2020-08-03 | 1 | -0/+9 |
| | | |||||
| * | pylint linting | Bob Halley | 2020-07-31 | 1 | -2/+8 |
| | | |||||
| * | Raise NoPreviousName if a text message tries to refer to a previous name but ↵ | Bob Halley | 2020-07-28 | 1 | -0/+9 |
| | | | | | there is none. | ||||
| * | Return the message in question_only mode. [#556] | Bob Halley | 2020-07-28 | 1 | -1/+1 |
| | | |||||
| * | even on errors where we tolerate no question, check question if present | Bob Halley | 2020-07-25 | 1 | -3/+5 |
| | | |||||
| * | Make resolver use_edns() conform to its docstring; slightly improve ↵ | Bob Halley | 2020-07-22 | 1 | -1/+1 |
| | | | | | use_edns() logic. | ||||
| * | Use min() for min_ttl computations. | Bob Halley | 2020-07-21 | 1 | -8/+3 |
| | | |||||
| * | fix exception docstrings | Bob Halley | 2020-07-21 | 1 | -10/+13 |
| | | |||||
| * | set min ttl to max_ttl instead of special case -1 | Bob Halley | 2020-07-21 | 1 | -4/+5 |
| | | |||||
| * | unify chaining code | Bob Halley | 2020-07-21 | 1 | -3/+107 |
| | | |||||
| * | Set EDNS default payload to 1232. | Bob Halley | 2020-07-20 | 1 | -3/+4 |
| | | |||||
| * | Minor cleanups to EDNS code. | Brian Wellington | 2020-07-17 | 1 | -18/+7 |
| | | | | | | | | When the Message object was changed to store an OPT record, the changes to use_edns() left a lot of cruft. Reduce some code duplication in make_query(). | ||||
| * | Fix Message ednsflags propery setter. | Brian Wellington | 2020-07-07 | 1 | -1/+1 |
| | | | | | Setting ednsflags to 0 shouldn't unconditionally enable EDNS. | ||||
| * | Fix Message.want_dnssec(). | Brian Wellington | 2020-07-07 | 1 | -1/+1 |
| | | | | | | It was incorrectly calling Message._make_opt() in the case where the message was not currently using EDNS. | ||||
