mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #1734] disallowed_by_std3_ascii_rules problem #754
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#754
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 @RickSKy on GitHub (Jul 8, 2022).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1734
Describe the bug
the program do not send the query packet, and return err like:
but on any os platform, we use nslookup:
it send the query packet, and return NXDOMAIN.
why need this unnormal query? just for some security verify purpose .
Expected behavior
send the query packet,and return NXDOMAIN result
System:
Version:
Crate: trust-dns-proto
Version: 0.21
@bluejekyll commented on GitHub (Jul 11, 2022):
I'm not sure I understand what you're attempting to do here. The lookup methods expect a domain name as the input, not a full URL. For example instead of
http://statototalitario.com/stub/index.phpyou'd want to pass instatototalitario.com.To extract this information, you could use this method from the
urlcrate to get the domain: https://docs.rs/url/2.2.2/url/struct.Url.html#method.domain@RickSKy commented on GitHub (Jul 16, 2022):
wireshark or tcpdump capture the dns query packet, you will see below
Maybe it should send the packet, and the dns server reply No Such Name like nslookup(on any os platform), not just errored when sending.
@bluejekyll commented on GitHub (Jul 16, 2022):
If you want to construct an invalid Name and send it, you can use the from labels methods https://docs.rs/trust-dns-proto/0.21.2/trust_dns_proto/rr/domain/struct.Name.html#method.from_labels and construct the labels using from raw bytes https://docs.rs/trust-dns-proto/0.21.2/trust_dns_proto/rr/domain/struct.Label.html#method.from_raw_bytes
@RickSKy commented on GitHub (Jul 17, 2022):
Thanks.