]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
5 years agoUse context managers to simplify code. 461/head
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.

5 years agoHIP was not doing relativize_to
Bob Halley [Fri, 1 May 2020 22:58:50 +0000 (15:58 -0700)] 
HIP was not doing relativize_to

5 years agoAdd as_name(), allowing an already read token to be interpreted a name.
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.

5 years agoadd missing type declarations
Bob Halley [Fri, 1 May 2020 20:06:19 +0000 (13:06 -0700)] 
add missing type declarations

5 years agomake all shebangs python3
Bob Halley [Fri, 1 May 2020 20:02:48 +0000 (13:02 -0700)] 
make all shebangs python3

5 years agoremove spurious old-division pylint warning; remove unneeded float casts
Bob Halley [Fri, 1 May 2020 19:58:38 +0000 (12:58 -0700)] 
remove spurious old-division pylint warning; remove unneeded float casts

5 years agofix lingering unguarded requests imports
Bob Halley [Fri, 1 May 2020 19:57:55 +0000 (12:57 -0700)] 
fix lingering unguarded requests imports

5 years agoIn library code, replace from io import BytesIO (or StringIO) with import io
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

5 years agoremove obsolete entropy pool hash import logic
Bob Halley [Fri, 1 May 2020 19:13:35 +0000 (12:13 -0700)] 
remove obsolete entropy pool hash import logic

5 years agoMerge pull request #460 from bwelling/remove-future
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.

5 years agoMerge pull request #459 from dlenski/make_DOH_extra
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

5 years agoRemove "from __future__ import" statements. 460/head
Brian Wellington [Fri, 1 May 2020 18:31:23 +0000 (11:31 -0700)] 
Remove "from __future__ import" statements.

None of these are needed anymore.

5 years agotry to prevent extra run of 3.7 test possibly caused by comment
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

5 years agostart poetry and pyenv support
Bob Halley [Fri, 1 May 2020 15:32:57 +0000 (08:32 -0700)] 
start poetry and pyenv support

5 years agodo not import BytesIO into rdata namespace
Bob Halley [Fri, 1 May 2020 15:30:34 +0000 (08:30 -0700)] 
do not import BytesIO into rdata namespace

5 years agoignore duplicate name warning as it is not a bug
Bob Halley [Fri, 1 May 2020 15:29:46 +0000 (08:29 -0700)] 
ignore duplicate name warning as it is not a bug

5 years agoalso use skipUnless for tests that require IDNA2008 459/head
Daniel Lenski [Fri, 1 May 2020 00:31:48 +0000 (17:31 -0700)] 
also use skipUnless for tests that require IDNA2008

5 years agomake DOH an extra feature (to avoid requests as hard dependency)
Daniel Lenski [Fri, 1 May 2020 00:31:28 +0000 (17:31 -0700)] 
make DOH an extra feature (to avoid requests as hard dependency)

5 years agoMerge pull request #455 from bwelling/reverse
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.

5 years agoAdd alternate origin support to dns.reversename. 455/head
Brian Wellington [Wed, 29 Apr 2020 20:47:10 +0000 (13:47 -0700)] 
Add alternate origin support to dns.reversename.

5 years agoRemove redundant check.
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.

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

5 years agoMerge pull request #453 from bwelling/to-generic
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()

5 years agoAdd dns.rdata.Rdata.to_generic() 453/head
Brian Wellington [Tue, 21 Apr 2020 20:04:43 +0000 (13:04 -0700)] 
Add dns.rdata.Rdata.to_generic()

5 years agocryptography delint
Bob Halley [Wed, 8 Apr 2020 16:41:06 +0000 (09:41 -0700)] 
cryptography delint

5 years agoMerge pull request #449 from simo5/cryptography
Bob Halley [Wed, 8 Apr 2020 16:35:54 +0000 (09:35 -0700)] 
Merge pull request #449 from simo5/cryptography

Use python cryptography for DNSSEC

