Skip to content

Specify nameservers directly#18

Open
ardigan6 wants to merge 8 commits intodmippolitov:masterfrom
ardigan6:specify_ns
Open

Specify nameservers directly#18
ardigan6 wants to merge 8 commits intodmippolitov:masterfrom
ardigan6:specify_ns

Conversation

@ardigan6
Copy link

Radically faster than using a local resolver in most cases.

Note: this should really be set per-provider, but looks like the minimal change is just to pass through to the resolver class.

ns: the nameserver IP to use for direct lookup
"""
self.host = host
self.ns = ns
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As i understand there is no effect of specifying ns for Provider in the scope of this PR?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was used in other code not included.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still cant figure out how ns affects resolver

else:
self._loop = loop
self._resolver = aiodns.DNSResolver(timeout=timeout, tries=tries, loop=self._loop)
self._resolver = aiodns.DNSResolver(timeout=timeout, tries=tries, loop=self._loop, nameservers=ns)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, but there is questions on the other part of this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants