Skip to content

Iterative query #759

Answered by sebix
SkySai1 asked this question in Q&A
Jan 19, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

But, if i type this:

print("Hello World")
result = dns.resolver.resolve('mail.google.com', 'NS' )
for ipval in result:
    print('IP', ipval.to_text());

I get this: dns.resolver.NoAnswer: The DNS response does not contain an answer to the question: mail.google.com. IN NS

I think dnsresolver send recursive question which not supported on the google's DNS.

You are asking for a DNS entry which does not exist. Maybe you actually want to query NS of google.com and then send a query to that resulting nameserver.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SkySai1
Comment options

@sebix
Comment options

@rthalley
Comment options

Answer selected by rthalley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #756 on January 19, 2022 13:04.