summaryrefslogtreecommitdiff
path: root/examples/async_dns.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/async_dns.py')
-rw-r--r--examples/async_dns.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/async_dns.py b/examples/async_dns.py
index f7e3fe5..297afcb 100644
--- a/examples/async_dns.py
+++ b/examples/async_dns.py
@@ -25,6 +25,10 @@ async def main():
print(a.response)
zn = await dns.asyncresolver.zone_for_name(host)
print(zn)
+ answer = await dns.asyncresolver.resolve_at("8.8.8.8", "amazon.com", "NS")
+ print("The amazon.com nameservers are:")
+ for rr in answer:
+ print(rr.target)
if __name__ == "__main__":