diff options
| author | Arcadiy Ivanov <arcadiy@ivanov.biz> | 2017-11-14 20:33:44 -0500 |
|---|---|---|
| committer | Arcadiy Ivanov <arcadiy@ivanov.biz> | 2017-11-14 20:33:44 -0500 |
| commit | 72d1e4889cdf18443194f1cada094f143b0553b5 (patch) | |
| tree | b7b73ad58d1e3b5a1f458be9bd42f1e3c3f9d23b /examples | |
| parent | 1bb88cfecacb18fb406466e38a5b9c185cb5373e (diff) | |
| download | dnspython-72d1e4889cdf18443194f1cada094f143b0553b5.tar.gz | |
Fix incorrect example using non-specific Resolver
fixes #285
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/query_specific.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/query_specific.py b/examples/query_specific.py index 2da2cdf..3e2c419 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) |
