]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
5 years agoEnum refactoring. 475/head
Brian Wellington [Tue, 19 May 2020 20:18:05 +0000 (13:18 -0700)] 
Enum refactoring.

Consolidate the common methods related to enum classes.

5 years agostart resolution business logic tests.
Bob Halley [Tue, 19 May 2020 19:58:10 +0000 (12:58 -0700)] 
start resolution business logic tests.

5 years agoadd missing backoff to next_nameserver() retry_with_tcp case
Bob Halley [Tue, 19 May 2020 19:49:47 +0000 (12:49 -0700)] 
add missing backoff to next_nameserver() retry_with_tcp case

5 years agouse to_enum()
Bob Halley [Tue, 19 May 2020 18:59:55 +0000 (11:59 -0700)] 
use to_enum()

5 years agoMerge pull request #474 from bwelling/sets
Bob Halley [Tue, 19 May 2020 20:08:12 +0000 (13:08 -0700)] 
Merge pull request #474 from bwelling/sets

Replace dicts with sets.

5 years agoFix bare except.
Brian Wellington [Tue, 19 May 2020 17:26:36 +0000 (10:26 -0700)] 
Fix bare except.

5 years agoFix type registration for singleton types. 474/head
Brian Wellington [Tue, 19 May 2020 17:21:53 +0000 (10:21 -0700)] 
Fix type registration for singleton types.

5 years agoReplace dicts with sets.
Brian Wellington [Tue, 19 May 2020 17:08:15 +0000 (10:08 -0700)] 
Replace dicts with sets.

5 years agoIt is self.resolver.retry_servfail, not self.retry_servfail; where were you linters?
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?

5 years agoFix metatype check.
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.

5 years agoMerge pull request #472 from rthalley/resrefactor
Bob Halley [Tue, 19 May 2020 16:15:53 +0000 (09:15 -0700)] 
Merge pull request #472 from rthalley/resrefactor

Resolver Business Logic Refactoring

5 years agofirst draft of What's New in 2.0.0
Bob Halley [Tue, 19 May 2020 13:50:06 +0000 (06:50 -0700)] 
first draft of What's New in 2.0.0

5 years agoMerge pull request #473 from bwelling/enum
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

5 years agoadd resolve_address() helper at module level 472/head
Bob Halley [Tue, 19 May 2020 13:10:21 +0000 (06:10 -0700)] 
add resolve_address() helper at module level

5 years agoadd basic typo info for trio modules
Bob Halley [Tue, 19 May 2020 13:03:43 +0000 (06:03 -0700)] 
add basic typo info for trio modules

5 years agolinting
Bob Halley [Tue, 19 May 2020 12:51:31 +0000 (05:51 -0700)] 
linting

5 years agoadd trio to extras
Bob Halley [Tue, 19 May 2020 12:32:33 +0000 (05:32 -0700)] 
add trio to extras

5 years agoFinish rdatatype conversion. 473/head
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.

5 years agoAssign to globals() more consistently.
Brian Wellington [Mon, 18 May 2020 21:07:42 +0000 (14:07 -0700)] 
Assign to globals() more consistently.

5 years agoConvert message flags to enums.
Brian Wellington [Mon, 18 May 2020 21:03:00 +0000 (14:03 -0700)] 
Convert message flags to enums.

5 years agoConvert opcode, rcode, dnssec constants to enums.
Brian Wellington [Mon, 18 May 2020 20:40:08 +0000 (13:40 -0700)] 
Convert opcode, rcode, dnssec constants to enums.

5 years agoCreate DNSKEY Flag enum.
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.

5 years agoStart converting rdatatype/rdataclass to enum.
Brian Wellington [Mon, 18 May 2020 17:25:11 +0000 (10:25 -0700)] 
Start converting rdatatype/rdataclass to enum.

5 years agorefactor resolver, extracting all business logic
Bob Halley [Mon, 18 May 2020 15:08:05 +0000 (08:08 -0700)] 
refactor resolver, extracting all business logic

