-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Proposal] Add Resolv class to standard library #4816
Comments
We have a |
Let's have a good interface to the respective system resolver, yeah. However let's not have a full DNS resolver in the standard library and instead encourage use of a proper DNS resolver implementation that handles all the known quirks and DNSSEC, in other words let's encourage shards that bind libunbound or ldns. |
@jhass I wasn't proposing anything too complex, just enough to look up the values of arbitrary record types at arbitrary addresses. Something under the namespace |
Sure, more replying to the OP than you :) |
Well, Windows uses Additionaly, using another naming like
Any improvement would require to use a full-featured DNS resolver. I think a binding to |
We don't use |
@ysbaddaden I'd expect crystal's DNS to resolve I'd expect crystal's stdlib to be able to:
That's it. |
I know this could be done as a shard, but seeing as this is a Rubyesque language and it would make the transition from Ruby to Crystal just that much easier I feel as though Crystal could use a
Resolv
class similar to that of Ruby. Ruby's Resolv class is a thread-aware DNS resolver with a syntax that looks like thisI'm not great at proposals, so just give your questions and opinions :)
The text was updated successfully, but these errors were encountered: