Returns a DNS resolver function based on the provided resolver name or function.
If a string is provided, it must match one of the built-in resolvers.
If a function is provided, it will be returned as is.
If no resolver is provided, the default resolver (Google's DoH) will be used
Returns a DNS resolver function based on the provided resolver name or function.
If a
string
is provided, it must match one of the built-in resolvers. If afunction
is provided, it will be returned as is. If no resolver is provided, the default resolver (Google's DoH) will be used