5 years agoUse python cryptography for DNSSEC 449/head
Simo Sorce [Tue, 7 Apr 2020 22:10:06 +0000 (18:10 -0400)] 
Use python cryptography for DNSSEC

Signed-off-by: Simo Sorce <simo@redhat.com>
5 years agoMerge pull request #445 from kimbo/kl/resolv-conf-options
Bob Halley [Sat, 4 Apr 2020 01:17:34 +0000 (18:17 -0700)] 
Merge pull request #445 from kimbo/kl/resolv-conf-options

additional resolv.conf options

5 years agoMention immutable rdata.
Brian Wellington [Fri, 3 Apr 2020 18:49:05 +0000 (11:49 -0700)] 
Mention immutable rdata.

5 years agoUse decorator syntax for properties.
Brian Wellington [Fri, 3 Apr 2020 18:07:07 +0000 (11:07 -0700)] 
Use decorator syntax for properties.

5 years agofix type specification errors
Bob Halley [Fri, 3 Apr 2020 17:29:43 +0000 (10:29 -0700)] 
fix type specification errors

5 years agoMerge pull request #444 from bwelling/optimize-set
Bob Halley [Fri, 3 Apr 2020 16:27:47 +0000 (09:27 -0700)] 
Merge pull request #444 from bwelling/optimize-set

Optimize set

5 years agoMerge pull request #443 from bwelling/rdata-replace
Bob Halley [Fri, 3 Apr 2020 16:27:15 +0000 (09:27 -0700)] 
Merge pull request #443 from bwelling/rdata-replace

Add dns.rdata.Rdata.replace()

5 years agotests for reading resolvconf options 445/head
kimbo [Fri, 3 Apr 2020 03:54:42 +0000 (21:54 -0600)] 
tests for reading resolvconf options

5 years agosupport for ndots, edns0, timeout resolv.conf opts
kimbo [Fri, 3 Apr 2020 03:53:34 +0000 (21:53 -0600)] 
support for ndots, edns0, timeout resolv.conf opts

5 years agoOptimize dns.set.Set. 444/head
Brian Wellington [Thu, 2 Apr 2020 21:14:54 +0000 (14:14 -0700)] 
Optimize dns.set.Set.

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.

5 years agoUse public dns.set.Set interface.
Brian Wellington [Thu, 2 Apr 2020 21:14:31 +0000 (14:14 -0700)] 
Use public dns.set.Set interface.

5 years agoUpdate Set tests.
Brian Wellington [Thu, 2 Apr 2020 19:54:29 +0000 (12:54 -0700)] 
Update Set tests.

Add tests to cover untested functionality, and update existing tests to
actually use the fact that these sets are ordered.

5 years agoAdd dns.rdata.Rdata.replace() 443/head
Brian Wellington [Thu, 2 Apr 2020 18:04:08 +0000 (11:04 -0700)] 
Add dns.rdata.Rdata.replace()

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.

5 years agoMerge pull request #442 from bwelling/rdata-loading
Bob Halley [Thu, 2 Apr 2020 17:40:32 +0000 (10:40 -0700)] 
Merge pull request #442 from bwelling/rdata-loading

Optimize get_rdata_class().

5 years agoFurther improve get_rdata_class(). 442/head
Brian Wellington [Thu, 2 Apr 2020 17:32:57 +0000 (10:32 -0700)] 
Further improve get_rdata_class().

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.

5 years agoOptimize get_rdata_class().
Brian Wellington [Thu, 2 Apr 2020 16:30:34 +0000 (09:30 -0700)] 
Optimize get_rdata_class().

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.

5 years agoMerge pull request #441 from bwelling/importlib
Bob Halley [Thu, 2 Apr 2020 16:17:20 +0000 (09:17 -0700)] 
Merge pull request #441 from bwelling/importlib

Use importlib.import_module.

5 years agopython 3.5 compatibility
Bob Halley [Thu, 2 Apr 2020 16:08:34 +0000 (09:08 -0700)] 
python 3.5 compatibility

