mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #2087] bind_addr isn't implemented #880
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#880
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @caobug on GitHub (Nov 5, 2023).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2087
Hello, it seems that
bind_addrinNameServerConfigis not implemented. I'd like to modify it, but I'm not sure if there are other considerations.bind_addris especially important when the device contains many IP addresses.For example: There are 2 IP addresses in the device, one of which has a default route set, and sometimes I need to connect through the other IP.
https://github.com/hickory-dns/hickory-dns/blob/main/crates/proto/src/udp/udp_stream.rs#L268
@bluejekyll commented on GitHub (Nov 5, 2023):
I think this would be great. I guess I don't know which is the correct location to set this, whether it's
NameServerConfigor on the entireResolverConfigand it would be used for all NameServer connections. I can see the value in making it possible to bind on a per name server basis, but that will be more complex to configure. For folks that want to bind to different addresses on a per Nameserver basis, perhaps, a new resolver could be constructed?@caobug commented on GitHub (Nov 5, 2023):
We have to take into account that the target DNS has different families, so I think it is better to directly implement the bind_addr option in NameServerConfig.
looks like:
@bluejekyll commented on GitHub (Nov 5, 2023):
That seems reasonable, and localhost vs. remote is a good example. Should we just drop the port on the bind_addr though? It seems like it will always be
0, right?