Files
asterisk/configs/samples/resolver_unbound.conf.sample
Joshua Colp abf3e40902 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
2015-03-25 12:32:26 +00:00

25 lines
1.5 KiB
Plaintext

; 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.