summaryrefslogtreecommitdiff
path: root/dns
Commit message (Collapse)AuthorAgeFilesLines
...
* Asyncio sockets should work after a timeout [#843].Bob Halley2022-10-061-5/+7
|
* Deal with leading dots in search lists on Windows [#844].Bob Halley2022-10-061-2/+2
|
* more lintBob Halley2022-10-027-11/+21
|
* lintBob Halley2022-10-021-1/+1
|
* When scanning interfaces with WMI, ignore those without DNSBob Halley2022-08-231-5/+6
| | | | configuration. [#834]
* add $ to allow_directives if missingBob Halley2022-08-161-1/+8
|
* fix typosBob Halley2022-08-151-2/+2
|
* allow zonefile directives to be specified explicitlyBob Halley2022-08-142-15/+51
|
* Add idna_codec parameter to dns.zone.from_file() [#832]Bob Halley2022-08-141-0/+2
|
* Add support for more bases in $GENERATEcorubba2022-08-051-18/+37
| | | | | | | | | | | When reading a zone from a zonefile, the `$GENERATE` resolution now not only supports decimal but also octal, hexadecimal and nibbles. When using nibbles with an even width, the generated index may end with a dot, and alone is interpreted as a absolute name. This behaviour is consistent with bind, but may cause these records to be dropped by the subdomain-check in `zonefile.py:398` (see also the `h.*` labels in the testcase that are missing from the result).
* fix format string lint detected by flake8 5.0.3Bob Halley2022-08-021-2/+2
|
* Merge pull request #822 from bwelling/rdatatype-fixesBob Halley2022-07-172-16/+36
|\ | | | | Fix dns.rdatatype special cases.
| * Fix dns.rdatatype special cases.Brian Wellington2022-07-152-16/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this change, there was logic in dns.rdatatype.from_text() and to_text() to deal with types not handled by the RdataType enum; specifically, the NSAP-PTR type (the enum value has a different name, because of the hyphen) and user-registered types. This was fine when internal code called these methods, but most callers of from_text() were converted to dns.rdatatype.RdataType.make(), which supports both integer and text input, and it doesn't handle the special cases. This change adds more hooks into the enum wrapper and moves the special case handling for RdataType into them.
* | fixed dnpython.org typoChris Kuipers2022-06-031-2/+2
| |
* | Fix passing source address with httpx.Brian Wellington2022-03-251-1/+1
| | | | | | | | | | | | | | | | When dns.query.https() is passed a source address, it needs to create an adapter for either requests or httpx to use it. As it doesn't know which one will actually be used, it creates both. But then if it decides to use httpx, it attempts to attach the requests adapter, which fails.
* | Fix httpx verify bug.Brian Wellington2022-03-251-1/+1
|/ | | | | | | | | If both source and verify are passed to dns.query.https() when using httpx, the verify parameter is ignored. This is because the code creates a custom transport for the source address, and httpx only uses the verify parameter when creating a transport. The fix is to pass in the verify parameter when we create a transport.
* fix type of query paramater to https() methodBob Halley2022-03-252-3/+6
|
* Add EDNS padding.Bob Halley2022-03-234-34/+142
|
* style(asyncquery): change the ``httpx.AsyncClient`` type annotation to a ↵Ryu juheon2022-03-201-1/+1
| | | | string literal
* Use nullcontext for async code, as well.Brian Wellington2022-03-181-66/+47
| | | | | | We can't use contextlib.nullcontext(), as it doesn't support async context managers until 3.10, but we can use dns._asyncbackend.NullContext.
* Add typing info.Brian Wellington2022-03-184-7/+7
|
* Use contextlib.nullcontext().Brian Wellington2022-03-184-47/+49
| | | | | Replaces uses of contextlib.ExitStack, since nullcontext() is available in 3.7.
* threading is always available from 3.7 onBob Halley2022-03-184-26/+11
|
* join adjacent strings (formatting)Bob Halley2022-03-178-22/+12
|
* black autoformattingBob Halley2022-03-15106-2953/+4597
|
* remove extraneous "pass", and follow the existing dnspython styleBob Halley2022-03-121-13/+7
|
* Add type annotations for various BaseResolver attributeswouter bolsterlee2022-03-111-14/+42
| | | | | | | | | | | | | | | This adds class level type annotations for BaseResolver attributes. partially based on the existing annotations from `.reset()` (which have now moved). Mypy does not infer BaseResolver attributes because those are not defined `.__init__()` method, but in `.reset()`; there is already a pylint override for this. The result is that application code that accesses `resolver.port` and other attributes incorrectly triggers mypy errors about the seemingly not existing attribute. While at it, fix a few easy to address mypy/flake8 warnings that popped up on my screen while editing this file.
* windows typing fixesBob Halley2022-03-111-1/+4
|
* One more pass, after adding --disallow-incomplete-defsBob Halley2022-03-1124-92/+103
|
* add missing request_mac annotation to async methodsBob Halley2022-03-101-2/+3
|
* Typing pass number 2, featuring typing of bools, adding a return typeBob Halley2022-03-1029-367/+436
| | | | | of "-> None" to procedures, and various fixes for omissions, errors, and new issues discovered by type checking previously unchecked things.
* misc type annotation lintBob Halley2022-03-085-8/+8
|
* LGTM lintBob Halley2022-03-0613-17/+12
|
* Remove 3.6-specific code.Bob Halley2022-03-056-123/+9
| | | | | We still have to add AsyncExitStacks, and this requires making the associated socket wrappers async context managers.
* add return type to get_soa()Bob Halley2022-03-051-3/+3
|
* Add integrated typing to much of dnspython.Bob Halley2022-03-0571-1447/+1328
|
* Merge pull request #781 from jschlyter/zone_get_soaBob Halley2022-02-231-1/+20
|\ | | | | implement dns.zone.Zone.get_soa()
| * allow txn argument as suggested by @rthalleyJakob Schlyter2022-02-211-2/+5
| |
| * use get_soa() in compute_digest()Jakob Schlyter2022-02-191-1/+1
| |
| * raise NoSOA if there is no SOA recordJakob Schlyter2022-02-191-2/+2
| |
| * implement dns.zone.Zone.get_soa()Jakob Schlyter2022-02-191-0/+16
| |
* | more lgtm lintingBob Halley2022-02-231-3/+3
| |
* | more lgtm lintBob Halley2022-02-213-7/+10
|/
* apply TLS minimums on 3.6 tooBob Halley2022-02-172-0/+4
|
* lgtm lint: suppress false positiveBob Halley2022-02-171-1/+2
|
* set a minimum TLS version when we canBob Halley2022-02-172-5/+11
|
* one more bit of lgtm lintBob Halley2022-02-171-8/+4
|
* more lgtm lintingBob Halley2022-02-1717-28/+38
|
* LGTM lintingBob Halley2022-02-166-14/+16
|
* Add missing types to exceptions stubSteven Silvester2022-02-031-0/+2
|