TOX-DNS V1 name resolution.

Added Tox DNS resolution via libldns. No DNSSEC yet. Only Tox DNS
 version 1 resolution.

 Added new development command /dns to test name resolution.
This commit is contained in:
Michael Raitza 2015-09-07 00:50:09 +02:00
parent 5e30b18d50
commit d5135c00bc
5 changed files with 587 additions and 79 deletions

14
cmake/FindLdns.cmake Normal file
View file

@ -0,0 +1,14 @@
set(Ldns_INCLUDE_DIRS)
set(Ldns_LIBRARIES)
find_path(Ldns_INCLUDE_DIR ldns/ldns.h)
find_library(Ldns_LIBRARY ldns)
if (Ldns_INCLUDE_DIR AND Ldns_LIBRARY)
set(Ldns_FOUND TRUE)
list(APPEND Ldns_LIBRARIES ldns)
list(APPEND Ldns_INCLUDE_DIRS ${Ldns_INCLUDE_DIR})
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Ldns FOUND_VAR Ldns_FOUND REQUIRED_VARS Ldns_INCLUDE_DIRS Ldns_LIBRARIES)