You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2018/10/21 22:34:00 UTC

[jira] [Created] (MESOS-9338) Add asynchronous DNS facilities to libprocess.

Benjamin Mahler created MESOS-9338:
--------------------------------------

             Summary: Add asynchronous DNS facilities to libprocess.
                 Key: MESOS-9338
                 URL: https://issues.apache.org/jira/browse/MESOS-9338
             Project: Mesos
          Issue Type: Improvement
          Components: libprocess
            Reporter: Benjamin Mahler


This would enable non-blocking DNS queries. One use case is during TLS peer certificate verification, we need to perform a reverse DNS lookup to get the peer's hostname. This blocks the event loop thread!

Some options:

(1) Linux provides {{getaddrinfo_a}}, however I don't see an equivalent one for {{getnameinfo}}:
http://man7.org/linux/man-pages/man3/getaddrinfo_a.3.html

(2) A popular library is c-ares (MIT license):
https://c-ares.haxx.se/

(3) ADNS (GPLv3):
https://www.gnu.org/software/adns/

(4) c-ares has a list of other libraries:
https://c-ares.haxx.se/otherlibs.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)