Next bike-shed opportunity in #curl: should it special case the .i2p TLD (as well)?
github.com/curl/curl/discussio…
Curl leaks .i2p hostnames in DNS · curl curl · Discussion #13964
Hello, I recently read the blog entry about curl no longer leaking .onion domains into the DNS, which is great. However, curl still leaks .i2p domains. Like Tor, I2P is a "darknet" or overlay netwo...GitHub
This entry was edited (5 months ago)
f15h 🇺🇦
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to f15h 🇺🇦 • • •Marek
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Marek • • •Stefan Schmidt
in reply to daniel:// stenberg:// • • •Special-Use Domain Names
www.iana.orgf15h 🇺🇦
in reply to daniel:// stenberg:// • • •Sami Lehtinen
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Sami Lehtinen • • •Sami Lehtinen
in reply to daniel:// stenberg:// • • •Sure, but to the users using the program, it does seem random, unless they’re aware of the list. It also makes answering any questions accurately much harder, which is why I personally dislike strange exceptions.
Q: “Does cURL do DNS lookups?”
A: “Well, yes, unless…”
And when you end up with lots of those exceptions in programs, it becomes much faster to explain something quickly and accurately. This then leads to the situation where you’ll have to test and debug every new case or read the source code to gain knowledge of how the program works, because it can’t be simply and shortly explained. And when the TLD exception list is updated, it changes the behavior of existing setups, which can also be surprising at times. (Of course, this is nothing new, especially to you. But see it just as a generic comment).
All of this, of course, is just a personal opinion based on my personal experience with many projects trying to follow KISS.
P.S. I’ve used cURL a lot with Tor and I2P, and so far I’ve been happy with the
--socks5-hostname
and--resolve options
. - What am I missing here? Maybe something essential, I just don’t know what.To save your very valuable time, I also asked an AI for a reply to my comment and asked what I am missing.
daniel:// stenberg://
in reply to Sami Lehtinen • • •@sl if you read the specs for every protocol detail curl does, you will find a never-ending list of "exceptions". Most of them we all understand and accept these days, but still.
It's like following the law of a country. You don't argue when you think a law is "random", you comply.