]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
5 years agosend_https() and test for it 405/head
kimbo [Mon, 30 Dec 2019 23:22:51 +0000 (16:22 -0700)] 
send_https() and test for it

5 years agoexample for DNS over HTTPS
kimbo [Mon, 30 Dec 2019 22:57:39 +0000 (15:57 -0700)] 
example for DNS over HTTPS

5 years agotypo
kimbo [Mon, 30 Dec 2019 22:53:14 +0000 (15:53 -0700)] 
typo

5 years agoadded bootstrap address option to https()
kimbo [Mon, 30 Dec 2019 22:34:46 +0000 (15:34 -0700)] 
added bootstrap address option to https()

5 years agoremove comment and session.close()
kimbo [Mon, 30 Dec 2019 21:07:01 +0000 (14:07 -0700)] 
remove comment and session.close()

5 years agoreq'd session param to https() for connection reuse
kimbo [Mon, 30 Dec 2019 21:02:33 +0000 (14:02 -0700)] 
req'd session param to https() for connection reuse

5 years agoremoved af param from dns.query.https()
kimbo [Tue, 24 Dec 2019 15:05:34 +0000 (08:05 -0700)] 
removed af param from dns.query.https()

not supporting setting address family for DoH until there is a better
way to do it with the requests api.

5 years agoreset allowed_gai_family after every https() call
kimbo [Tue, 24 Dec 2019 13:59:00 +0000 (06:59 -0700)] 
reset allowed_gai_family after every https() call

5 years agoimport urllib3 directly, not from requests.packages
kimbo [Tue, 24 Dec 2019 13:23:00 +0000 (06:23 -0700)] 
import urllib3 directly, not from requests.packages

5 years agoadd requests and requests-toolbelt to travis
kimbo [Mon, 23 Dec 2019 22:12:52 +0000 (15:12 -0700)] 
add requests and requests-toolbelt to travis

5 years agoforgot to remove a couple lines
kimbo [Mon, 23 Dec 2019 21:24:56 +0000 (14:24 -0700)] 
forgot to remove a couple lines

5 years agoupdated type hints for dns.query.https
kimbo [Mon, 23 Dec 2019 21:13:55 +0000 (14:13 -0700)] 
updated type hints for dns.query.https

5 years agocleaned up query.py and test_doh
kimbo [Mon, 23 Dec 2019 21:09:11 +0000 (14:09 -0700)] 
cleaned up query.py and test_doh

5 years agoadded requests and requests-toolbelt deps
kimbo [Sat, 21 Dec 2019 05:06:59 +0000 (22:06 -0700)] 
added requests and requests-toolbelt deps

5 years agoadded support for source port/address, af
kimbo [Sat, 21 Dec 2019 05:05:40 +0000 (22:05 -0700)] 
added support for source port/address, af

6 years agoimprovements to dns.query.https
kimbo [Fri, 20 Dec 2019 00:25:27 +0000 (17:25 -0700)] 
improvements to dns.query.https

- use requests module (instead of urllib)
- added option to pass in an IP address or a URL
- added basic tests (for dns.query.https)

TODO: af, source_port

6 years agoMerge pull request #393 from filips123/dns-over-https
Bob Halley [Fri, 13 Dec 2019 17:55:14 +0000 (09:55 -0800)] 
Merge pull request #393 from filips123/dns-over-https

Add support for DNS over HTTPS

6 years agoMerge pull request #397 from tacaswell/py_future
Bob Halley [Thu, 31 Oct 2019 13:44:08 +0000 (06:44 -0700)] 
Merge pull request #397 from tacaswell/py_future

Remove deprecation warnings

6 years agoCI: add py37 and py38 to test matrix 397/head
Thomas A Caswell [Thu, 31 Oct 2019 00:09:14 +0000 (20:09 -0400)] 
CI: add py37 and py38 to test matrix

6 years agoMNT: use raw string for invalid escape sequence
Thomas A Caswell [Thu, 31 Oct 2019 00:00:24 +0000 (20:00 -0400)] 
MNT: use raw string for invalid escape sequence

6 years agoTST: fix failif -> assertFalse deprecation
Thomas A Caswell [Wed, 30 Oct 2019 23:59:13 +0000 (19:59 -0400)] 
TST: fix failif -> assertFalse deprecation

failIf was deprecated in py31

6 years agoTST: fix failUnlessRaises -> assertRaises deprecation
Thomas A Caswell [Wed, 30 Oct 2019 23:57:57 +0000 (19:57 -0400)] 
TST: fix failUnlessRaises -> assertRaises deprecation

failUnlessRaises was deprecated in py31

6 years agoTST: fix unittest deprecation
Thomas A Caswell [Wed, 30 Oct 2019 23:53:38 +0000 (19:53 -0400)] 
TST: fix unittest deprecation

failUnless was deprecated in py31

6 years agoMNT: use raw string literals for invalid escapes
Thomas A Caswell [Wed, 30 Oct 2019 23:50:52 +0000 (19:50 -0400)] 
MNT: use raw string literals for invalid escapes

6 years agoMNT: do not import ABC directly from collections
Thomas A Caswell [Wed, 30 Oct 2019 23:50:38 +0000 (19:50 -0400)] 
MNT: do not import ABC directly from collections

6 years agoRemove duplicate message import 393/head
Filip Š [Tue, 29 Oct 2019 20:38:45 +0000 (21:38 +0100)] 
Remove duplicate message import

6 years agoAdd missing comma
Filip Š [Tue, 29 Oct 2019 20:33:14 +0000 (21:33 +0100)] 
Add missing comma

6 years agoHandle other parameters
Filip Š [Tue, 29 Oct 2019 20:30:03 +0000 (21:30 +0100)] 
Handle other parameters

6 years agoIgnore URLs other than HTTPS
Filip Š [Tue, 29 Oct 2019 19:57:54 +0000 (20:57 +0100)] 
Ignore URLs other than HTTPS

6 years agoRename `doh` method to `https`
Filip Š [Tue, 29 Oct 2019 19:47:12 +0000 (20:47 +0100)] 
Rename `doh` method to `https`

6 years agoMerge branch 'master' of https://github.com/rthalley/dnspython into dns-over-https
Filip Š [Tue, 29 Oct 2019 19:44:53 +0000 (20:44 +0100)] 
Merge branch 'master' of https://github.com/rthalley/dnspython into dns-over-https

6 years agoMerge pull request #396 from kimbo/kl/tls-typehints
Bob Halley [Tue, 29 Oct 2019 19:13:30 +0000 (12:13 -0700)] 
Merge pull request #396 from kimbo/kl/tls-typehints

typehints for dns.query.tls, pretty up typehints

6 years agotypehints for dns.query.tls, pretty up typehints 396/head
kimballo [Tue, 29 Oct 2019 19:02:31 +0000 (13:02 -0600)] 
typehints for dns.query.tls, pretty up typehints

6 years agoMerge pull request #394 from kimbo/kl/ecs-__str__
Bob Halley [Wed, 23 Oct 2019 14:47:34 +0000 (07:47 -0700)] 
Merge pull request #394 from kimbo/kl/ecs-__str__

added ecs __str__ function

6 years agoMerge pull request #395 from kimbo/kl/ecs-from-text
Bob Halley [Wed, 23 Oct 2019 14:46:57 +0000 (07:46 -0700)] 
Merge pull request #395 from kimbo/kl/ecs-from-text

Add ecs `from_text()` method

6 years agoCope with ssl module unavailablity using [Issue #392] method.
Bob Halley [Wed, 23 Oct 2019 14:44:03 +0000 (07:44 -0700)] 
Cope with ssl module unavailablity using [Issue #392] method.

6 years agoMerge pull request #392 from bwelling/master
Bob Halley [Wed, 23 Oct 2019 14:38:26 +0000 (07:38 -0700)] 
Merge pull request #392 from bwelling/master

Add support for DNS over TLS

6 years agoSupport for DoH GET method
Filip Š [Fri, 4 Oct 2019 19:38:08 +0000 (21:38 +0200)] 
Support for DoH GET method

6 years agoadded __str__ for GenericOption 394/head
kimbo [Fri, 4 Oct 2019 11:18:51 +0000 (05:18 -0600)] 
added __str__ for GenericOption

6 years agofix python 3.5 format string 395/head
kimballo [Thu, 3 Oct 2019 23:01:46 +0000 (17:01 -0600)] 
fix python 3.5 format string

6 years agoadded ecs __str__ function
kimballo [Thu, 3 Oct 2019 19:04:28 +0000 (13:04 -0600)] 
added ecs __str__ function

6 years agoadded tests for dns.edns.ECSOption.from_text()
kimballo [Thu, 3 Oct 2019 19:02:21 +0000 (13:02 -0600)] 
added tests for dns.edns.ECSOption.from_text()

6 years agoadded dns.edns.ECSOption.from_text()
kimballo [Thu, 3 Oct 2019 19:02:09 +0000 (13:02 -0600)] 
added dns.edns.ECSOption.from_text()

6 years agoMerge pull request #363 from tmerila/patch-1
Bob Halley [Tue, 1 Oct 2019 18:14:28 +0000 (11:14 -0700)] 
Merge pull request #363 from tmerila/patch-1

Getting the value for default TTL from SOA RDATA before checking the TTL of the record

6 years agoMerge branch 'master' of https://github.com/rthalley/dnspython into dns-over-https
Filip Š [Mon, 30 Sep 2019 20:39:35 +0000 (22:39 +0200)] 
Merge branch 'master' of https://github.com/rthalley/dnspython into dns-over-https

6 years agoAdd server_hostname to dns.query.tls() 392/head
Brian Wellington [Mon, 30 Sep 2019 19:39:18 +0000 (12:39 -0700)] 
Add server_hostname to dns.query.tls()

6 years agoClients should pass SERVER_AUTH.
Brian Wellington [Mon, 30 Sep 2019 18:56:27 +0000 (11:56 -0700)] 
Clients should pass SERVER_AUTH.

6 years agoAdd support for DoT (DNS over TLS)
Brian Wellington [Mon, 30 Sep 2019 18:51:16 +0000 (11:51 -0700)] 
Add support for DoT (DNS over TLS)

6 years agoMerge pull request #391 from kimbo/nameserver-queried
Bob Halley [Sun, 29 Sep 2019 21:51:13 +0000 (14:51 -0700)] 
Merge pull request #391 from kimbo/nameserver-queried

added nameserver and port to Answer (wip #384)

6 years agomy patience has run out; I will lint and typecheck manually for now
Bob Halley [Sun, 29 Sep 2019 21:21:44 +0000 (14:21 -0700)] 
my patience has run out; I will lint and typecheck manually for now

6 years agocontinue struggling with travis bitrot
Bob Halley [Sun, 29 Sep 2019 21:17:50 +0000 (14:17 -0700)] 
continue struggling with travis bitrot

6 years agomore travis flailing
Bob Halley [Sun, 29 Sep 2019 21:14:23 +0000 (14:14 -0700)] 
more travis flailing

6 years agomore dep hackery for linting
Bob Halley [Sun, 29 Sep 2019 21:09:53 +0000 (14:09 -0700)] 
more dep hackery for linting

6 years agotemporarily disable typechecking due to version skew in dependencies
Bob Halley [Sun, 29 Sep 2019 21:03:41 +0000 (14:03 -0700)] 
temporarily disable typechecking due to version skew in dependencies

6 years agoMerge pull request #379 from ianamason/master
Bob Halley [Sun, 29 Sep 2019 20:41:58 +0000 (13:41 -0700)] 
Merge pull request #379 from ianamason/master

Update README.md

6 years agoWhen doing xfr, do not compare with expiration if it is None.
Bob Halley [Sun, 29 Sep 2019 20:39:41 +0000 (13:39 -0700)] 
When doing xfr, do not compare with expiration if it is None.
[Issue #390]

6 years agoMerge pull request #389 from bwelling/master
Bob Halley [Sun, 29 Sep 2019 20:32:57 +0000 (13:32 -0700)] 
Merge pull request #389 from bwelling/master

Improve TCP connect behavior.

6 years agoAdd support for DoH
Filip Š [Sat, 28 Sep 2019 15:43:48 +0000 (17:43 +0200)] 
Add support for DoH

6 years agoImprove TCP connect behavior. 389/head
Brian Wellington [Fri, 30 Aug 2019 18:42:12 +0000 (11:42 -0700)] 
Improve TCP connect behavior.

Before this change, the _connect() method would start the connection
process, but not wait for it to complete.  This would leave the socket
in an indeterminate state until some other code checked for writability,
and would lose the error code if the connect failed.

This changes _connect() to wait for the connection to complete, and
raises and exception with the appropriate error code if it fails.

6 years agoadded nameserver and port to Answer (wip #384) 391/head
kimbo [Fri, 16 Aug 2019 02:58:27 +0000 (22:58 -0400)] 
added nameserver and port to Answer (wip #384)

6 years agoMerge pull request #385 from kimbo/alternate-dot-root-names
Bob Halley [Sun, 28 Jul 2019 13:39:31 +0000 (06:39 -0700)] 
Merge pull request #385 from kimbo/alternate-dot-root-names

Alternate dot root names

6 years agotests for alternate dots for root in dns.name.from_unicode 385/head
kimbo [Sat, 27 Jul 2019 03:24:56 +0000 (23:24 -0400)] 
tests for alternate dots for root in dns.name.from_unicode

6 years agoallow alternate dots for root in dns.name.from_unicode
kimbo [Sat, 27 Jul 2019 03:23:55 +0000 (23:23 -0400)] 
allow alternate dots for root in dns.name.from_unicode

6 years agoMerge pull request #383 from kimbo/lifetime-doc-fix
Tomas Krizek [Thu, 25 Jul 2019 08:25:29 +0000 (10:25 +0200)] 
Merge pull request #383 from kimbo/lifetime-doc-fix

specify seconds as unit for lifetime in dns.resolver.Resolver.query()

6 years agospecify seconds for lifetime in Resolver.query() 383/head
kimbo [Thu, 25 Jul 2019 00:11:00 +0000 (20:11 -0400)] 
specify seconds for lifetime in Resolver.query()

6 years agoMerge pull request #382 from singingwolfboy/resolver-stub-exceptions
Bob Halley [Fri, 12 Jul 2019 17:17:42 +0000 (10:17 -0700)] 
Merge pull request #382 from singingwolfboy/resolver-stub-exceptions

Add exceptions to resolver.pyi

6 years agoAdd exceptions to resolver.pyi 382/head
David Baumgold [Fri, 12 Jul 2019 14:57:28 +0000 (16:57 +0200)] 
Add exceptions to resolver.pyi

6 years agoUpdate README.md 379/head
Ian A Mason [Fri, 28 Jun 2019 13:29:45 +0000 (06:29 -0700)] 
Update README.md

Can never have too many badges.

6 years agoThe EDNS0 client-subnet code didn't work correctly for addresses that
Bob Halley [Fri, 3 May 2019 15:17:54 +0000 (08:17 -0700)] 
The EDNS0 client-subnet code didn't work correctly for addresses that
were not a multiple of 8 bits.

Instead of preserving the required number of high-order bits, it
cleared that number of low-order bits.  Thanks to Brian Wellington for
discovering this and providing the correct code.

6 years agoget rid of python 3.4 as mypy does not support typechecking on it any more
Bob Halley [Tue, 9 Apr 2019 00:51:34 +0000 (17:51 -0700)] 
get rid of python 3.4 as mypy does not support typechecking on it any more

6 years agoParse decimal integer time in RRSIG records.
Bob Halley [Tue, 9 Apr 2019 00:41:27 +0000 (17:41 -0700)] 
Parse decimal integer time in RRSIG records.

Patch by Brian Wellington (thanks!)
[Issue #364]

6 years agoUpdate zone.py 363/head
tmerila [Wed, 3 Apr 2019 11:38:25 +0000 (14:38 +0300)] 
Update zone.py

Check for self.last_ttl_known before setting ttl = self.last_ttl so it will remain None instead of 0 if value is not known.

6 years agoUpdate zone.py
tmerila [Wed, 3 Apr 2019 11:28:22 +0000 (14:28 +0300)] 
Update zone.py

Need to also check that last TTL is known before using it as a fallback, otherwise ttl is never None in the last check, setting it incorrectly to 0 instead.

6 years agoUpdate zone.py
tmerila [Wed, 3 Apr 2019 11:12:23 +0000 (14:12 +0300)] 
Update zone.py

Instead of moving the entire TTL parsing past the rdata handling (causing the RR to be parsed on the wrong way), returned the parsing to its original location, and only moved the final failure code past the rdata handling.

6 years agoUpdate zone.py
tmerila [Wed, 3 Apr 2019 10:57:15 +0000 (13:57 +0300)] 
Update zone.py

By doing the TTL validity check after parsing the record data allows the TTL to be set properly from SOA RDATA even when the SOA record itself does not have TTL set.

6 years agoDefine __version__ in the __init__ module.
Bob Halley [Tue, 2 Apr 2019 18:43:11 +0000 (11:43 -0700)] 
Define __version__ in the __init__ module.
[Issue #361]

6 years agoMerge pull request #357 from DNS-Leo/master
Bob Halley [Mon, 18 Mar 2019 18:38:41 +0000 (11:38 -0700)] 
Merge pull request #357 from DNS-Leo/master

NINFO record

6 years agoCreate NINFO.py 357/head
DNS-Leo [Mon, 18 Mar 2019 17:43:36 +0000 (18:43 +0100)] 
Create NINFO.py

Added NINFO record - assigned as type 56 by IANA
See:
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4
https://www.iana.org/assignments/dns-parameters/NINFO/ninfo-completed-template
https://tools.ietf.org/html/draft-reid-dnsext-zs-01

6 years agoUpdate rdatatype.py
DNS-Leo [Mon, 18 Mar 2019 17:36:36 +0000 (18:36 +0100)] 
Update rdatatype.py

Added NINFO (identical to TXT), assigned as type 56 by IANA.
See:
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4
https://www.iana.org/assignments/dns-parameters/NINFO/ninfo-completed-template
https://tools.ietf.org/html/draft-reid-dnsext-zs-01

6 years agoHandle the case where the NOTIFY has no answer SOA RR.
Bob Halley [Mon, 18 Mar 2019 15:28:57 +0000 (08:28 -0700)] 
Handle the case where the NOTIFY has no answer SOA RR.

6 years ago$GENERATE was not padding correctly given a pattern like ${0,3} it was
Bob Halley [Thu, 21 Feb 2019 14:33:00 +0000 (06:33 -0800)] 
$GENERATE was not padding correctly given a pattern like ${0,3} it was
using the index field (0) as the padding width, instead of the correct value
3.

6 years agoMerge pull request #353 from sigmunau/master
Bob Halley [Thu, 21 Feb 2019 14:29:44 +0000 (06:29 -0800)] 
Merge pull request #353 from sigmunau/master

Fix exception when parsing certain generate statements

6 years agoFix exception when parsing certain generate statements 353/head
Sigmund Augdal [Thu, 21 Feb 2019 11:39:34 +0000 (12:39 +0100)] 
Fix exception when parsing certain generate statements

6 years agoMerge pull request #346 from tomaskrizek/dnssec-make-ds
Bob Halley [Sat, 12 Jan 2019 17:29:41 +0000 (09:29 -0800)] 
Merge pull request #346 from tomaskrizek/dnssec-make-ds

dnssec: use hashlib in make_ds()

6 years agoThe copyright edit moved the shebang to the wrong spot; fix!
Bob Halley [Tue, 8 Jan 2019 16:18:55 +0000 (08:18 -0800)] 
The copyright edit moved the shebang to the wrong spot; fix!

6 years agoremove the rest of the unicode string prefixes
Bob Halley [Tue, 8 Jan 2019 15:03:46 +0000 (07:03 -0800)] 
remove the rest of the unicode string prefixes

6 years agoWhen dealing with an IDNA 2003 non-punycode label, escapify it before unicode
Bob Halley [Mon, 7 Jan 2019 15:35:39 +0000 (07:35 -0800)] 
When dealing with an IDNA 2003 non-punycode label, escapify it before unicode
conversion.  This ensures that labels with codepoints that need escaping
get it, as opposed to raising an exception because we tried to interpret a
non-UTF-8 sequence as UTF-8.

6 years agoIf there are no non-ASCII codepoints in the input, treat the name as
Bob Halley [Sun, 6 Jan 2019 21:22:25 +0000 (13:22 -0800)] 
If there are no non-ASCII codepoints in the input, treat the name as
an ordinary domain name in from_text and do NOT apply any IDNA.

This makes non-Unicode binary names like
\150\151\152\153\154\155\156\157\158\159. work properly again.
[Issue #270]

6 years agoUnicode label escapify was not escapifying special characters.
Bob Halley [Sun, 6 Jan 2019 01:36:49 +0000 (17:36 -0800)] 
Unicode label escapify was not escapifying special characters.
[Issue #339]

This commit also simplifies code and changes u'string' to 'string'.

6 years agoRender type 0 in text as "TYPE0" not "NONE". [Issue #326]
Bob Halley [Sat, 5 Jan 2019 19:18:40 +0000 (11:18 -0800)] 
Render type 0 in text as "TYPE0" not "NONE".  [Issue #326]

6 years agodns.message.from_wire() now sets message.original_id sensibly.
Bob Halley [Sat, 5 Jan 2019 19:08:23 +0000 (11:08 -0800)] 
dns.message.from_wire() now sets message.original_id sensibly.
[Issue #278]

6 years agoFor _getaddrinfo(), if AI_ADDRCONFIG or AI_V4MAPPED are specified, raise
Bob Halley [Sat, 5 Jan 2019 18:58:15 +0000 (10:58 -0800)] 
For _getaddrinfo(), if AI_ADDRCONFIG or AI_V4MAPPED are specified, raise
socket.gaierror(socket.EAI_SYSTEM) instead of NotImplementedError, as higher
level software will cope better.  [Issue #316]

6 years agoWhen decoding from wire format, if a message has TC set, raise a Truncated
Bob Halley [Sat, 5 Jan 2019 18:38:32 +0000 (10:38 -0800)] 
When decoding from wire format, if a message has TC set, raise a Truncated
exception.  [Issue #297]

6 years agoremove bytearray() wrapping used for python 2 compatibility
Bob Halley [Sat, 5 Jan 2019 18:07:02 +0000 (10:07 -0800)] 
remove bytearray() wrapping used for python 2 compatibility

6 years agoignore mypy cache
Bob Halley [Sat, 5 Jan 2019 18:06:23 +0000 (10:06 -0800)] 
ignore mypy cache

6 years agoUse base64.decodebytes() and base64.encodebytes(). [Issue #338]
Bob Halley [Sat, 5 Jan 2019 15:09:28 +0000 (07:09 -0800)] 
Use base64.decodebytes() and base64.encodebytes().  [Issue #338]

This commit also adds test coverage for tsigkeyring, and fixes to_text()
on python 3, which had never worked properly due to an extra .decode().

6 years agoIf reading /etc/resolv.conf fails, or finds no servers, raise NoResolverConfiguration
Bob Halley [Sat, 5 Jan 2019 14:46:29 +0000 (06:46 -0800)] 
If reading /etc/resolv.conf fails, or finds no servers, raise NoResolverConfiguration
[Issue #332]

6 years agoMerge pull request #348 from tomaskrizek/remove-hash-module
Bob Halley [Wed, 2 Jan 2019 16:30:08 +0000 (08:30 -0800)] 
Merge pull request #348 from tomaskrizek/remove-hash-module

dnssec/hash: remove obsolete module

6 years agodnssec/hash: remove obsolete module 348/head
Tomas Krizek [Wed, 2 Jan 2019 14:34:30 +0000 (15:34 +0100)] 
dnssec/hash: remove obsolete module

6 years agoMerge pull request #347 from tomaskrizek/fix-setup
Tomas Krizek [Wed, 2 Jan 2019 14:34:01 +0000 (15:34 +0100)] 
Merge pull request #347 from tomaskrizek/fix-setup

Fix missing test dependency for python 2.7 / 3.4