| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | add resolve_address() helper at module levelresrefactor | Bob Halley | 2020-05-19 | 1 | -0/+10 |
| | | |||||
| * | linting | Bob Halley | 2020-05-19 | 1 | -0/+12 |
| | | |||||
| * | refactor resolver, extracting all business logic | Bob Halley | 2020-05-18 | 1 | -166/+197 |
| | | |||||
| * | flake8 linting | Bob Halley | 2020-05-15 | 1 | -17/+20 |
| | | |||||
| * | Allow resolver-level control over the defaulting of search (default False). | Bob Halley | 2020-05-15 | 1 | -30/+18 |
| | | |||||
| * | Add resolver resolve(), deprecate query(). | Bob Halley | 2020-05-15 | 1 | -34/+81 |
| | | |||||
| * | Reharmonize doc style as I think it looks better | Bob Halley | 2020-05-10 | 1 | -2/+4 |
| | | |||||
| * | in doco, text->str, binary->bytes | Bob Halley | 2020-05-08 | 1 | -7/+7 |
| | | |||||
| * | Fix [Issue #416], EAI_SYSTEM not defined on Windows. | Bob Halley | 2020-05-04 | 1 | -2/+10 |
| | | |||||
| * | Grealy simplify our getaddrinfo() implementation by calling the | Bob Halley | 2020-05-04 | 1 | -48/+41 |
| | | | | | | | 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. | ||||
| * | more things to make mypy happier | Bob Halley | 2020-05-03 | 1 | -4/+4 |
| | | |||||
| * | Use context managers to simplify code. | Brian Wellington | 2020-05-01 | 1 | -37/+15 |
| | | | | | | | | | 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. | ||||
| * | Merge pull request #445 from kimbo/kl/resolv-conf-options | Bob Halley | 2020-04-03 | 1 | -5/+32 |
| |\ | | | | | additional resolv.conf options | ||||
| | * | support for ndots, edns0, timeout resolv.conf opts | kimbo | 2020-04-02 | 1 | -5/+32 |
| | | | |||||
| * | | Use decorator syntax for properties. | Brian Wellington | 2020-04-03 | 1 | -2/+2 |
| | | | |||||
| * | | Use public dns.set.Set interface. | Brian Wellington | 2020-04-02 | 1 | -1/+1 |
| |/ | |||||
| * | delint | Bob Halley | 2020-03-11 | 1 | -7/+7 |
| | | |||||
| * | reverse_query: BUGFIX - ipaddr, not address! | Thomas Ward | 2020-03-09 | 1 | -1/+1 |
| | | | | | | 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. | ||||
| * | Docstring, naming, args/kwargs for reverse_query | Thomas Ward | 2020-03-09 | 1 | -22/+7 |
| | | |||||
| * | Docstrings: Update reverse_lookup docstrings | Thomas Ward | 2020-03-09 | 1 | -0/+12 |
| | | | | 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. | ||||
| * | Use dns.reversename, extend reverse_lookup args | Thomas Ward | 2020-03-09 | 1 | -17/+11 |
| | | | | 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. | ||||
| * | Add a reverse_lookup function to Resolver. | Thomas Ward | 2020-03-09 | 1 | -0/+26 |
| | | | | | | | | 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.) | ||||
| * | DoH cleanup. | Brian Wellington | 2020-01-07 | 1 | -7/+14 |
| | | |||||
| * | only allow Resolver.nameservers to be a list | kimbo | 2020-01-06 | 1 | -11/+5 |
| | | |||||
| * | make sure Resolver.nameservers is a list or str | kimbo | 2019-12-26 | 1 | -0/+21 |
| | | | | | | validate if assignment of Resolver.nameservers is a list, a str (in which case it will be converted to a list), or None | ||||
| * | Handle other parameters | Filip Š | 2019-10-29 | 1 | -1/+1 |
| | | |||||
| * | Ignore URLs other than HTTPS | Filip Š | 2019-10-29 | 1 | -0/+2 |
| | | |||||
| * | Rename `doh` method to `https` | Filip Š | 2019-10-29 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'master' of https://github.com/rthalley/dnspython into ↵ | Filip Š | 2019-09-30 | 1 | -2/+11 |
| |\ | | | | | | | dns-over-https | ||||
| | * | added nameserver and port to Answer (wip #384) | kimbo | 2019-08-15 | 1 | -2/+11 |
| | | | |||||
| * | | Add support for DoH | Filip Š | 2019-09-28 | 1 | -19/+25 |
| |/ | |||||
| * | specify seconds for lifetime in Resolver.query() | kimbo | 2019-07-24 | 1 | -1/+1 |
| | | |||||
| * | For _getaddrinfo(), if AI_ADDRCONFIG or AI_V4MAPPED are specified, raise | Bob Halley | 2019-01-05 | 1 | -1/+4 |
| | | | | | | socket.gaierror(socket.EAI_SYSTEM) instead of NotImplementedError, as higher level software will cope better. [Issue #316] | ||||
| * | When decoding from wire format, if a message has TC set, raise a Truncated | Bob Halley | 2019-01-05 | 1 | -5/+7 |
| | | | | | exception. [Issue #297] | ||||
| * | If reading /etc/resolv.conf fails, or finds no servers, raise ↵ | Bob Halley | 2019-01-05 | 1 | -4/+4 |
| | | | | | | | NoResolverConfiguration [Issue #332] | ||||
| * | Remove _compat module. | Bob Halley | 2018-12-09 | 1 | -8/+6 |
| | | |||||
| * | update copyright | Bob Halley | 2018-12-01 | 1 | -0/+2 |
| | | |||||
| * | Upgrade Python syntax with pyupgrade https://github.com/asottile/pyupgrade | Hugo | 2018-09-06 | 1 | -5/+5 |
| | | |||||
| * | Merge pull request #258 from shatil/resolver-query-lifetime-timeout | Bob Halley | 2018-07-17 | 1 | -9/+14 |
| |\ | | | | | lifetime (timeout) support for dns.resolver.query | ||||
| | * | lifetime (timeout) support for dns.resolver.query | Shatil Rafiullah | 2017-06-04 | 1 | -9/+14 |
| | | | | | | | | | | | | | | | | | | | | | Introduces `lifetime` param to `dns.resolver.query`, allowing user to specify a timeout for querying DNS resolvers instead of being stuck on the hardcoded default. This doesn't modify the `Resolver` _instance_ itself, so subsequent calls to it, without specifying `lifetime` as a param, will honor the default value configured in `reset` (see `self.lifetime =`). | ||||
| * | | Merge pull request #300 from jamadden/dont-bare-except | Bob Halley | 2018-07-17 | 1 | -1/+1 |
| |\ \ | | | | | | | Don't use a bare except: in resolver._getaddrinfo | ||||
| | * | | Don't use a bare except: | Jason Madden | 2018-01-31 | 1 | -1/+1 |
| | |/ | | | | | | | | | | | This catches things like KeyboardInterrupt and SystemExit that shouldn't be caught here. Under gevent, it breaks Timeout handling. | ||||
| * | | The NXDOMAIN exception should not use its docstring. | Bob Halley | 2018-02-20 | 1 | -1/+1 |
| |/ | | | | [Issue #253] | ||||
| * | Always look at Windows global Domain parameter. | Bob Halley | 2017-02-19 | 1 | -3/+4 |
| | | | | | [Issue #240] | ||||
| * | Add helper methods to dns.resolver.NXDOMAIN to make retrieving | Bob Halley | 2017-01-28 | 1 | -0/+22 |
| | | | | | qname and response info easier. | ||||
| * | fix docstring typo | Bob Halley | 2017-01-16 | 1 | -1/+1 |
| | | |||||
| * | resolver doco | Bob Halley | 2017-01-16 | 1 | -120/+104 |
| | | |||||
| * | improve cache doco | Bob Halley | 2017-01-16 | 1 | -57/+42 |
| | | |||||
| * | doco answer | Bob Halley | 2017-01-16 | 1 | -26/+12 |
| | | |||||
| * | start resolver doco | Bob Halley | 2017-01-16 | 1 | -18/+5 |
| | | |||||
