]>
git.ipfire.org Git - thirdparty/dnspython.git/log
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().
Bob Halley [Sun, 3 May 2020 21:49:55 +0000 (14:49 -0700)]
IDNA support for zones, messages, names in rdata, rrsets, and rdatasets.
Bob Halley [Sun, 3 May 2020 14:26:35 +0000 (07:26 -0700)]
add IDNA codec parameter to dns.rdata.from_text() type signature.
Bob Halley [Sun, 3 May 2020 14:23:54 +0000 (07:23 -0700)]
Add IDNA codec support to tokenizer and dns.rdata.from_text()
Bob Halley [Sun, 3 May 2020 14:02:49 +0000 (07:02 -0700)]
remove backwards compatibility for something deleted 10 years ago
Bob Halley [Sun, 3 May 2020 13:59:34 +0000 (06:59 -0700)]
more things to make mypy happier
Bob Halley [Sun, 3 May 2020 13:59:02 +0000 (06:59 -0700)]
finish comment
Bob Halley [Sun, 3 May 2020 13:42:22 +0000 (06:42 -0700)]
fix indentation error after tokenizer refactoring
Bob Halley [Sun, 3 May 2020 13:34:53 +0000 (06:34 -0700)]
Do not double-UTF-8 encode escapes in TXT-like records. [Issue #321]
Bob Halley [Sat, 2 May 2020 20:37:39 +0000 (13:37 -0700)]
pytest make targets
Bob Halley [Sat, 2 May 2020 14:11:08 +0000 (07:11 -0700)]
de-lint: remove unused import
Bob Halley [Sat, 2 May 2020 14:08:16 +0000 (07:08 -0700)]
Merge pull request #461 from bwelling/contextlib
Use context managers to simplify code.
Bob Halley [Sat, 2 May 2020 14:03:45 +0000 (07:03 -0700)]
Update license descriptor to the ISC license.
Brian Wellington [Sat, 2 May 2020 00:20:21 +0000 (17:20 -0700)]
Use context managers to simplify code.
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.
Bob Halley [Fri, 1 May 2020 22:58:50 +0000 (15:58 -0700)]
HIP was not doing relativize_to
Bob Halley [Fri, 1 May 2020 22:58:14 +0000 (15:58 -0700)]
Add as_name(), allowing an already read token to be interpreted a name.
Bob Halley [Fri, 1 May 2020 20:06:19 +0000 (13:06 -0700)]
add missing type declarations
Bob Halley [Fri, 1 May 2020 20:02:48 +0000 (13:02 -0700)]
make all shebangs python3
Bob Halley [Fri, 1 May 2020 19:58:38 +0000 (12:58 -0700)]
remove spurious old-division pylint warning; remove unneeded float casts
Bob Halley [Fri, 1 May 2020 19:57:55 +0000 (12:57 -0700)]
fix lingering unguarded requests imports
Bob Halley [Fri, 1 May 2020 19:38:21 +0000 (12:38 -0700)]
In library code, replace from io import BytesIO (or StringIO) with import io
Bob Halley [Fri, 1 May 2020 19:13:35 +0000 (12:13 -0700)]
remove obsolete entropy pool hash import logic
Bob Halley [Fri, 1 May 2020 19:04:28 +0000 (12:04 -0700)]
Merge pull request #460 from bwelling/remove-future
Remove "from __future__ import" statements.
Bob Halley [Fri, 1 May 2020 19:03:34 +0000 (12:03 -0700)]
Merge pull request #459 from dlenski/make_DOH_extra
Make DOH, and the requests dependency, optional
Brian Wellington [Fri, 1 May 2020 18:31:23 +0000 (11:31 -0700)]
Remove "from __future__ import" statements.
None of these are needed anymore.
Bob Halley [Fri, 1 May 2020 15:46:05 +0000 (08:46 -0700)]
try to prevent extra run of 3.7 test possibly caused by comment
Bob Halley [Fri, 1 May 2020 15:32:57 +0000 (08:32 -0700)]
start poetry and pyenv support
Bob Halley [Fri, 1 May 2020 15:30:34 +0000 (08:30 -0700)]
do not import BytesIO into rdata namespace
Bob Halley [Fri, 1 May 2020 15:29:46 +0000 (08:29 -0700)]
ignore duplicate name warning as it is not a bug
Daniel Lenski [Fri, 1 May 2020 00:31:48 +0000 (17:31 -0700)]
also use skipUnless for tests that require IDNA2008
Daniel Lenski [Fri, 1 May 2020 00:31:28 +0000 (17:31 -0700)]
make DOH an extra feature (to avoid requests as hard dependency)
Bob Halley [Wed, 29 Apr 2020 21:00:18 +0000 (14:00 -0700)]
Merge pull request #455 from bwelling/reverse
Add alternate origin support to dns.reversename.
Brian Wellington [Wed, 29 Apr 2020 20:47:10 +0000 (13:47 -0700)]
Add alternate origin support to dns.reversename.
Brian Wellington [Tue, 21 Apr 2020 21:52:29 +0000 (14:52 -0700)]
Remove redundant check.
_validate_rrsig will never be called if cryptography wasn't loaded, so
there's no need to check again.
Brian Wellington [Tue, 21 Apr 2020 21:51:10 +0000 (14:51 -0700)]
Fix documentation.
Rdata.to_wire() writes to the file, and doesn't return anything.
Bob Halley [Tue, 21 Apr 2020 20:30:53 +0000 (13:30 -0700)]
Merge pull request #453 from bwelling/to-generic
Add dns.rdata.Rdata.to_generic()
Brian Wellington [Tue, 21 Apr 2020 20:04:43 +0000 (13:04 -0700)]
Add dns.rdata.Rdata.to_generic()
Bob Halley [Wed, 8 Apr 2020 16:41:06 +0000 (09:41 -0700)]
cryptography delint