summaryrefslogtreecommitdiff
path: root/dns
Commit message (Collapse)AuthorAgeFilesLines
...
* remove backwards compatibility for something deleted 10 years agoBob Halley2020-05-031-16/+0
|
* more things to make mypy happierBob Halley2020-05-036-15/+12
|
* fix indentation error after tokenizer refactoringBob Halley2020-05-031-1/+1
|
* Do not double-UTF-8 encode escapes in TXT-like records. [Issue #321]Bob Halley2020-05-032-22/+62
|
* de-lint: remove unused importBob Halley2020-05-021-1/+0
|
* Use context managers to simplify code.Brian Wellington2020-05-015-126/+68
| | | | | | | | 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.
* HIP was not doing relativize_toBob Halley2020-05-011-2/+1
|
* Add as_name(), allowing an already read token to be interpreted a name.Bob Halley2020-05-011-4/+13
|
* add missing type declarationsBob Halley2020-05-012-0/+4
|
* remove spurious old-division pylint warning; remove unneeded float castsBob Halley2020-05-011-4/+8
|
* In library code, replace from io import BytesIO (or StringIO) with import ioBob Halley2020-05-0110-28/+31
|
* remove obsolete entropy pool hash import logicBob Halley2020-05-011-14/+4
|
* Merge pull request #460 from bwelling/remove-futureBob Halley2020-05-015-10/+0
|\ | | | | Remove "from __future__ import" statements.
| * Remove "from __future__ import" statements.Brian Wellington2020-05-015-10/+0
| | | | | | | | None of these are needed anymore.
* | Merge pull request #459 from dlenski/make_DOH_extraBob Halley2020-05-011-3/+18
|\ \ | |/ |/| Make DOH, and the requests dependency, optional
| * make DOH an extra feature (to avoid requests as hard dependency)Daniel Lenski2020-04-301-3/+18
| |
* | do not import BytesIO into rdata namespaceBob Halley2020-05-011-2/+1
| |
* | ignore duplicate name warning as it is not a bugBob Halley2020-05-011-1/+1
|/
* Add alternate origin support to dns.reversename.Brian Wellington2020-04-291-22/+31
|
* Remove redundant check.Brian Wellington2020-04-211-3/+0
| | | | | _validate_rrsig will never be called if cryptography wasn't loaded, so there's no need to check again.
* Fix documentation.Brian Wellington2020-04-211-1/+1
| | | | Rdata.to_wire() writes to the file, and doesn't return anything.
* Add dns.rdata.Rdata.to_generic()Brian Wellington2020-04-211-0/+10
|
* cryptography delintBob Halley2020-04-081-2/+1
|
* Use python cryptography for DNSSECSimo Sorce2020-04-072-85/+82
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* Merge pull request #445 from kimbo/kl/resolv-conf-optionsBob Halley2020-04-031-5/+32
|\ | | | | additional resolv.conf options
| * support for ndots, edns0, timeout resolv.conf optskimbo2020-04-021-5/+32
| |
* | Use decorator syntax for properties.Brian Wellington2020-04-031-2/+2
| |
* | fix type specification errorsBob Halley2020-04-033-3/+9
| |
* | Merge pull request #444 from bwelling/optimize-setBob Halley2020-04-032-23/+36
|\ \ | | | | | | Optimize set
| * | Optimize dns.set.Set.Brian Wellington2020-04-021-22/+35
| | | | | | | | | | | | | | | | | | This changes the internal implementation from a list to an ordered dictionary (dict or collections.OrderedDict, depending on Python version). This is possible now that Rdata are immutable.
| * | Use public dns.set.Set interface.Brian Wellington2020-04-021-1/+1
| |/
* | Add dns.rdata.Rdata.replace()Brian Wellington2020-04-021-0/+34
|/ | | | | | Now that Rdata instances are immutable, there needs to be a way to make a new Rdata based on an existing one. replace() creates a clone of the current Rdata, overriding fields with the specified parameters.
* Further improve get_rdata_class().Brian Wellington2020-04-021-0/+2
| | | | | | | When we find a class-independent type, cache it for both class ANY and the requested type, to avoid an extra dict lookup the next time. If we don't find anything, cache GenericRdata, to avoid extra module loads the next time.
* Optimize get_rdata_class().Brian Wellington2020-04-021-15/+16
| | | | | | | This replaces the module cache with a class cache, so that the getattr() call to retrieve the class happens only when a new type module is loaded, not in the common case. This also allows avoiding the calls to dns.rdataclass.to_text() and dns.rdatatype.to_text() in the common case.
* Use importlib.import_module.Brian Wellington2020-04-021-15/+1
| | | | Replace the open-coded import_module() with the one in importlib.
* types with properties should be get-onlyBob Halley2020-04-023-47/+21
|
* import needed stuffBob Halley2020-04-021-1/+1
|
* more delintingBob Halley2020-04-021-3/+3
|
* delintBob Halley2020-04-022-2/+3
|
* add reverse_query()Bob Halley2020-04-021-0/+2
|
* Merge pull request #438 from bwelling/improve-rdataset-reprBob Halley2020-04-022-2/+12
|\ | | | | Improve rdataset/rrset repr to include rdata.
| * Improve rdataset/rrset repr to include rdata.Brian Wellington2020-04-012-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, repr() of rdataset/rrset looked like this: <DNS IN A rdataset> <DNS IN TXT rdataset> <DNS IN RRSIG rdataset> <DNS example. IN A RRset> <DNS example. IN TXT RRset> <DNS example. IN RRSIG(NSEC) RRset> With this patch, it they look like: <DNS IN A rdataset: [<1.2.3.4>, <5.6.7.8>]> <DNS IN TXT rdataset: [<"foo" "bar">, <"baz">]> <DNS IN RRSIG(NSEC) rdataset: [<NSEC 1 3 3600 20200101000000 20030101000000 2143 foo MxFcby9k/yvedMfQgKzhH5er0Mu/vILz 45IkskceFGgiWC...>]> <DNS example. IN A RRset: [<1.2.3.4>, <5.6.7.8>]> <DNS example. IN TXT RRset: [<"foo" "bar">, <"baz">]> <DNS example. IN RRSIG(NSEC) RRset: [<NSEC 1 3 3600 20200101000000 20030101000000 2143 foo MxFcby9k/yvedMfQgKzhH5er0Mu/vILz 45IkskceFGgiWC...>]> Note that each rdata is truncated to 100 characters.
* | Merge pull request #434 from bwelling/immutable-rdataBob Halley2020-04-0238-162/+188
|\ \ | | | | | | Immutable rdata
| * | Checkpoint immutable rdata.Brian Wellington2020-03-3138-162/+188
| |/
* | Merge pull request #437 from bwelling/remove-rdata-choose-relativityBob Halley2020-04-0213-50/+0
|\ \ | | | | | | Remove dns.rdata.choose_relativity().
| * | Remove dns.rdata.choose_relativity().Brian Wellington2020-03-3113-50/+0
| |/ | | | | | | | | | | This method changes rdata in place, so prevents rdata from becoming immutable. There are no in-tree users, and if there are out of tree users, they are rate and hard to find.
* | Merge pull request #413 from kimbo/kl/fix-xfr-fd-leakBrian Wellington2020-04-011-101/+98
|\ \ | |/ |/| prevent fd from leaking (fix #351)
| * prevent fd from leaking (fix #351)kimbo2020-02-261-101/+98
| |
* | NSEC3 hash implementation and testsFabian Hauck2020-03-212-0/+45
| |
* | Merge pull request #432 from bwelling/ds-sha384Bob Halley2020-03-201-0/+3
|\ \ | | | | | | Add support for SHA-384 DS records.