-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom DNS resolver #186
Labels
🚀 feature
something that would be nice
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I would love if I could set a custom DNS resolver to the aiosmtplib client, in the fashion of aiohttp. This would be particularly convenient in unit test environment where I setup custom DNS servers with fake domains resolving to custom test smtp servers.
Describe the solution you'd like
A
resolver
parameter, like aiohttp orDescribe alternatives you've considered
I could resolve all the domains with aiodns and manually retrieve the IP addresses behind the domain. I find this is far less convenient though.
The text was updated successfully, but these errors were encountered: