comparison mod_srvinjection.wiki @ 165:44f9d6dae0cc

Edited wiki page mod_srvinjection through web user interface.
author MWild1
date Wed, 09 Feb 2011 16:17:47 +0000
parents 5417e7610ad4
children
comparison
equal deleted inserted replaced
164:5417e7610ad4 165:44f9d6dae0cc
1 #summary Manually specify SRV records 1 #summary Manually specify SRV records
2 #labels Stage-Alpha 2 #labels Stage-Beta
3 3
4 = Introduction = 4 = Introduction =
5 This Prosody plugin lets you manually override SRV records used for a remote host. 5 This Prosody plugin lets you manually override SRV records used for a remote host.
6 6
7 = Usage = 7 = Usage =
17 }; 17 };
18 }}} 18 }}}
19 19
20 The format for individual items is `["remote-hostname"] = {"srv-hostname", srv-port};`. 20 The format for individual items is `["remote-hostname"] = {"srv-hostname", srv-port};`.
21 21
22 The special remote hostname "*" can be used as a wildcard: 22 The special remote hostname `"*"` can be used as a wildcard:
23 {{{ 23 {{{
24 srvinjection = { ["*"] = {"xmpp-server.l.google.com", 5269} } -- Use Google's XMPP server for all hostnames 24 srvinjection = { ["*"] = {"xmpp-server.l.google.com", 5269} } -- Use Google's XMPP server for all hostnames
25 }}} 25 }}}
26 26
27 = Reloading = 27 = Reloading =
35 {{{ 35 {{{
36 module:reload("srvinjection", "*") 36 module:reload("srvinjection", "*")
37 }}} 37 }}}
38 38
39 = Compatibility = 39 = Compatibility =
40 ||0.8||Works||
41 ||0.7||Works||
40 ||0.6||Works|| 42 ||0.6||Works||
41 43
42 = How it works = 44 = How it works =
43 The module replaces the `lookup` function of the `net.adns` module with its own. The original is set back when the module is unloaded. 45 The module replaces the `lookup` function of the `net.adns` module with its own. The original is set back when the module is unloaded.