]>
git.ipfire.org Git - thirdparty/dnspython.git/log
Brian Wellington [Tue, 19 May 2020 20:18:05 +0000 (13:18 -0700)]
Enum refactoring.
Consolidate the common methods related to enum classes.
Bob Halley [Tue, 19 May 2020 19:58:10 +0000 (12:58 -0700)]
start resolution business logic tests.
Bob Halley [Tue, 19 May 2020 19:49:47 +0000 (12:49 -0700)]
add missing backoff to next_nameserver() retry_with_tcp case
Bob Halley [Tue, 19 May 2020 18:59:55 +0000 (11:59 -0700)]
use to_enum()
Bob Halley [Tue, 19 May 2020 20:08:12 +0000 (13:08 -0700)]
Merge pull request #474 from bwelling/sets
Replace dicts with sets.
Brian Wellington [Tue, 19 May 2020 17:26:36 +0000 (10:26 -0700)]
Fix bare except.
Brian Wellington [Tue, 19 May 2020 17:21:53 +0000 (10:21 -0700)]
Fix type registration for singleton types.
Brian Wellington [Tue, 19 May 2020 17:08:15 +0000 (10:08 -0700)]
Replace dicts with sets.
Bob Halley [Tue, 19 May 2020 17:05:14 +0000 (10:05 -0700)]
It is self.resolver.retry_servfail, not self.retry_servfail; where were you linters?
Brian Wellington [Tue, 19 May 2020 16:51:37 +0000 (09:51 -0700)]
Fix metatype check.
IANA has reserved types 128-255 as meta types, so that range should be
checked.
Bob Halley [Tue, 19 May 2020 16:15:53 +0000 (09:15 -0700)]
Merge pull request #472 from rthalley/resrefactor
Resolver Business Logic Refactoring
Bob Halley [Tue, 19 May 2020 13:50:06 +0000 (06:50 -0700)]
first draft of What's New in 2.0.0
Bob Halley [Tue, 19 May 2020 13:24:28 +0000 (06:24 -0700)]
Merge pull request #473 from bwelling/enum
WIP: Convert constants to enums
Bob Halley [Tue, 19 May 2020 13:10:21 +0000 (06:10 -0700)]
add resolve_address() helper at module level
Bob Halley [Tue, 19 May 2020 13:03:43 +0000 (06:03 -0700)]
add basic typo info for trio modules
Bob Halley [Tue, 19 May 2020 12:51:31 +0000 (05:51 -0700)]
linting
Bob Halley [Tue, 19 May 2020 12:32:33 +0000 (05:32 -0700)]
add trio to extras
Brian Wellington [Mon, 18 May 2020 22:08:39 +0000 (15:08 -0700)]
Finish rdatatype conversion.
Add more checking to dns.rdata.register_type, to ensure that an existing
type mnemonic isn't overwritten. Use the enum functionality for mapping
names to values and values to names, rather than duplicating it.
Brian Wellington [Mon, 18 May 2020 21:07:42 +0000 (14:07 -0700)]
Assign to globals() more consistently.
Brian Wellington [Mon, 18 May 2020 21:03:00 +0000 (14:03 -0700)]
Convert message flags to enums.
Brian Wellington [Mon, 18 May 2020 20:40:08 +0000 (13:40 -0700)]
Convert opcode, rcode, dnssec constants to enums.
Brian Wellington [Mon, 18 May 2020 19:56:08 +0000 (12:56 -0700)]
Create DNSKEY Flag enum.
The flags are defined in dnskeybase, and additionally visible in DNSKEY
and CDNSKEY.
Also, remove flags_to_text_set() and flags_from_text_set(). The
DNSKEY record doesn't support text flags; this was leftover from
the KEY record.
Remove tests that are no longer needed, and update other tests for these
changes.
Brian Wellington [Mon, 18 May 2020 17:25:11 +0000 (10:25 -0700)]
Start converting rdatatype/rdataclass to enum.
Bob Halley [Mon, 18 May 2020 15:08:05 +0000 (08:08 -0700)]
refactor resolver, extracting all business logic
Bob Halley [Mon, 18 May 2020 15:07:47 +0000 (08:07 -0700)]
add is_address()
Bob Halley [Sun, 17 May 2020 20:26:48 +0000 (13:26 -0700)]
prevent async resolver infinite attempts if caller does not use a timeout scope
Bob Halley [Sun, 17 May 2020 02:48:49 +0000 (19:48 -0700)]
add missing import to trio example
Bob Halley [Sun, 17 May 2020 02:26:47 +0000 (19:26 -0700)]
indentation lint
Bob Halley [Sun, 17 May 2020 02:26:37 +0000 (19:26 -0700)]
async resolver and linting
Bob Halley [Sat, 16 May 2020 23:51:28 +0000 (16:51 -0700)]
Start trio async support.
Bob Halley [Sat, 16 May 2020 22:16:19 +0000 (15:16 -0700)]
Merge pull request #471 from bwelling/dnssec-enum
Improve consistency in DNSSEC code.
Brian Wellington [Fri, 15 May 2020 23:52:53 +0000 (16:52 -0700)]
Remove extra whitespace.
Brian Wellington [Fri, 15 May 2020 23:47:35 +0000 (16:47 -0700)]
Improve consistency in DNSSEC code.
The make_ds method took its algorithm as a string, and the nsec3_hash
method took an algorithm as an int. Change both of them to accept
either, and add enums for both sets of algorithms.
Bob Halley [Fri, 15 May 2020 21:54:01 +0000 (14:54 -0700)]
add mypy.ini
Bob Halley [Fri, 15 May 2020 21:36:54 +0000 (14:36 -0700)]
remove unused io import
Bob Halley [Fri, 15 May 2020 21:36:03 +0000 (14:36 -0700)]
Merge pull request #470 from bwelling/optimize-name
Optimize name.to_digestable() and to_wire().
Bob Halley [Fri, 15 May 2020 21:35:22 +0000 (14:35 -0700)]
flake8 linting
Brian Wellington [Fri, 15 May 2020 20:48:34 +0000 (13:48 -0700)]
Optimize name.to_digestable() and to_wire().
Bob Halley [Fri, 15 May 2020 18:39:32 +0000 (11:39 -0700)]
fix type specification for resolve()
Bob Halley [Fri, 15 May 2020 18:38:03 +0000 (11:38 -0700)]
Allow resolver-level control over the defaulting of search (default False).
Bob Halley [Fri, 15 May 2020 12:50:10 +0000 (05:50 -0700)]
Add resolver resolve(), deprecate query().
Brian Wellington [Mon, 11 May 2020 21:07:39 +0000 (14:07 -0700)]
Another docs typo fix.
Brian Wellington [Mon, 11 May 2020 19:40:35 +0000 (12:40 -0700)]
Update the default TSIG algorithm to hmac-sha256.
In the upcoming update to RFC 2845, HMAC-MD5 will move to "MUST NOT"
use, so it shouldn't be the default.
Brian Wellington [Mon, 11 May 2020 19:34:42 +0000 (12:34 -0700)]
Resolver docs fixes.
Brian Wellington [Mon, 11 May 2020 19:14:59 +0000 (12:14 -0700)]
Improve nsec3_hash() docs.
Bob Halley [Mon, 11 May 2020 18:56:04 +0000 (11:56 -0700)]
add nsec3_hash to doco
Brian Wellington [Mon, 11 May 2020 18:27:21 +0000 (11:27 -0700)]
Improve validate() docs.
Bob Halley [Mon, 11 May 2020 18:02:48 +0000 (11:02 -0700)]
fix quoting, again!
Bob Halley [Mon, 11 May 2020 17:59:54 +0000 (10:59 -0700)]
fix quoting
Bob Halley [Mon, 11 May 2020 17:54:13 +0000 (10:54 -0700)]
Document validate() and validate_rrsig().
Remove origin parameter to key_id().
validate() should catch UnimplementedAlgorithm.
Brian Wellington [Mon, 11 May 2020 17:34:13 +0000 (10:34 -0700)]
Fix the dns.message.BadEDNS documentation.
The OPT record isn't required to be at the start of the additional
section, and the code doesn't enforce that.
Brian Wellington [Mon, 11 May 2020 17:22:48 +0000 (10:22 -0700)]
Add more nsec3_hash() tests.
Brian Wellington [Mon, 11 May 2020 17:11:21 +0000 (10:11 -0700)]
Fix nsec3_hash() when passed a dns.name.Name.
The documentation claims that it supports this, but the code was
incorrect.
Brian Wellington [Mon, 11 May 2020 16:59:08 +0000 (09:59 -0700)]
Fix nsec3_hash() with salt==None.
The documentation claims that it supports salt==None, but it caused a
TypeError.
Bob Halley [Mon, 11 May 2020 16:58:30 +0000 (09:58 -0700)]
extra imports for readthedocs
Brian Wellington [Mon, 11 May 2020 16:18:26 +0000 (09:18 -0700)]
Fix documentation formatting.
Brian Wellington [Mon, 11 May 2020 16:07:09 +0000 (09:07 -0700)]
Add TLS.
Brian Wellington [Mon, 11 May 2020 16:04:08 +0000 (09:04 -0700)]
Fix documentation cut and paste error.
Brian Wellington [Mon, 11 May 2020 16:03:46 +0000 (09:03 -0700)]
Fix documentation typos.
Bob Halley [Mon, 11 May 2020 12:56:24 +0000 (05:56 -0700)]
remove Python 2 reference
Bob Halley [Mon, 11 May 2020 12:51:00 +0000 (05:51 -0700)]
fix some leftover doco issues
Bob Halley [Sun, 10 May 2020 16:36:45 +0000 (09:36 -0700)]
add info about compression assumptions in dns.name.Name.to_wire()
Bob Halley [Sun, 10 May 2020 16:33:03 +0000 (09:33 -0700)]
Reharmonize doc style as I think it looks better
Bob Halley [Sun, 10 May 2020 15:57:22 +0000 (08:57 -0700)]
doco badge
Bob Halley [Sun, 10 May 2020 15:50:01 +0000 (08:50 -0700)]
fix doco nits
Bob Halley [Sun, 10 May 2020 15:24:15 +0000 (08:24 -0700)]
add .readthedocs.yml
Bob Halley [Sun, 10 May 2020 02:39:07 +0000 (19:39 -0700)]
lint
Bob Halley [Sun, 10 May 2020 02:38:08 +0000 (19:38 -0700)]
checkpoint rdata subclass doc, finally done
Bob Halley [Sat, 9 May 2020 22:15:07 +0000 (15:15 -0700)]
checkpoint more rdata subclasses doco
Bob Halley [Sat, 9 May 2020 21:33:53 +0000 (14:33 -0700)]
checkpoint rdata subclasses doco
Bob Halley [Sat, 9 May 2020 20:50:16 +0000 (13:50 -0700)]
binary -> bytes, text -> str
Bob Halley [Sat, 9 May 2020 20:30:45 +0000 (13:30 -0700)]
more documentation
Bob Halley [Fri, 8 May 2020 14:21:01 +0000 (07:21 -0700)]
add license.rst
Bob Halley [Fri, 8 May 2020 14:20:50 +0000 (07:20 -0700)]
add license
Bob Halley [Fri, 8 May 2020 14:12:13 +0000 (07:12 -0700)]
remove year
Bob Halley [Fri, 8 May 2020 14:10:55 +0000 (07:10 -0700)]
update doco author and copyright info
Bob Halley [Fri, 8 May 2020 14:07:37 +0000 (07:07 -0700)]
add idna_codec doco to from_text_list()
Bob Halley [Fri, 8 May 2020 14:02:48 +0000 (07:02 -0700)]
in doco, text->str, binary->bytes
Bob Halley [Fri, 8 May 2020 13:48:37 +0000 (06:48 -0700)]
remove python 2vs3 section
Bob Halley [Fri, 8 May 2020 13:44:19 +0000 (06:44 -0700)]
add dns.query.https
Bob Halley [Fri, 8 May 2020 13:43:50 +0000 (06:43 -0700)]
remove send_https() as the send/receive split is too hard for HTTPS and it is not adding anything over https()
Bob Halley [Thu, 7 May 2020 19:40:34 +0000 (12:40 -0700)]
add sphinx to pyproject.toml
Bob Halley [Thu, 7 May 2020 19:22:17 +0000 (12:22 -0700)]
Merge pull request #468 from kimbo/kl/extras-install
extras install
kimbo [Thu, 7 May 2020 15:22:44 +0000 (09:22 -0600)]
standard way to install extras
see https://www.python.org/dev/peps/pep-0508/#extras
also added command to pip install straight from master branch on github
kimbo [Thu, 7 May 2020 15:21:07 +0000 (09:21 -0600)]
match setup.py's extra_requires functionality
Bob Halley [Thu, 7 May 2020 14:42:13 +0000 (07:42 -0700)]
python>=3.6
Bob Halley [Thu, 7 May 2020 14:40:49 +0000 (07:40 -0700)]
Merge pull request #467 from kimbo/kl/installation-fix
make dnspython installable with pip
kimbo [Thu, 7 May 2020 14:27:00 +0000 (08:27 -0600)]
make dnspython installable with pip
I tried installing dnspython from the master branch and it did not work.
The error I got was
"poetry.masonry.utils.module.ModuleOrPackageNotFound: No file/folder
found for package dnspython".
Turns out there have been some changes made to pip involving the build
system (see https://www.python.org/dev/peps/pep-0517).
Basically pip is using poetry to install your package.
Poetry has some requirements about how you structure your project (see
https://python-poetry.org/docs/basic-usage/#project-setup and
https://python-poetry.org/docs/pyproject/#packages).
This change allows you to install dnspython without running into that
particular issue.
Bob Halley [Thu, 7 May 2020 14:10:16 +0000 (07:10 -0700)]
3.6 or later required; mention DoH in installation doc
Bob Halley [Thu, 7 May 2020 13:37:43 +0000 (06:37 -0700)]
document installing optional packages
Bob Halley [Thu, 7 May 2020 13:01:30 +0000 (06:01 -0700)]
Document dns.message.from_text() blank line behavior [Issue #354].
Bob Halley [Thu, 7 May 2020 12:52:17 +0000 (05:52 -0700)]
Python 3.6 or later is required.
Bob Halley [Mon, 4 May 2020 19:21:27 +0000 (12:21 -0700)]
start flake8 support
Brian Wellington [Mon, 4 May 2020 17:55:39 +0000 (10:55 -0700)]
Improve TXT records in example zone.
This zone was copied from a zone file in BIND long ago. BIND contains
both sample zone files and a script to generate sample zone files, but
the committed files appear to have been generated by a broken version of
the script.
This updates the TXT records to what the script would have generated,
which is far more complete.
Bob Halley [Mon, 4 May 2020 15:20:22 +0000 (08:20 -0700)]
Fix [Issue #416], EAI_SYSTEM not defined on Windows.
Bob Halley [Mon, 4 May 2020 15:00:33 +0000 (08:00 -0700)]
Grealy simplify our getaddrinfo() implementation by calling the
system's version when we have an address literal for the host. This
also avoids infinite loops as dns.query.* needs to call getaddrinfo()
to handle scoping correctly.
Bob Halley [Mon, 4 May 2020 15:00:25 +0000 (08:00 -0700)]
Do not lose scope info. [Issue #283]
Bob Halley [Mon, 4 May 2020 14:22:29 +0000 (07:22 -0700)]
Ignore scopes in dns.inet.*
Bob Halley [Mon, 4 May 2020 14:17:11 +0000 (07:17 -0700)]
In cases where we care that something is just an IPv4 or IPv6 address,
without any extras like IPv6 scope, explicitly use dns.ipv4 and dns.ipv6
instead of dns.inet. This will let us be tolerant of scopes in other
cases (e.g. ordinary network connections).
Bob Halley [Mon, 4 May 2020 13:51:15 +0000 (06:51 -0700)]
Add an ignore_scope option to dns.ipv6.inet_aton().