-
-
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
Fix/Implement own DNS resolver #2660
Comments
A possible implementation route would be using a library such as https://c-ares.haxx.se/ instead of creating it from scratch. This one seems to be portable across POSIX and Windows and can integrate with libevent. For example:
From a very quick search, there are other libraries with similar functionality. |
I propose to use C's We'd have to revert this commit and a maybe some others. |
At this point with Crystal 0.17.4 I cannot use |
Closing: this should have been fixed by #2745. |
@ysbaddaden But was it? If so, why #6099 then? |
The current DNS resolver is broken for some usecases, buggy for others and some setups. We should replace it. See #2568 #2653 #2426.
A resolver written in Crystal is tricky since it would need to hook into OS specific APIs in order to resolve hosts from
/etc/hosts
, mDNS etc. Most POSIX API is blocking making it tricky to rely on in a language focused on asynchronous IO, see #2426 (comment)This issue exists to collect issues in the current implementation and ways to mitigate them in possible replacements.
The text was updated successfully, but these errors were encountered: