mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #197] resolver should return directly, when use a ip address as a argument? #388
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#388
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 @cssivision on GitHub (Sep 22, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/197
i do not see similar logic in the code, this can avoid useless dns query.
@bluejekyll commented on GitHub (Sep 22, 2017):
I’m not sure if that is best practice or not. I understand the desire. Do you know how other resolvers deal with that case?
@cssivision commented on GitHub (Sep 23, 2017):
extreme pursuit for performance...
@cssivision commented on GitHub (Sep 23, 2017):
if we decide to do this, i can fire a pr.
@bluejekyll commented on GitHub (Sep 23, 2017):
So the reason I'm concerned about this is that it's not clear to me that it's the responsibility of the resolver. i.e. I feel like, if you ask for name resolution, you expect it to be resolved :)
One option is that we could restrict the interface to
TryInto<Name>, which I've been thinking of doing. That might make this more clear? For example, reverse Ip lookups are restricted toIpAddr.I'm open to it, I just want to know what other resolvers out there do in this case...
@cssivision commented on GitHub (Sep 23, 2017):
Now, if i use
ip addras input will getNoneas a return value.i investigate the golang std lib method
net.LookupIPi found it actually not implement the query, it just return theipdirectly.@cssivision commented on GitHub (Sep 23, 2017):
for example:
@bluejekyll commented on GitHub (Sep 24, 2017):
Ok. This makes sense. If you're still interested in putting that PR together, that would be awesome!
@cssivision commented on GitHub (Sep 24, 2017):
ok, i will spend some time on this.
@cssivision commented on GitHub (Nov 27, 2017):
sorry for being so late
@bluejekyll commented on GitHub (Nov 27, 2017):
No worries! Thanks for putting it together!
@bluejekyll commented on GitHub (Nov 28, 2017):
Fixed in #302