5 years agoUse importlib.import_module. 441/head
Brian Wellington [Thu, 2 Apr 2020 16:06:21 +0000 (09:06 -0700)] 
Use importlib.import_module.

Replace the open-coded import_module() with the one in importlib.

5 years agotypes with properties should be get-only
Bob Halley [Thu, 2 Apr 2020 15:58:48 +0000 (08:58 -0700)] 
types with properties should be get-only

5 years agoimport needed stuff
Bob Halley [Thu, 2 Apr 2020 15:46:21 +0000 (08:46 -0700)] 
import needed stuff

5 years agomore delinting
Bob Halley [Thu, 2 Apr 2020 15:45:04 +0000 (08:45 -0700)] 
more delinting

5 years agodelint
Bob Halley [Thu, 2 Apr 2020 15:42:24 +0000 (08:42 -0700)] 
delint

5 years agodelint
Bob Halley [Thu, 2 Apr 2020 15:33:55 +0000 (08:33 -0700)] 
delint

5 years agofix tests broken by immutable rdata conversion (lists became tuples)
Bob Halley [Thu, 2 Apr 2020 15:33:45 +0000 (08:33 -0700)] 
fix tests broken by immutable rdata conversion (lists became tuples)

5 years agoadd reverse_query()
Bob Halley [Thu, 2 Apr 2020 15:16:39 +0000 (08:16 -0700)] 
add reverse_query()

5 years agoMerge pull request #438 from bwelling/improve-rdataset-repr
Bob Halley [Thu, 2 Apr 2020 15:12:36 +0000 (08:12 -0700)] 
Merge pull request #438 from bwelling/improve-rdataset-repr

Improve rdataset/rrset repr to include rdata.

5 years agoMerge pull request #434 from bwelling/immutable-rdata
Bob Halley [Thu, 2 Apr 2020 15:12:09 +0000 (08:12 -0700)] 
Merge pull request #434 from bwelling/immutable-rdata

Immutable rdata

5 years agoMerge pull request #437 from bwelling/remove-rdata-choose-relativity
Bob Halley [Thu, 2 Apr 2020 15:10:33 +0000 (08:10 -0700)] 
Merge pull request #437 from bwelling/remove-rdata-choose-relativity

Remove dns.rdata.choose_relativity().

5 years agoMerge pull request #413 from kimbo/kl/fix-xfr-fd-leak
Brian Wellington [Wed, 1 Apr 2020 20:16:05 +0000 (13:16 -0700)] 
Merge pull request #413 from kimbo/kl/fix-xfr-fd-leak

prevent fd from leaking (fix #351)

5 years agoImprove rdataset/rrset repr to include rdata. 438/head
Brian Wellington [Wed, 1 Apr 2020 19:49:21 +0000 (12:49 -0700)] 
Improve rdataset/rrset repr to include rdata.

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.

5 years agoRemove dns.rdata.choose_relativity(). 437/head
Brian Wellington [Tue, 31 Mar 2020 20:45:20 +0000 (13:45 -0700)] 
Remove dns.rdata.choose_relativity().

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.

5 years agoCheckpoint immutable rdata. 434/head
Brian Wellington [Tue, 31 Mar 2020 19:38:31 +0000 (12:38 -0700)] 
Checkpoint immutable rdata.

5 years agoMerge pull request #433 from fabian-hk/feature/nsec3-hash
Brian Wellington [Mon, 23 Mar 2020 19:13:20 +0000 (12:13 -0700)] 
Merge pull request #433 from fabian-hk/feature/nsec3-hash

NSEC3 hash

5 years agoNSEC3 hash implementation and tests 433/head
Fabian Hauck [Sat, 21 Mar 2020 13:56:27 +0000 (14:56 +0100)] 
NSEC3 hash implementation and tests

5 years agoMerge pull request #432 from bwelling/ds-sha384
Bob Halley [Fri, 20 Mar 2020 22:24:36 +0000 (15:24 -0700)] 
Merge pull request #432 from bwelling/ds-sha384

Add support for SHA-384 DS records.

5 years agoMerge pull request #431 from bwelling/zone-to-text
Bob Halley [Fri, 20 Mar 2020 22:18:37 +0000 (15:18 -0700)] 
Merge pull request #431 from bwelling/zone-to-text

zone.to_text() should return a string.

5 years agoMerge pull request #429 from bwelling/master
Bob Halley [Fri, 20 Mar 2020 22:18:04 +0000 (15:18 -0700)] 
Merge pull request #429 from bwelling/master

Add relativize_to to from_text().

5 years agoAdd support for SHA-384 DS records. 432/head
Brian Wellington [Fri, 20 Mar 2020 21:40:04 +0000 (14:40 -0700)] 
Add support for SHA-384 DS records.

5 years agozone.to_text() should return a string. 431/head
Brian Wellington [Fri, 20 Mar 2020 20:58:02 +0000 (13:58 -0700)] 
zone.to_text() should return a string.

As part of the Python 3 conversion, the result of dns.zone.to_text()
changed from str to bytes.  This was likely unintentional, as a method
with text in its name should be returning text.

5 years agoAdd relativize_to to from_text(). 429/head
Brian Wellington [Wed, 18 Mar 2020 23:44:09 +0000 (16:44 -0700)] 
Add relativize_to to from_text().

When calling from_text, the zone code needs to apply the current origin
(which may or may not be the zone origin, if sub-zone $ORIGIN statements
are present), and may also want to relativize the contents to the zone
origin.

Previously, this was done by explicitly reading records as absolute, and
then relativizing them laster.  With this change, the work is moved to
the tokenizer.

This gets rid of the remaining internal uses of
dns.rdata.choose_relativity(), which prevents rdata from being
immutable.

5 years agoMerge pull request #428 from bwelling/master
Bob Halley [Wed, 18 Mar 2020 22:28:45 +0000 (15:28 -0700)] 
Merge pull request #428 from bwelling/master

Remove choose_relativity() from zone.from_xfr()

5 years agoRemove choose_relativity() from zone.from_xfr() 428/head
Brian Wellington [Wed, 18 Mar 2020 21:56:58 +0000 (14:56 -0700)] 
Remove choose_relativity() from zone.from_xfr()

The comment states that relativize must be consistent between
dns.query.xfr() and dns.zone.from_xfr(), and the code fails if they're
not (if check_origin is True, at least).  This means that the rdata is
already correctly relativized (or not).

This also adds a test of creating zones from xfrs, both relativized and
not.

5 years agoMerge pull request #427 from bwelling/master
Brian Wellington [Wed, 18 Mar 2020 18:56:58 +0000 (11:56 -0700)] 
Merge pull request #427 from bwelling/master

Improve assertion checking.

5 years agoImprove assertion checking. 427/head
Brian Wellington [Wed, 18 Mar 2020 18:26:55 +0000 (11:26 -0700)] 
Improve assertion checking.

This replaces lots of self.assertTrue() assertions with more specific
assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).

5 years agoMerge pull request #426 from bwelling/master
Bob Halley [Wed, 18 Mar 2020 12:55:34 +0000 (05:55 -0700)] 
Merge pull request #426 from bwelling/master

Fix IPSECKEY relativity.

5 years agoFix IPSECKEY relativity. 426/head
Brian Wellington [Wed, 18 Mar 2020 06:22:56 +0000 (23:22 -0700)] 
Fix IPSECKEY relativity.

5 years agoMerge pull request #425 from bwelling/master
Tomas Krizek [Tue, 17 Mar 2020 11:02:08 +0000 (12:02 +0100)] 
Merge pull request #425 from bwelling/master

Set _have_ecpy=False if pycryptodome isn't found.

