You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Maybe I have missed something, but AFAIK, it is not convenient to call bind_with_addr when I want to make dns resolver with a specific network interface.
Now I can write as below:
let (config, options) = trust_dns_resolver::system_conf::read_system_conf()?;
// but how can I set bind addr for config here. Since `set_bind_addr` is a method of `NameServerConfigGroup`, but `name_servers` in ResolverConfig is not public.
let provider = ...
let resolver = trust_dns_resolver::new_with_conn(config, options, provider)
I don't like copy the code how trust_dns_resolver::system_conf::read_system_conf() does and set bind addr there.
Describe the solution you'd like
A clear and concise description of what you want to happen.
And I think make a method named set_bind_addr for ResolverConfig will be a simple solution.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
bind_addr is a public property of NameServerConfig so by itself that seems easy enough to change. I guess it might be okay to expose a groups_mut() accessor on ResolverConfig and a servers_mut() accessor on NameServerGroup?
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Maybe I have missed something, but AFAIK, it is not convenient to call bind_with_addr when I want to make dns resolver with a specific network interface.
Now I can write as below:
I don't like copy the code how trust_dns_resolver::system_conf::read_system_conf() does and set bind addr there.
Describe the solution you'd like
A clear and concise description of what you want to happen.
And I think make a method named
set_bind_addr
for ResolverConfig will be a simple solution.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
https://github.com/hickory-dns/hickory-dns/blob/main/crates/resolver/src/config.rs#L827
The text was updated successfully, but these errors were encountered: