summaryrefslogtreecommitdiff
path: root/dns
Commit message (Collapse)AuthorAgeFilesLines
* Add names iteration to transactions via iterate_names().txn-namesBob Halley2023-03-123-6/+40
| | | | | Also make rdataset iteration more obvious by adding an explicit iterate_rdatasets() API.
* lintBob Halley2023-03-121-25/+26
|
* add Bitmap.from_rdtypes() (#906)Jakob Schlyter2023-03-101-5/+10
| | | | | | | | | | | * add `Bitmap.from_rdtypes()` and add missing typing * more typing * add missing import * add more typing * fix tok type
* Add dns.resolver.resolve_name(). (#903)Brian Wellington2023-03-102-35/+219
| | | | | | | | | | | | | * Add dns.resolver.resolve_name(). * Add missing type annotations. * Add async resolve_name(). * Replace List[Answer] with HostAnswers. * Switch addresses_and_families() tuple order * Fix comment.
* Fix hangs when QUIC connection fails [#899]. (#900)Bob Halley2023-03-023-35/+62
| | | | | This also fixes problems with computing the wait_for() timeout for the sync and asyncio ports, and fixes delivery of the timeout for the sync port.
* Make a few nameserver changes that missed getting added to the PR.Bob Halley2023-02-251-4/+10
|
* Resolver "nameserver" object support. (#897)Bob Halley2023-02-253-98/+434
| | | | | | | | | | | | | | | | | | | | | | | | | * Resolver "nameserver" object support. This turns the list of nameserver strings in the resolver into a tuple of nameserver objects, which abstract away making queries to a nameserver of a given type. The resolver's legacy nameserver list is "enriched" into a tuple of nameserver objects whenever it is set. Note that you cannot mutate the object other than by setting, e.g. res.nameservers.append("1.2.3.4") will not work. Error message accumulation has been updated to refer to the nameservers using a descriptive text form. * doco fix * more doco fixes * do enrichment at Resolution time * require a later mypy, fix type issues * add nameserver doc
* Fix typos.Brian Wellington2023-02-173-3/+3
|
* add more minor typehints (#889)Mathias Ertl2023-02-051-15/+17
|
* The DS digest_type field is now made a DSDigest instance by the constructor ↵Dennis Værum2023-01-251-1/+1
| | | | | | | | | | (#890) Hey @rthalley I found another place in the code there, you may have gotten "distracted" 😉 as you phrased it in https://github.com/rthalley/dnspython/issues/888#issuecomment-1402198449 So, I just made a pull request this time
* The DNSKEY flags field is now made a Flag instance by the constructor.Bob Halley2023-01-241-1/+1
|
* Make Coverity happier [#882].Bob Halley2023-01-121-0/+4
|
* Use 'https' instead of 'http' for dnspython.org (#883)Rafael Guterres Jeffman2023-01-111-1/+1
| | | | | | | | These days, 'https' should be used instead of 'http' for almost anything, and Coverity is warning that dnspython.org URL in 'setup.cfg' uses 'http'. This patch changes the use of 'http' to 'https' on setup.cfg and documentation, where it does not affect module code, tests or examples.
* Remove obsolete comment (#873)sblondon2023-01-021-7/+1
|
* Update versions and CI post 2.3 branch.Bob Halley2022-12-271-1/+1
|
* lintBob Halley2022-12-231-3/+5
|
* DNSSEC doco fixes.Bob Halley2022-12-231-5/+5
|
* CDS/CDNSKEY utilities (#872)Jakob Schlyter2022-12-231-11/+239
| | | | | | | | | | | Add CDS and CDNSKEY utilities: make_cdnskey() make_cds() make_ds_rdataset() cds_rdataset_to_ds_rdataset() dnskey_rdataset_to_cds_rdataset() dnskey_rdataset_to_cdnskey_rdataset()
* Fix async quic() doco.Bob Halley2022-12-161-1/+1
|
* Properly pass source and source_port to connect() in the sync version of quic().Bob Halley2022-12-161-3/+3
|
* Fix misc. lint.Bob Halley2022-12-167-13/+22
|
* DNSSEC policy. (#869)Bob Halley2022-12-152-2/+106
|
* Improve DNSSEC _doco, minor DNSSEC and typing tweaks.Bob Halley2022-12-125-36/+25
|
* DNSSEC signer (#866)Jakob Schlyter2022-12-121-39/+380
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * first cut at key_to_dnskey * update docs * typo * use real test vectors for DNSKEY * comment * split * add test for large exponent size * rename to make_dnskey * no default algorithm * rename and add comment * split out function to create rrsig signature data * docs * add type for public key * more typing * make RSA exponent key test easier to read * work in progress for dns.dnssec.sign * better docs * docs * simplify * add test with RSASHA1 * initial support for DSA * update docs * clean up DSA, t still not clear * allow inception/expiration to be specified as datetime, string, float or in * allow rrset to be specified as a tuple * calculate dsa_t * reformat * more rrset tuple fixes * support DSA * improve exception handling * fix return type error * fix typing issue to silence mypy * make test case more verbose * ensure UTC and use sigtime_to_posixtime to convert text to timestamp
* Basic SVCB and HTTPS doco.Bob Halley2022-11-271-1/+1
|
* Fix type lint from latest mypy.Bob Halley2022-11-244-4/+4
|
* Merge pull request #842 from rthalley/quicBob Halley2022-11-249-1/+985
|\ | | | | Initial DoQ support.
| * fix doco typoBob Halley2022-10-121-1/+1
| |
| * Initial DoQ support.Bob Halley2022-10-099-1/+985
| |
* | For async send_udp(), return a length and clarify the expirationBob Halley2022-10-132-2/+7
|/ | | | | | | | | | is meaningless. For async receive_udp(), document that the return type is always a 3-tuple, as opposed to being either a pair or a 3-tuple as in the sync version. (I chose to document rather than change the behavior as changing it broke dnspython tests and might possibly break other code.) [#848]
* 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.