comparison mod_srvinjection.wiki @ 96:90b363bc0fb8

mod_srvinjection: Initial documentation commit.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 23 Nov 2009 21:40:08 +0500
parents
children 5417e7610ad4
comparison
equal deleted inserted replaced
95:f18d4607c52d 96:90b363bc0fb8
1 #summary Manually specify SRV records
2 #labels Stage-Alpha
3
4 = Introduction =
5 This Prosody plugin lets you manually override SRV records used for a remote host.
6
7 = Usage =
8 Simply add `"srvinjection"` to your `modules_enabled` list to enable. Then add the `srvinjection` option to the global section.
9
10 = Configuration =
11 The `srvinjection` option can be used as follows:
12
13 {{{
14 srvinjection = {
15 ["example.com"] = {"localhost", 5000};
16 ["jabber.org"] = {"localhost", 5001};
17 };
18 }}}
19
20 The format for individual items is `["remote-hostname"] = {"srv-hostname", srv-port};`.
21
22 = Reloading =
23 The module can be reloaded via the telnet console. Edit the config file to make any updates.
24
25 You can reload the configuration from disk:
26 {{{
27 config:reload()
28 }}}
29 And then reload the module to apply the configuration changes:
30 {{{
31 module:reload("srvinjection", "*")
32 }}}
33
34 = Compatibility =
35 ||0.6||Works||
36
37 = How it works =
38 The module replaces the `lookup` function of the `net.adns` module with its own. The original is set back when the module is unloaded.