mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #367] More than a sec to resolve a query in localhost #465
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#465
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 @RCasatta on GitHub (Mar 31, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/367
Hi,
I am trying out
7714b11474on Mac OS X and Ubuntu 16.04, launching with:$ ./target/release/named -c server/tests/named_test_configs/example.toml -z server/tests/named_test_configs/ -p 24141and then
$ time dig @localhost -p 24141 www.example.comand it takes more than a second (real 0m1.027s) to resolve
@bluejekyll commented on GitHub (Apr 2, 2018):
Hi, thanks for the report. Based on your path I'm assuming you compiled with
cargo build --release.If you have some time, from the
trust-dns/serverdirectory, could you run the benchmarks?cargo benchOff master, I'm currently getting:
thanks.
@bluejekyll commented on GitHub (Apr 2, 2018):
Also, I notice in reproducing your results, dig is much faster if you explicitly put
127.0.0.1. The reason this would be the case is that first dig is making a system call to lookuplocalhostwith the system resolver and then it's looking upwww.example.com.with thetrust-dnsserver.I've never benchmarked with dig or host, and I don't think those are the best tools for benchmarking DNS performance. If that is something you're interested in doing, It would be interesting to get some independent tools for perf testing the server. The benchmarks in the library make use of the
trust-dnsclient, which may bias and they are definitely narrow in what they are testing.@RCasatta commented on GitHub (Apr 2, 2018):
yes,
localhostwas the issue... Much faster with127.0.0.1like 31msI launched
cargo +nightly benchanyway and on Mac OS X mid 2014 laptop I gotI feel the two initial command I launched could be interesting in the Readme.md after the Running section for a quick test drive, would you like I make a PR?
@bluejekyll commented on GitHub (Apr 2, 2018):
Sure! That would be great!
@RCasatta commented on GitHub (Apr 2, 2018):
When I tried to build the repo I found the target dir in the base dir, not in the server or client dir
Is my configuration or is the readme outdated?
@bluejekyll commented on GitHub (Apr 2, 2018):
The Readme may be outdated. That was probably written before the projects were moved into a single workspace. After doing that, there is a shared target repo at the root. If you want to include that in your update, that would be great.
@RCasatta commented on GitHub (Apr 3, 2018):
https://github.com/bluejekyll/trust-dns/pull/369