5 years agoadd is_address()
Bob Halley [Mon, 18 May 2020 15:07:47 +0000 (08:07 -0700)] 
add is_address()

5 years agoprevent async resolver infinite attempts if caller does not use a timeout scope
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

5 years agoadd missing import to trio example
Bob Halley [Sun, 17 May 2020 02:48:49 +0000 (19:48 -0700)] 
add missing import to trio example

5 years agoindentation lint
Bob Halley [Sun, 17 May 2020 02:26:47 +0000 (19:26 -0700)] 
indentation lint

5 years agoasync resolver and linting
Bob Halley [Sun, 17 May 2020 02:26:37 +0000 (19:26 -0700)] 
async resolver and linting

5 years agoStart trio async support.
Bob Halley [Sat, 16 May 2020 23:51:28 +0000 (16:51 -0700)] 
Start trio async support.

5 years agoMerge pull request #471 from bwelling/dnssec-enum
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.

5 years agoRemove extra whitespace. 471/head
Brian Wellington [Fri, 15 May 2020 23:52:53 +0000 (16:52 -0700)] 
Remove extra whitespace.

5 years agoImprove consistency in DNSSEC code.
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.

5 years agoadd mypy.ini
Bob Halley [Fri, 15 May 2020 21:54:01 +0000 (14:54 -0700)] 
add mypy.ini

5 years agoremove unused io import
Bob Halley [Fri, 15 May 2020 21:36:54 +0000 (14:36 -0700)] 
remove unused io import

5 years agoMerge pull request #470 from bwelling/optimize-name
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().

5 years agoflake8 linting
Bob Halley [Fri, 15 May 2020 21:35:22 +0000 (14:35 -0700)] 
flake8 linting

5 years agoOptimize name.to_digestable() and to_wire(). 470/head
Brian Wellington [Fri, 15 May 2020 20:48:34 +0000 (13:48 -0700)] 
Optimize name.to_digestable() and to_wire().

5 years agofix type specification for resolve()
Bob Halley [Fri, 15 May 2020 18:39:32 +0000 (11:39 -0700)] 
fix type specification for resolve()

5 years agoAllow resolver-level control over the defaulting of search (default False).
Bob Halley [Fri, 15 May 2020 18:38:03 +0000 (11:38 -0700)] 
Allow resolver-level control over the defaulting of search (default False).

5 years agoAdd resolver resolve(), deprecate query().
Bob Halley [Fri, 15 May 2020 12:50:10 +0000 (05:50 -0700)] 
Add resolver resolve(), deprecate query().

5 years agoAnother docs typo fix.
Brian Wellington [Mon, 11 May 2020 21:07:39 +0000 (14:07 -0700)] 
Another docs typo fix.

5 years agoUpdate the default TSIG algorithm to hmac-sha256.
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.

5 years agoResolver docs fixes.
Brian Wellington [Mon, 11 May 2020 19:34:42 +0000 (12:34 -0700)] 
Resolver docs fixes.

5 years agoImprove nsec3_hash() docs.
Brian Wellington [Mon, 11 May 2020 19:14:59 +0000 (12:14 -0700)] 
Improve nsec3_hash() docs.

5 years agoadd nsec3_hash to doco
Bob Halley [Mon, 11 May 2020 18:56:04 +0000 (11:56 -0700)] 
add nsec3_hash to doco

5 years agoImprove validate() docs.
Brian Wellington [Mon, 11 May 2020 18:27:21 +0000 (11:27 -0700)] 
Improve validate() docs.

5 years agofix quoting, again!
Bob Halley [Mon, 11 May 2020 18:02:48 +0000 (11:02 -0700)] 
fix quoting, again!

5 years agofix quoting
Bob Halley [Mon, 11 May 2020 17:59:54 +0000 (10:59 -0700)] 
fix quoting

5 years agoDocument validate() and validate_rrsig().
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.

5 years agoFix the dns.message.BadEDNS documentation.
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.

