Forked from ldns 1.6.16