Re:Show HN: MassDNS – A high-performance DNS stub resolver in C
by otterley on Sunday June 26, 2016 @04:32PM
(#11982554)
Have you tried c-ares? http://c-ares.haxx.se/
Re:Show HN: MassDNS – A high-performance DNS stub resolver in C
by blechschmidt on Sunday June 26, 2016 @05:28PM
(#11982831)
Not yet. I have had a quick look at ldns (https://www.nlnetlabs.nl/projects/ldns/) which supports parsing DNS packets from wire. I will probably replace the DNS implementation with either libldns or c-ares.
Re:Show HN: MassDNS – A high-performance DNS stub resolver in C
by otterley on Sunday June 26, 2016 @06:32PM
(#11983109)
ldns is synchronous so all your queries will block. libunbound (https://www.unbound.net/documentation/libunbound.html), like c-ares, is an async C resolver library from the authors of ldns.
Re:Show HN: MassDNS – A high-performance DNS stub resolver in C
by blechschmidt on Sunday June 26, 2016 @07:07PM
(#11983245)
Ah, that would mean that I would have the libraries handle the resolving. I was currently only thinking about keeping the single socket which is used in order to only use the parsing functions from the libraries.
The tool has mainly been tested on a Hetzner EX41 server. (Ubuntu, Intel® Core™ i7-6700, 32 GB RAM)