Added support for ldns.