summaryrefslogtreecommitdiff
path: root/configs/samples/resolver_unbound.conf.sample
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2015-03-25 12:32:26 +0000
committerJoshua Colp <jcolp@digium.com>2015-03-25 12:32:26 +0000
commitabf3e40902abe9a3b32aba0d1691b209b4d32e66 (patch)
treeda9c79e72fc4e06ce512f7aa678d6d5ea88afb80 /configs/samples/resolver_unbound.conf.sample
parent4c2fc5b81103f7942277bf3dd6481742500ddb2d (diff)
dns: Add core DNS API + unit tests and res_resolver_unbound module + unit tests.
This change adds an abstracted core DNS API which resembles the API described here[1]. The API provides a pluggable mechanism for resolvers and also a consistent view for records. Both synchronous and asynchronous queries are supported. This change also adds a res_resolver_unbound module which uses the libunbound library to provide resolution. Unit tests have also been written for all of the above to confirm the API and functionality. ASTERISK-24834 #close Reported by: Matt Jordan ASTERISK-24836 #close Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/4474/ Review: https://reviewboard.asterisk.org/r/4512/ [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+DNS+API git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs/samples/resolver_unbound.conf.sample')
-rw-r--r--configs/samples/resolver_unbound.conf.sample24
1 files changed, 24 insertions, 0 deletions
diff --git a/configs/samples/resolver_unbound.conf.sample b/configs/samples/resolver_unbound.conf.sample
new file mode 100644
index 000000000..97361525e
--- /dev/null
+++ b/configs/samples/resolver_unbound.conf.sample
@@ -0,0 +1,24 @@
+; Unbound DNS Resolver Configuration
+;
+; This file serves as a reference for the configurable options within the
+; unbound DNS resolver.
+
+[general]
+;hosts = /etc/hosts ; Full path to a hosts file which contains a mapping of
+; ; hostnames to addresses. If "system" is specified then
+; ; the system specific hosts file will be used. (default: system)
+;resolv = /etc/resolv.conf ; Full path to a resolv.conf which contains the nameservers
+; ; to use for resolution. If "system" is specified then the
+; ; system specific resolv.conf file will be used. (default: system)
+;nameserver = 127.0.0.1 ; An explicit nameserver to use for queries. If this option
+; ; is specified multiple times the first configured one will
+; ; be treated as the primary with each subsequent one being
+; ; a backup. If the resolv options is also specified the
+; ; nameservers from it will be tried after all nameserver
+; ; options.
+;debug = 99 ; The debug level to run the unbound resolver at. While
+; ; there is no explicit range the higher the number the more
+; ; debug is output.
+;ta_file = /etc/asterisk/dnssec_keys ; Full path to a trusted anchors key file. These keys are
+; ; used to verify DNSSEC signed results.
+