mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #431] Names like "1.2.3.4" are wrongly assumed to be IP addresses #485
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#485
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 @briansmith on GitHub (Apr 26, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/431
ResolverFuture::lookup_ip()contains this:This is not correct. Consider a /etc/resolv.conf like this:
I should be able to do a DNS lookup on "1.2.3.4" and Trust-DNS should search "1.2.3.4.x.svc.cluster.local" then "1.2.3.4.svc.cluster.local" then "1.2.3.4.cluster.local". Try
dig +showsearch 1.2.3.4for example.Thus, all "try parsing it as an IP address first" like the one given above should be removed.
@briansmith commented on GitHub (Apr 26, 2018):
Note: I gave an example using a Kubernetes configuration, but this isn't really impacting any Kubernetes applications because "1.2.3.4" isn't a valid service name and "4" isn't a valid namespace name.
@bluejekyll commented on GitHub (Apr 26, 2018):
I just reviewed https://tools.ietf.org/html/rfc1123 and you are correct. So annoying that DNS and IP use the same delimeters.
I’ll double check, but the easy fix will be to move this into the FQDN lookup, and evaluate there. We need to double check how things like glibc deal with this.