File: README

package info (click to toggle)
opensips 2.2.2-3.1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 31,160 kB
  • sloc: ansic: 334,348; xml: 91,231; perl: 6,659; sh: 5,148; sql: 4,175; makefile: 3,167; yacc: 2,499; python: 1,197; cpp: 611; php: 573
file content (82 lines) | stat: -rw-r--r-- 1,929 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
dns_cache Module

Vladut-Stefan Paiu

   OpenSIPS Solutions

Edited by

Vladut-Stefan Paiu

   Copyright � 2012 www.opensips-solutions.com
     __________________________________________________________

   Table of Contents

   1. Admin Guide

        1.1. Overview
        1.2. Dependencies

              1.2.1. OpenSIPS Modules

        1.3. Exported Parameters

              1.3.1. cachedb_url (string)
              1.3.2. blacklist_timeout (int)

        1.4. Exported Functions

   List of Examples

   1.1. Set cachedb_url parameter
   1.2. Set blacklist_timeout parameter

Chapter 1. Admin Guide

1.1. Overview

   This module is an implementation of a cache system designed for
   DNS records. For succesfull DNS queries of all types, the
   module will store in a cache/db backend the mappings, for TTL
   number of seconds received in the DNS answer. Failed DNS
   queries will also be stored in the back-end, with a TTL that
   can be specified by the user. The module uses the Key-Value
   interface exported from the core.

1.2. Dependencies

1.2.1. OpenSIPS Modules

   A cachedb_* type module must be loaded before loading the
   dns_cache module.

1.3. Exported Parameters

1.3.1. cachedb_url (string)

   The url of the key-value back-end that will be used for storing
   the DNS records.

   Example 1.1. Set cachedb_url parameter
...
#use internal cachedb_local module
modparam("dns_cache", "cachedb_url","local://")
#use cachedb_memcached module with memcached server at 192.168.2.130
modparam("dns_cache", "cachedb_url","memcached://192.168.2.130:8888/")
...

1.3.2. blacklist_timeout (int)

   The number of seconds that a failed DNS query will be kept in
   cache. Default is 3600.

   Example 1.2. Set blacklist_timeout parameter
...
modparam("dns_cache", "blacklist_timeout",7200) # 2 hours
...

1.4. Exported Functions

   The module does not export functions to be used in
   configuration script.