Skip to content
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

Open
azmeuk opened this issue Nov 3, 2022 · 1 comment
Open

Custom DNS resolver #186

azmeuk opened this issue Nov 3, 2022 · 1 comment
Labels
🚀 feature something that would be nice

Comments

@azmeuk
Copy link

azmeuk commented Nov 3, 2022

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 or

Describe 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.

@azmeuk
Copy link
Author

azmeuk commented Nov 4, 2022

Additionally a custom TCP Connector would be great, in order to force IPV4 or IPV6 connection.

@cole cole added the 🚀 feature something that would be nice label Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 feature something that would be nice
Projects
None yet
Development

No branches or pull requests

2 participants