5 years agoSet _have_ecpy=False if pycryptodome isn't found. 425/head
Brian Wellington [Tue, 17 Mar 2020 00:42:49 +0000 (17:42 -0700)] 
Set _have_ecpy=False if pycryptodome isn't found.

5 years agoMerge pull request #424 from bwelling/master
Bob Halley [Wed, 11 Mar 2020 17:16:06 +0000 (10:16 -0700)] 
Merge pull request #424 from bwelling/master

Add support for EdDSA DNSSEC algorithms.

5 years agoCheck for Python 3.6 in tests. 424/head
Brian Wellington [Wed, 11 Mar 2020 17:01:01 +0000 (10:01 -0700)] 
Check for Python 3.6 in tests.

5 years agoRequire Python 3.6 for EdDSA.
Brian Wellington [Wed, 11 Mar 2020 16:51:57 +0000 (09:51 -0700)] 
Require Python 3.6 for EdDSA.

5 years agotypecheck lint
Bob Halley [Wed, 11 Mar 2020 16:39:33 +0000 (09:39 -0700)] 
typecheck lint

5 years agoAdd support for EdDSA DNSSEC algorithms.
Brian Wellington [Wed, 11 Mar 2020 16:31:22 +0000 (09:31 -0700)] 
Add support for EdDSA DNSSEC algorithms.

5 years agodelint
Bob Halley [Wed, 11 Mar 2020 16:31:15 +0000 (09:31 -0700)] 
delint

5 years agoMerge pull request #415 from Peter200lx/patch-1
Bob Halley [Wed, 11 Mar 2020 16:20:01 +0000 (09:20 -0700)] 
Merge pull request #415 from Peter200lx/patch-1

Correct Message.is_response docstring

5 years agoMerge pull request #422 from bwelling/master
Bob Halley [Wed, 11 Mar 2020 16:05:53 +0000 (09:05 -0700)] 
Merge pull request #422 from bwelling/master

Use PyCryptodome for ECDSA.

5 years agoUse PyCryptodome for ECDSA. 422/head
Brian Wellington [Tue, 10 Mar 2020 17:58:56 +0000 (10:58 -0700)] 
Use PyCryptodome for ECDSA.

5 years agoMerge pull request #421 from tomaskrizek/update-dnssec-algs
Bob Halley [Tue, 10 Mar 2020 15:57:15 +0000 (08:57 -0700)] 
Merge pull request #421 from tomaskrizek/update-dnssec-algs

dns/dnssec: add missing DNSSEC algorithms

5 years agoMerge pull request #419 from teward/reverse_query_bugfix
Bob Halley [Tue, 10 Mar 2020 13:32:06 +0000 (06:32 -0700)] 
Merge pull request #419 from teward/reverse_query_bugfix

reverse_query: BUGFIX - ipaddr, not address!

5 years agodns/dnssec: add missing DNSSEC algorithms 421/head
Tomas Krizek [Tue, 10 Mar 2020 11:30:32 +0000 (12:30 +0100)] 
dns/dnssec: add missing DNSSEC algorithms

Missing algorithms were added, but aren't supported for validation.

Fixes #417

5 years agodns/dnssec: remove unused function _make_algorithm_id()
Tomas Krizek [Tue, 10 Mar 2020 09:44:58 +0000 (10:44 +0100)] 
dns/dnssec: remove unused function _make_algorithm_id()

The function is no longer used since commit ce248fd

5 years agoreverse_query: BUGFIX - ipaddr, not address! 419/head
Thomas Ward [Tue, 10 Mar 2020 01:29:38 +0000 (21:29 -0400)] 
reverse_query: BUGFIX - ipaddr, not address!

I made a mistake in the pull req and didn't catch it (OOPS!).

`dns.reversename.from_address(address)` is what was in the code.  Unfortunately, that causes a nice, fat `NameError: name 'address' is not defined` error.  This fixes that.

5 years agoMerge pull request #418 from teward/reverse_lookup
Bob Halley [Mon, 9 Mar 2020 23:00:23 +0000 (16:00 -0700)] 
Merge pull request #418 from teward/reverse_lookup

Add a reverse_lookup function to Resolver.

5 years agoDocstring, naming, args/kwargs for reverse_query 418/head
Thomas Ward [Mon, 9 Mar 2020 21:37:11 +0000 (17:37 -0400)] 
Docstring, naming, args/kwargs for reverse_query

5 years agoDocstrings: Update reverse_lookup docstrings
Thomas Ward [Mon, 9 Mar 2020 21:01:00 +0000 (17:01 -0400)] 
Docstrings: Update reverse_lookup docstrings

Pull docstring bits from the query function that are relevant for reverse_lookup as we're now pulling the query function's arguments in (except for rdtype and rdclass) as arguments that can be accepted.

5 years agoUse dns.reversename, extend reverse_lookup args
Thomas Ward [Mon, 9 Mar 2020 20:58:11 +0000 (16:58 -0400)] 
Use dns.reversename, extend reverse_lookup args

Use inbuilt dns.reversename.  Extend the self.query argument bits into the reverse_lookup (tcp, source, raise_on_no_answer, source_port, lifetime), and force-define the rdtype and rdclass.

5 years agoAdd a reverse_lookup function to Resolver.
Thomas Ward [Mon, 9 Mar 2020 20:14:55 +0000 (16:14 -0400)] 
Add a reverse_lookup function to Resolver.

Utilize the inbuilt ipaddress library and in-built resolver query libraries to provide a reverse_lookup function.  This could make it easier for users to set up their own Resolver instances which continue to behave as stub resolvers but also more easily make PTR record lookups, which would be able to be used as a direct result.

This had been written by me as an extension of the Resolver class in my own private class (called DNSResolver, which I only use internally on a few private applications) which extended the init file to define the nameservers if not specified (default: google DNS) and then extended to add the reverse_lookup function call as well.

Feel free to reject if it doesn't make sense, but it would be a nifty function to have (because `dig` for instance has a `-x` flag you can pass which accepts an IP address and will auto-reverse it to get the in-addr.arpa lookup result from nameservers, whether they're stub resolvers or not, which is a nifty function to have here.)

5 years agoCorrect Message.is_response docstring 415/head
Peter Olson [Sat, 29 Feb 2020 20:32:37 +0000 (12:32 -0800)] 
Correct Message.is_response docstring

When testing responses, I discovered that the docstring for Message.is_response had the
comparison backwards, specifically in how the `QR` flag is checked. The documentation
was incorrectly updated in fc7db7da4284eedaa951e6acc34e6e6f94da1c64

5 years agoMerge pull request #412 from turtlemonvh/exception-handling-communicate-missing-ecdsa-lib
Bob Halley [Thu, 27 Feb 2020 18:12:10 +0000 (10:12 -0800)] 
Merge pull request #412 from turtlemonvh/exception-handling-communicate-missing-ecdsa-lib

Raise import error on missing dependency for edcsa lib

5 years agoprevent fd from leaking (fix #351) 413/head
kimbo [Wed, 26 Feb 2020 11:05:12 +0000 (04:05 -0700)] 
prevent fd from leaking (fix #351)

5 years agoRaises import error that doesn't get swallowed on missing dependency for edcsa valida... 412/head
timothy [Mon, 24 Feb 2020 23:46:52 +0000 (18:46 -0500)] 
Raises import error that doesn't get swallowed on missing dependency for edcsa validation.
Changes NotImplementedError to ImportError.

5 years agoMerge pull request #410 from hellocoldworld/patch-1
Brian Wellington [Wed, 12 Feb 2020 02:20:16 +0000 (18:20 -0800)] 
Merge pull request #410 from hellocoldworld/patch-1

fix spelling

5 years agofix spelling 410/head
hellocoldworld [Tue, 11 Feb 2020 16:01:55 +0000 (13:01 -0300)] 
fix spelling