From: Arcadiy Ivanov Date: Wed, 15 Nov 2017 01:33:44 +0000 (-0500) Subject: Fix incorrect example using non-specific Resolver X-Git-Tag: v1.16.0~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F286%2Fhead;p=thirdparty%2Fdnspython.git Fix incorrect example using non-specific Resolver fixes #285 --- diff --git a/examples/query_specific.py b/examples/query_specific.py index 2da2cdf9..3e2c4198 100644 --- a/examples/query_specific.py +++ b/examples/query_specific.py @@ -33,7 +33,7 @@ import dns.resolver resolver = dns.resolver.Resolver(configure=False) resolver.nameservers = ['8.8.8.8'] -answer = dns.resolver.query('amazon.com', 'NS') +answer = resolver.query('amazon.com', 'NS') print('The nameservers are:') for rr in answer: print(rr.target)