From 72d1e4889cdf18443194f1cada094f143b0553b5 Mon Sep 17 00:00:00 2001 From: Arcadiy Ivanov Date: Tue, 14 Nov 2017 20:33:44 -0500 Subject: [PATCH] Fix incorrect example using non-specific Resolver fixes #285 --- examples/query_specific.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3