5 years agoAdd more nsec3_hash() tests.
Brian Wellington [Mon, 11 May 2020 17:22:48 +0000 (10:22 -0700)] 
Add more nsec3_hash() tests.

5 years agoFix nsec3_hash() when passed a dns.name.Name.
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.

5 years agoFix nsec3_hash() with salt==None.
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.

5 years agoextra imports for readthedocs
Bob Halley [Mon, 11 May 2020 16:58:30 +0000 (09:58 -0700)] 
extra imports for readthedocs

5 years agoFix documentation formatting.
Brian Wellington [Mon, 11 May 2020 16:18:26 +0000 (09:18 -0700)] 
Fix documentation formatting.

5 years agoAdd TLS.
Brian Wellington [Mon, 11 May 2020 16:07:09 +0000 (09:07 -0700)] 
Add TLS.

5 years agoFix documentation cut and paste error.
Brian Wellington [Mon, 11 May 2020 16:04:08 +0000 (09:04 -0700)] 
Fix documentation cut and paste error.

5 years agoFix documentation typos.
Brian Wellington [Mon, 11 May 2020 16:03:46 +0000 (09:03 -0700)] 
Fix documentation typos.

5 years agoremove Python 2 reference
Bob Halley [Mon, 11 May 2020 12:56:24 +0000 (05:56 -0700)] 
remove Python 2 reference

5 years agofix some leftover doco issues
Bob Halley [Mon, 11 May 2020 12:51:00 +0000 (05:51 -0700)] 
fix some leftover doco issues

5 years agoadd info about compression assumptions in dns.name.Name.to_wire()
Bob Halley [Sun, 10 May 2020 16:36:45 +0000 (09:36 -0700)] 
add info about compression assumptions in dns.name.Name.to_wire()

5 years agoReharmonize doc style as I think it looks better
Bob Halley [Sun, 10 May 2020 16:33:03 +0000 (09:33 -0700)] 
Reharmonize doc style as I think it looks better

5 years agodoco badge
Bob Halley [Sun, 10 May 2020 15:57:22 +0000 (08:57 -0700)] 
doco badge

5 years agofix doco nits
Bob Halley [Sun, 10 May 2020 15:50:01 +0000 (08:50 -0700)] 
fix doco nits

5 years agoadd .readthedocs.yml
Bob Halley [Sun, 10 May 2020 15:24:15 +0000 (08:24 -0700)] 
add .readthedocs.yml

5 years agolint
Bob Halley [Sun, 10 May 2020 02:39:07 +0000 (19:39 -0700)] 
lint

5 years agocheckpoint rdata subclass doc, finally done
Bob Halley [Sun, 10 May 2020 02:38:08 +0000 (19:38 -0700)] 
checkpoint rdata subclass doc, finally done

5 years agocheckpoint more rdata subclasses doco
Bob Halley [Sat, 9 May 2020 22:15:07 +0000 (15:15 -0700)] 
checkpoint more rdata subclasses doco

5 years agocheckpoint rdata subclasses doco
Bob Halley [Sat, 9 May 2020 21:33:53 +0000 (14:33 -0700)] 
checkpoint rdata subclasses doco

5 years agobinary -> bytes, text -> str
Bob Halley [Sat, 9 May 2020 20:50:16 +0000 (13:50 -0700)] 
binary -> bytes, text -> str

5 years agomore documentation
Bob Halley [Sat, 9 May 2020 20:30:45 +0000 (13:30 -0700)] 
more documentation

5 years agoadd license.rst
Bob Halley [Fri, 8 May 2020 14:21:01 +0000 (07:21 -0700)] 
add license.rst

5 years agoadd license
Bob Halley [Fri, 8 May 2020 14:20:50 +0000 (07:20 -0700)] 
add license

5 years agoremove year
Bob Halley [Fri, 8 May 2020 14:12:13 +0000 (07:12 -0700)] 
remove year

