]> git.ipfire.org Git - ipfire-3.x.git/blob - jwhois/patches/jwhois-4.0-enum.patch
whois: New package
[ipfire-3.x.git] / jwhois / patches / jwhois-4.0-enum.patch
1 diff -up jwhois-4.0/example/jwhois.conf.enum jwhois-4.0/example/jwhois.conf
2 --- jwhois-4.0/example/jwhois.conf.enum 2009-01-27 13:39:48.000000000 +0100
3 +++ jwhois-4.0/example/jwhois.conf 2009-01-27 13:42:09.000000000 +0100
4 @@ -17,6 +17,11 @@ whois-servers {
5 type = regex;
6
7 #
8 + # Catch ENUM domains
9 + #
10 + "\\([0-9]\\.\\)+e164\\.arpa" = "struct enum-blocks";
11 +
12 + #
13 # You can use the special value `struct' to redirect the query
14 # to another block which optionally can use another type of matching.
15 # Here we use it to have IPv4 numbers matched using CIDR blocks instead
16 @@ -311,6 +316,15 @@ whois-servers {
17 }
18
19 #
20 +# enum-blocks
21 +#
22 +enum-blocks {
23 + type = regex;
24 +
25 + "\\.9\\.4\\.e164\\.arpa$" = "whois.enum.denic.de";
26 +}
27 +
28 +#
29 # cidr-blocks contains a list of all known CIDR blocks assigned to
30 # RIPE or APNIC. Default all queries to ARIN which has most other blocks.
31 #
32 @@ -915,6 +929,11 @@ server-options {
33 query-format = "-C UTF-8 -T dn,ace $*";
34 answer-charset = "UTF-8";
35 }
36 + "whois\\.enum\\.denic\\.de" {
37 + whois-server = "whois.enum.denic.de";
38 + query-format = "-C UTF-8 -T dn $*";
39 + answer-charset = "UTF-8";
40 + }
41 "whois\\.nic\\.ad\\.jp" {
42 query-format = "$*/e";
43 }