Skip to content

Custom DNS resolver #186

Open
Open
@azmeuk

Description

@azmeuk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚀 featuresomething that would be nice

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions