From fcabe7a84adf2604f25b6480e446953c621d36d1 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Mon, 21 Sep 2020 22:55:49 +0700 Subject: [PATCH] Version 0.3.0 --- CHANGELOG.md | 14 +++++++++----- README.md | 3 ++- dns_cache/__init__.py | 2 +- setup.py | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc83a3f..0d562ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,25 @@ # Change Log -## 0.3.0dev +## 0.3.0 -[Full Changelog](https://github.com/jayvdb/dns-cache/compare/0.2.0...) +[Full Changelog](https://github.com/jayvdb/dns-cache/compare/0.2.0...0.3.0) **Implemented enhancements:** - Add dnspython 2 support -- ExceptionCachingResolver: Cache authority and additional sections ([dcadbb](https://github.com/jayvdb/dns-cache/commit/dcadbb)) +- `ExceptionCachingResolver`: Cache authority and additional sections ([dcadbb](https://github.com/jayvdb/dns-cache/commit/dcadbb)) +- `HostsCache`: Add preloaded hosts (e.g. `/etc/hosts`) cache ([fc9ec2](https://github.com/jayvdb/dns-cache/commit/fc9ec2)) **Fixed bugs:** - ExceptionCachingResolver: Do not cache `NoMetaqueries` ([5f571e](https://github.com/jayvdb/dns-cache/commit/5f571e)) +- Fix patched `socket.gethostbyname` to resolve names in `/etc/hosts` ([issue 11](https://github.com/jayvdb/dns-cache/issues/11)) -**Closed issues:** +**Other:** -- None +- Update tests to handle changes in Google DNS behaviour +- Many more tests +- Testing against many U.S. DNS servers ## [0.2.0](https://github.com/jayvdb/dns-cache/tree/0.2.0) (2020-03-09) [Full Changelog](https://github.com/jayvdb/dns-cache/compare/0.1.0...0.2.0) diff --git a/README.md b/README.md index 2104beb..31b0497 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,10 @@ The following classes can be used separately or together. but reducing the number of requests and cached responses when several related records are requested, such as a HTTP redirect from www.foo.com to foo.com (or vis versa) where one is a CNAME point to the other. 2. `dns_cache.resolver.ExceptionCachingResolver`: caches lookup failures. +3. `dns_cache.hosts.HostsCache`: preloads hosts (e.g. `/etc/hosts`) into a cache **Note:** `dns_cache.override_system_resolver()` can be used to install a custom `resolver` or `cache`, which may -be derived from the above classes or your own implementation from scratch. +be derived from the above classes or your own implementation from scratch. It preloads `/etc/hosts`. ## Similar projects diff --git a/dns_cache/__init__.py b/dns_cache/__init__.py index d09a660..e79f46b 100644 --- a/dns_cache/__init__.py +++ b/dns_cache/__init__.py @@ -16,7 +16,7 @@ except ImportError: HostsCache = None -__version__ = "0.2.0" +__version__ = "0.3.0" class Resolver(AggressiveCachingResolver, ExceptionCachingResolver): diff --git a/setup.py b/setup.py index d360fc6..3d18369 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import find_packages, setup -__version__ = "0.2.0" +__version__ = "0.3.0" classifiers = """\ Environment :: Console