| 1 |
Dnssec Module |
| 2 |
|
| 3 |
Marius Zbihlei |
| 4 |
|
| 5 |
Copyright © 2013 |
| 6 |
__________________________________________________________________ |
| 7 |
|
| 8 |
Table of Contents |
| 9 |
|
| 10 |
1. Admin Guide |
| 11 |
|
| 12 |
1. Overview |
| 13 |
2. Dependencies |
| 14 |
|
| 15 |
2.1. Kamailio Modules |
| 16 |
2.2. External Libraries or Applications |
| 17 |
|
| 18 |
3. Parameters |
| 19 |
|
| 20 |
3.1. general_query_flags (integer) |
| 21 |
|
| 22 |
List of Examples |
| 23 |
|
| 24 |
1.1. Set general_query_flags parameter |
| 25 |
|
| 26 |
Chapter 1. Admin Guide |
| 27 |
|
| 28 |
Table of Contents |
| 29 |
|
| 30 |
1. Overview |
| 31 |
2. Dependencies |
| 32 |
|
| 33 |
2.1. Kamailio Modules |
| 34 |
2.2. External Libraries or Applications |
| 35 |
|
| 36 |
3. Parameters |
| 37 |
|
| 38 |
3.1. general_query_flags (integer) |
| 39 |
|
| 40 |
1. Overview |
| 41 |
|
| 42 |
The module replaces the common system dns resolver functions from core |
| 43 |
with the DNSSEC wrappers provided by libval. Practically, by loading |
| 44 |
the module, Kamailio will make use of extensions to DNS which provide |
| 45 |
origin authentication of DNS data, authenticated denial of existence, |
| 46 |
and data integrity. |
| 47 |
|
| 48 |
There is no module parameter that should be set nor function that has |
| 49 |
to be executed by the configuration file. Existing SIP server |
| 50 |
deployments can be updated to use DNSSEC by loading this module and |
| 51 |
setting appropriate DNS server to the operating system. |
| 52 |
|
| 53 |
Installing libval can be done from https://www.dnssec-tools.org. |
| 54 |
|
| 55 |
More details about DNSSEC are available at: |
| 56 |
http://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions. |
| 57 |
|
| 58 |
2. Dependencies |
| 59 |
|
| 60 |
2.1. Kamailio Modules |
| 61 |
2.2. External Libraries or Applications |
| 62 |
|
| 63 |
2.1. Kamailio Modules |
| 64 |
|
| 65 |
The following modules must be loaded before this module: |
| 66 |
* No dependencies on other Kamailio modules. |
| 67 |
|
| 68 |
2.2. External Libraries or Applications |
| 69 |
|
| 70 |
The following libraries or applications must be installed before |
| 71 |
running Kamailio with this module loaded: |
| 72 |
* libval - check https://www.dnssec-tools.org for installation |
| 73 |
guidelines. |
| 74 |
|
| 75 |
3. Parameters |
| 76 |
|
| 77 |
3.1. general_query_flags (integer) |
| 78 |
|
| 79 |
3.1. general_query_flags (integer) |
| 80 |
|
| 81 |
Set this parameter to an integer value containing of an ORed result of |
| 82 |
one or more of the following values (constant present only for |
| 83 |
documentation process, as they are mostly mapped to libval flags). |
| 84 |
Setting this parameter will cause the libval defaults to be completely |
| 85 |
overwritten |
| 86 |
|
| 87 |
QUERY_DONT_VALIDATE == 1<<0 causes the validator to disable validation |
| 88 |
for this query. |
| 89 |
|
| 90 |
QUERY_IGNORE_SKEW == 1<<1 causes the validator to disable checking |
| 91 |
signature inception and expiration times on RRSIGs. |
| 92 |
|
| 93 |
QUERY_AC_DETAIL == 1<<2 causes the validator to copy the authentication |
| 94 |
chain details into the val_rc_answer member within the returned |
| 95 |
val_result_chain structure. |
| 96 |
|
| 97 |
QUERY_NO_DLV == 1<<3 causes the validator to disable DLV processing for |
| 98 |
this query. This is only available if the libval(3) library has been |
| 99 |
compiled with DLV support. |
| 100 |
|
| 101 |
QUERY_NO_EDNS0_FALLBACK = 1<<4 In querying various name servers, |
| 102 |
libsres will also attempt multiple EDNS0 sizes, ending with a query |
| 103 |
that has EDNS0 disabled (i.e. no CD bit set). This option causes libval |
| 104 |
to disable EDNS0 fallback for the query. |
| 105 |
|
| 106 |
QUERY_RECURSE == 1<<5 forces libval to recursively answer the query by |
| 107 |
iteratively querying various name servers in the delegation hierarchy, |
| 108 |
instead of requesting this information from any caching name server |
| 109 |
that may be configured in dnsval.conf |
| 110 |
|
| 111 |
SKIP_RESOLVER == 1<<6 forces libval to only look at its cache while |
| 112 |
trying to resolve a name. |
| 113 |
|
| 114 |
SKIP_CACHE == 1<<7 forces libval to ignore cached data while trying to |
| 115 |
resolve a name. |
| 116 |
|
| 117 |
Default value is 0(no changes) |
| 118 |
|
| 119 |
Example 1.1. Set general_query_flags parameter |
| 120 |
... |
| 121 |
modparam("dnssec", "general_query_flags", 1) # QUERY_DONT_VALIDATE disable vali |
| 122 |
dation |
| 123 |
modparam("dnssec", "general_query_flags", 10) # QUERY_IGNORE_SKEW | QUERY_NO_DL |
| 124 |
V |
| 125 |
... |