5 years agoupdate doco author and copyright info
Bob Halley [Fri, 8 May 2020 14:10:55 +0000 (07:10 -0700)] 
update doco author and copyright info

5 years agoadd idna_codec doco to from_text_list()
Bob Halley [Fri, 8 May 2020 14:07:37 +0000 (07:07 -0700)] 
add idna_codec doco to from_text_list()

5 years agoin doco, text->str, binary->bytes
Bob Halley [Fri, 8 May 2020 14:02:48 +0000 (07:02 -0700)] 
in doco, text->str, binary->bytes

5 years agoremove python 2vs3 section
Bob Halley [Fri, 8 May 2020 13:48:37 +0000 (06:48 -0700)] 
remove python 2vs3 section

5 years agoadd dns.query.https
Bob Halley [Fri, 8 May 2020 13:44:19 +0000 (06:44 -0700)] 
add dns.query.https

5 years agoremove send_https() as the send/receive split is too hard for HTTPS and it is not...
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()

5 years agoadd sphinx to pyproject.toml
Bob Halley [Thu, 7 May 2020 19:40:34 +0000 (12:40 -0700)] 
add sphinx to pyproject.toml

5 years agoMerge pull request #468 from kimbo/kl/extras-install
Bob Halley [Thu, 7 May 2020 19:22:17 +0000 (12:22 -0700)] 
Merge pull request #468 from kimbo/kl/extras-install

extras install

5 years agostandard way to install extras 468/head
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

5 years agomatch setup.py's extra_requires functionality
kimbo [Thu, 7 May 2020 15:21:07 +0000 (09:21 -0600)] 
match setup.py's extra_requires functionality

5 years agopython>=3.6
Bob Halley [Thu, 7 May 2020 14:42:13 +0000 (07:42 -0700)] 
python>=3.6

5 years agoMerge pull request #467 from kimbo/kl/installation-fix
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

5 years agomake dnspython installable with pip 467/head
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.

5 years ago3.6 or later required; mention DoH in installation doc
Bob Halley [Thu, 7 May 2020 14:10:16 +0000 (07:10 -0700)] 
3.6 or later required; mention DoH in installation doc

5 years agodocument installing optional packages
Bob Halley [Thu, 7 May 2020 13:37:43 +0000 (06:37 -0700)] 
document installing optional packages

5 years agoDocument dns.message.from_text() blank line behavior [Issue #354].
Bob Halley [Thu, 7 May 2020 13:01:30 +0000 (06:01 -0700)] 
Document dns.message.from_text() blank line behavior [Issue #354].

5 years agoPython 3.6 or later is required.
Bob Halley [Thu, 7 May 2020 12:52:17 +0000 (05:52 -0700)] 
Python 3.6 or later is required.

5 years agostart flake8 support
Bob Halley [Mon, 4 May 2020 19:21:27 +0000 (12:21 -0700)] 
start flake8 support

5 years agoImprove TXT records in example zone.
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.

5 years agoFix [Issue #416], EAI_SYSTEM not defined on Windows.
Bob Halley [Mon, 4 May 2020 15:20:22 +0000 (08:20 -0700)] 
Fix [Issue #416], EAI_SYSTEM not defined on Windows.

5 years agoGrealy simplify our getaddrinfo() implementation by calling the
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.

5 years agoDo not lose scope info. [Issue #283]
Bob Halley [Mon, 4 May 2020 15:00:25 +0000 (08:00 -0700)] 
Do not lose scope info. [Issue #283]

5 years agoIgnore scopes in dns.inet.*
Bob Halley [Mon, 4 May 2020 14:22:29 +0000 (07:22 -0700)] 
Ignore scopes in dns.inet.*

5 years agoIn cases where we care that something is just an IPv4 or IPv6 address,
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).

5 years agoAdd an ignore_scope option to dns.ipv6.inet_aton().
Bob Halley [Mon, 4 May 2020 13:51:15 +0000 (06:51 -0700)] 
Add an ignore_scope option to dns.ipv6.inet_aton().