View | Details | Raw Unified | Return to bug 271401 | Differences between
and this patch

Collapse All | Expand All

(-)b/net/jwhois/Makefile (-10 / +22 lines)
Lines 1-15 Link Here
1
PORTNAME=	jwhois
1
PORTNAME=	jwhois
2
PORTVERSION=	4.0
2
PORTVERSION=	4.0
3
PORTREVISION=	7
3
PORTREVISION=	8
4
CATEGORIES=	net
4
CATEGORIES=	net
5
MASTER_SITES=	GNU
5
MASTER_SITES=	GNU \
6
		https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/j/:srpm
7
DISTFILES=	${DISTNAME}.tar.gz jwhois-4.0-73.fc38.src.rpm:srpm
6
8
7
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	terry-freebsd@glaver.org
8
COMMENT=	Improved WHOIS client capable of selecting server to query
10
COMMENT=	Improved WHOIS client capable of selecting server to query
9
WWW=		https://www.gnu.org/software/jwhois/
11
WWW=		https://www.gnu.org/software/jwhois/
10
12
11
LICENSE=	GPLv3
13
LICENSE=	GPLv3
12
14
15
RUN_DEPENDS=	lynx:www/lynx
13
LIB_DEPENDS=	libidn.so:dns/libidn
16
LIB_DEPENDS=	libidn.so:dns/libidn
14
17
15
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
Lines 21-39 CONFIGURE_ARGS= --localstatedir=${PREFIX}/var/jwhois Link Here
21
OPTIONS_DEFINE=	NLS
24
OPTIONS_DEFINE=	NLS
22
OPTIONS_SUB=	yes
25
OPTIONS_SUB=	yes
23
26
24
NLS_CONFIGURE_OFF=	--disable-nls --without-libiconv-prefix
27
NLS_CONFIGURE_OFF=	--disable-nls \
28
			--without-libiconv-prefix
25
29
26
INSTALL_TARGET=	install-strip
30
INSTALL_TARGET=	install-strip
27
31
28
INFO=	jwhois
32
INFO=		jwhois
29
33
30
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
31
35
32
.if exists(${FILESDIR}/jwhois.conf)
36
JWHOIS_CONF_SRC=	${WRKDIR}/jwhois.conf
33
JWHOIS_CONF_SRC=${FILESDIR}/jwhois.conf
37
34
.else
38
pre-patch:
35
JWHOIS_CONF_SRC=${WRKSRC}/example/jwhois.conf
39
.for p in jwhois-4.0-connect.patch jwhois-4.0-ipv6match.patch jwhois-4.0-fclose.patch \
36
.endif
40
		jwhois-4.0-select.patch jwhois-4.0-multi-homed.patch jwhois-4.0-libidn2.patch \
41
		jwhois-4.0-idna.patch jwhois-4.0-idnfail.patch jwhois-4.0-ipv4_ipv6.patch \
42
		jwhois-configure-c99.patch jwhois-c99.patch
43
	(cd ${WRKSRC} && ${PATCH} -p1 <  ${WRKDIR}/${p})
44
.endfor
45
46
post-patch:
47
	${REINPLACE_CMD} 's|browser-pathname = "/usr/bin|browser-pathname = "${LOCALBASE}/bin|' \
48
		${WRKDIR}/jwhois.conf
37
49
38
post-install:
50
post-install:
39
	${MKDIR} ${STAGEDIR}${PREFIX}/var/jwhois
51
	${MKDIR} ${STAGEDIR}${PREFIX}/var/jwhois
(-)b/net/jwhois/distinfo (+3 lines)
Lines 1-2 Link Here
1
TIMESTAMP = 1684142855
1
SHA256 (jwhois-4.0.tar.gz) = fa9bb86782b915c6d730bb723f876dc9b345a617db375aaf3416ec22553cd64e
2
SHA256 (jwhois-4.0.tar.gz) = fa9bb86782b915c6d730bb723f876dc9b345a617db375aaf3416ec22553cd64e
2
SIZE (jwhois-4.0.tar.gz) = 493007
3
SIZE (jwhois-4.0.tar.gz) = 493007
4
SHA256 (jwhois-4.0-73.fc38.src.rpm) = 3c4311e428530b93a0a9aa2ca1a7224b5a1c3ba39d62864796144fa097b7d13e
5
SIZE (jwhois-4.0-73.fc38.src.rpm) = 555052
(-)a/net/jwhois/files/jwhois.conf (-1005 lines)
Removed Link Here
1
# This is jwhois.conf - an example configuration file for jwhois
2
#
3
# Due to the ever-changing nature of the Internet, the configuration file
4
# released with Jwhois quickly gets outdated. You can find the latest version
5
# in the Jwhois CVS repository, which is accessible via the web from
6
# http://savannah.gnu.org/cgi-bin/viewcvs/jwhois/jwhois/example/jwhois.conf
7
8
#
9
# Local domain registries and pointers to cidr-blocks and handles.
10
# This is where jwhois begins the search for a Whois server to query
11
#
12
whois-servers {
13
	#
14
	# The type can be either cidr or regex, the former matches using CIDR
15
	# blocks and the later using regular expressions.
16
	#
17
	type = regex;
18
19
	#
20
	# You can use the special value `struct' to redirect the query
21
	# to another block which optionally can use another type of matching.
22
	# Here we use it to have IPv4 numbers matched using CIDR blocks instead
23
	# of regular expressions.  See below for the definition of cidr-blocks.
24
	#
25
	"\\([0-9]+\\.\\)+[0-9]+" = "struct cidr-blocks";
26
	"^[0-9A-Fa-f]+:[0-9A-Fa-f:.]*\\(/[0-9]+\\)?$" = "struct cidr6-blocks";
27
	"^CORE-[0-9]+$" = "struct handles";
28
	"^CO[CH]O-[0-9]+$" = "struct handles";
29
	".*-[A-Z]+$" = "struct handles";
30
31
	#
32
	# Catch AS numbers
33
	#
34
	"^[0-9]+$" = "whois.arin.net";
35
	"^ASN-.+" = "whois.arin.net";
36
	"^AS[0-9]+$" = "whois.radb.net";
37
38
	#
39
	# Catch ARIN nameserver records
40
	#
41
	"^NS[0-9]+-HST$" = "whois.arin.net";
42
43
	#
44
	# Catch ARIN netblock records
45
	#
46
	"^!?NET\\(BLK\\)?\\(-[A-Z0-9]+\\)+$" = "whois.arin.net";
47
48
	#
49
	# Catch Verio netblock records
50
	#
51
	"^!?NET\\(BLK\\)?-VRIO\\(-[A-Z0-9]+\\)+$" = "rwhois.verio.net";
52
53
	#
54
	# Catch Registro .BR ownerid records
55
	#
56
	"^[0-9]+\\.[0-9]+\\.[0-9]+/[0-9]+-[0-9]+$" = "whois.nic.br";
57
58
	#
59
	# Japanese NIC handles
60
	#
61
	"^[A-Z]+[0-9]+JP$" = "whois.nic.ad.jp";
62
	#
63
	# If your host and network supports it, you can also specify IPv6
64
	# addresses in the server field.
65
	#
66
	# ".*:.*" = "::1"
67
	#
68
69
	#
70
	# This is a special construct designed with the whois-servers.net
71
        # service in mind. If you use this, jwhois will query whois-servers.net
72
        # for which whois server to use for each domain query.
73
	#
74
	# default = "whois-servers";
75
76
	#
77
	# Sub-TLA Assignments
78
	#
79
80
	#
81
	# Pseudo-ccTLDs must be listed above gTLDs
82
	#
83
 	"\\.ae\\.org$" = "whois.centralnic.net";
84
	"\\.br\\.com$" = "whois.centralnic.net";
85
	"\\.cn\\.com$" = "whois.centralnic.net";
86
	"\\.de\\.com$" = "whois.centralnic.net";
87
	"\\.eu\\.com$" = "whois.centralnic.net";
88
	"\\.eu\\.org$" = "whois.eu.org";
89
	"\\.gb\\.com$" = "whois.centralnic.net";
90
	"\\.gb\\.net$" = "whois.centralnic.net";
91
	"\\.hu\\.com$" = "whois.centralnic.net";
92
	"\\.jpn\\.com$" = "whois.centralnic.net";
93
 	"\\.kr\\.com$" = "whois.centralnic.net";
94
	"\\.no\\.com$" = "whois.centralnic.net";
95
	"\\.qc\\.com$" = "whois.centralnic.net";
96
	"\\.ru\\.com$" = "whois.centralnic.net";
97
	"\\.sa\\.com$" = "whois.centralnic.net";
98
	"\\.se\\.com$" = "whois.centralnic.net";
99
	"\\.se\\.net$" = "whois.centralnic.net";
100
	"\\.uk\\.com$" = "whois.centralnic.net";
101
	"\\.uk\\.net$" = "whois.centralnic.net";
102
	"\\.us\\.com$" = "whois.centralnic.net";
103
	"\\.uy\\.com$" = "whois.centralnic.net";
104
	"\\.web\\.com$" = "whois.centralnic.net";
105
	"\\.za\\.com$" = "whois.centralnic.net";
106
107
	"\\.ac$" = "whois.nic.ac";
108
	"\\.ae$" = "whois.uaenic.ae";
109
	"\\.aero$" = "whois.aero";
110
	"\\.af$" = "whois.nic.af";
111
	"\\.ag$" = "whois.nic.ag";
112
	"\\.ai$" = "whois.offshore.ai";
113
	"\\.al$" = "whois.ripe.net";
114
	"\\.am$" = "whois.amnic.net";
115
	"\\.ar$" = "www.nic.ar";
116
	"\\.as$" = "whois.nic.as";
117
	"\\.at$" = "whois.nic.at";
118
	"\\.asn\\.au$" = "whois.ausregistry.net.au";
119
	"\\.com\\.au$" = "whois.ausregistry.net.au";
120
	"\\.id\\.au$" = "whois.ausregistry.net.au";
121
	"\\.net\\.au$" = "whois.ausregistry.net.au";
122
	"\\.org\\.au$" = "whois.ausregistry.net.au";
123
	"\\.au$" = "whois.aunic.net";
124
	"\\.az$" = "whois.ripe.net";
125
	"\\.ba$" = "whois.ripe.net";
126
	"\\.be$" = "whois.dns.be";
127
	"\\.bg$" = "whois.register.bg";
128
	"\\.bi$" = "www.nic.bi";
129
	"\\.biz$" = "whois.neulevel.biz";
130
	"\\.bj$" = "whois.nic.bj";
131
	"\\.bm$" = "rwhois.ibl.bm 4321";
132
	"\\.br$" = "whois.nic.br";
133
	"\\.bv$" = "whois.ripe.net";
134
	"\\.by$" = "whois.ripe.net";
135
	"\\.bz$" = "whois.belizenic.bz";
136
	"\\.ca$" = "whois.cira.ca";
137
	"\\.cat$" = "whois.cat";
138
	"\\.cc$" = "whois.nic.cc";
139
	"\\.cd$" = "whois.nic.cd";
140
	"\\.cg$" = "www.nic.cg";
141
	"\\.ch$" = "whois.nic.ch";
142
	"\\.ci$" = "whois.nic.ci";
143
	"\\.ck$" = "whois.nic.ck";
144
	"\\.cl$" = "whois.nic.cl";
145
	"\\.edu\\.cn$" = "whois.edu.cn";
146
	"\\.cn$" = "whois.cnnic.net.cn";
147
	"\\.com$" {
148
		whois-server = "whois.verisign-grs.com";
149
		query-format = "domain $*";
150
	}
151
	"\\.coop$" = "whois.nic.coop";
152
	"\\.cx$" = "whois.nic.cx";
153
	"\\.cy$" = "whois.ripe.net";
154
	"\\.cz$" = "whois.nic.cz";
155
	"\\.de$" {
156
		whois-server = "whois.denic.de";
157
		query-format = "-C UTF-8 -T dn,ace $*";
158
	}
159
	"\\.dk$" = "whois.dk-hostmaster.dk";
160
	"\\.dm$" = "whois.nic.dm";
161
	"\\.do$" = "whois.nic.do";
162
	"\\.dz$" = "whois.ripe.net";
163
	"\\.ec$" = "www.nic.ec";
164
	"\\.edu$" = "whois.educause.net";
165
	"\\.ee$" = "whois.eenet.ee";
166
	"\\.eg$" = "whois.ripe.net";
167
	"\\.es$" = "www.nic.es";
168
	"\\.eu$" = "whois.eu";
169
	"\\.fi$" = "whois.ficora.fi";
170
	"\\.fj$" = "whois.usp.ac.fj";
171
	"\\.fm$" = "www.dot.fm";
172
	"\\.fo$" = "whois.ripe.net";
173
	"\\.fr$" = "whois.nic.fr";
174
	"\\.gi$" = "www.nic.gi";
175
	"\\.gov$" = "whois.nic.gov";
176
	"\\.gg$" = "whois.isles.net";
177
	"\\.gm$" = "whois.ripe.net";
178
	"\\.gp$" = "whois.nic.gp";
179
	"\\.gr$" = "whois.ripe.net";
180
	"\\.gs$" = "203.119.12.22";
181
	"\\.gt$" = "www.gt";
182
	"\\.hk$" = "whois.hkdnr.net.hk";
183
	"\\.hm$" = "whois.registry.hm";
184
	"\\.hr$" = "www.dns.hr";
185
	"\\.hu$" = "whois.nic.hu";
186
	"\\.id$" = "whois.idnic.net.id";
187
	"\\.ie$" = "whois.domainregistry.ie";
188
	"\\.il$" = "whois.isoc.org.il";
189
	"\\.in$" = "whois.inregistry.in";
190
	"\\.info$" = "whois.afilias.info";
191
	"\\.int$" = "whois.iana.org";
192
	"\\.io$" = "www.io.io";
193
	"\\.ir$" = "whois.nic.ir";
194
	"\\.im$" = "whois.nic.im";
195
	"\\.is$" = "whois.isnic.is";
196
	"\\.it$" = "whois.nic.it";
197
	"\\.je$" = "whois.isles.net";
198
	"\\.jp$" {
199
		whois-server = "whois.jprs.jp";
200
		query-format = "$* /e";
201
	}
202
	"\\.kg$" = "whois.domain.kg";
203
	"\\.ki$" = "whois.nic.ki";
204
	"\\.kr$" = "whois.krnic.net";
205
	"\\.kz$" = "whois.nic.kz";
206
	"\\.la$" = "whois.nic.la";
207
	"\\.lb$" = "cgi.aub.edu.lb";
208
	"\\.li$" = "whois.nic.li";
209
	"\\.lk$" = "whois.nic.lk";
210
	"\\.lt$" = "whois.domreg.lt";
211
	"\\.lu$" = "whois.dns.lu";
212
	"\\.lv$" = "whois.nic.lv";
213
	"\\.ly$" = "whois.nic.ly";
214
	"\\.ma$" = "whois.ripe.net";
215
	"\\.mil$" = "whois.nic.mil";
216
	"\\.mk$" = "whois.ripe.net";
217
	"\\.mm$" = "whois.nic.mm";
218
	"\\.mobi$" = "whois.dotmobiregistry.net";
219
	"\\.ms$" = "whois.adamsnames.tc";
220
	"\\.mt$" = "www.um.edu.mt";
221
	"\\.mu$" = "whois.nic.mu";
222
	"\\.museum$" = "whois.museum";
223
	"\\.mw$" = "www.tarsus.net";
224
	"\\.mx$" = "whois.nic.mx";
225
	"\\.my$" = "whois.mynic.net.my";
226
	"\\.na$" = "whois.na-nic.com.na";
227
	"\\.name$" = "whois.nic.name";
228
	"\\.net$" {
229
		whois-server = "whois.verisign-grs.com";
230
		query-format = "domain $*";
231
	}
232
	"\\.ng$" = "whois.rg.net";
233
	"\\.nl$" = "whois.domain-registry.nl";
234
	"\\.no$" = "whois.norid.no";
235
	"\\.nu$" = "whois.nic.nu";
236
	"\\.nz$" = "whois.srs.net.nz";
237
	"\\.org$" = "whois.publicinterestregistry.net";
238
	"\\.pe$" = "whois.nic.pe";
239
	"\\.pk$" = "pknic.net.pk";
240
	"\\.pl$" = "whois.dns.pl";
241
	"\\.pm$" = "whois.nic.pm";
242
	"\\.pro$" = "whois.registrypro.pro";
243
	"\\.pt$" = "whois.dns.pt";
244
	"\\.pw$" = "whois.nic.pw";
245
	"\\.re$" = "whois.nic.re";
246
	"\\.ro$" = "whois.rotld.ro";
247
	"\\.ru$" = "whois.ripn.net";
248
	"\\.rw$" = "www.nic.rw";
249
	"\\.sa$" = "saudinic.net.sa";
250
	"\\.se$" = "whois.iis.se";
251
	"\\.sg$" = "whois.nic.net.sg";
252
	"\\.sh$" = "whois.nic.sh";
253
	"\\.si$" = "whois.arnes.si";
254
	"\\.sj$" = "whois.ripe.net";
255
	"\\.sk$" = "whois.ripe.net";
256
	"\\.sm$" = "whois.ripe.net";
257
	"\\.sr$" = "whois.register.sr";
258
	"\\.st$" = "whois.nic.st";
259
	"\\.su$" = "whois.ripn.net";
260
	"\\.tc$" = "whois.adamsnames.tc";
261
	"\\.tf$" = "whois.afnic.fr";
262
	"\\.tg$" = "www.nic.tg";
263
	"\\.th$" = "whois.thnic.net";
264
	"\\.tj$" = "whois.nic.tj";
265
	"\\.tk$" = "whois.dot.tk";
266
	"\\.tl$" = "whois.nic.tl";
267
	"\\.tm$" = "whois.nic.tm";
268
	"\\.tn$" = "whois.ripe.net";
269
	"\\.to$" = "whois.tonic.to";
270
	"\\.tr$" = "whois.nic.tr";
271
	"\\.tt$" = "www.nic.tt";
272
	"\\.tv$" = "whois.nic.tv";
273
	"\\.tw$" = "whois.twnic.net";
274
	"\\.ua$" = "whois.com.ua";
275
	"\\.ug$" = "whois.co.ug";
276
	"\\.ac\\.uk$" = "whois.ja.net";
277
	"\\.gov\\.uk$" = "whois.ja.net";
278
	"\\.uk$" = "whois.nic.uk";
279
	"\\.fed\\.us$" = "whois.nic.gov";
280
	"\\.us$" = "whois.nic.us";
281
	"\\.com\\.uy$" = "dns.antel.net.uy";
282
	"\\.uy$" = "www.rau.edu.uy"; # is a whois server
283
	"\\.uz$" = "www.noc.uz";
284
	"\\.va$" = "whois.ripe.net";
285
	"\\.ve$" = "whois.nic.ve";
286
	"\\.vi$" = "www.nic.vi";
287
	"\\.vg$" = "whois.adamsnames.tc";
288
	"\\.vn$" = "www.vnnic.net.vn";
289
	"\\.vu$" = "www.vunic.vu";
290
	"\\.wf$" = "whois.nic.wf";
291
	"\\.ws$" = "whois.worldsite.ws";
292
	"\\.yt$" = "whois.nic.yt";
293
	"\\.yu$" = "whois.ripe.net";
294
	"\\.ac\\.za$" = "whois.ac.za";
295
	"\\.org\\.za$" = "rwhois.org.za 4321";
296
	"\\.co\\.za$" = "whois.co.za";
297
	# "\\.za$" = "whois.frd.ac.za";
298
299
	#
300
	# Specify different port numbers to connect to by postfixing the IP
301
	# number or host with a space and the designated port. Default is to
302
	# use the whois port from /etc/services.
303
	#
304
	# ".*" = "whois.internic.net 666";
305
306
	default {
307
		whois-server = "whois.internic.net";
308
		# Make sure we only match on domain names
309
		query-format = "domain $*";
310
	}
311
}
312
313
#
314
# cidr-blocks contains a list of all known CIDR blocks assigned to
315
# RIPE or APNIC. Default all queries to ARIN which has most other blocks.
316
#
317
# see http://www.iana.org/assignments/ipv4-address-space
318
#
319
cidr-blocks {
320
	type = cidr;
321
322
# Note: JPNIC doesn't appear to publish lists of netblocks on their
323
#       website - this data was derived by searching for "Japan Network
324
#       Information Center" in the ARIN and APNIC databases.  It may
325
#       not be complete.
326
327
	"61.112.0.0/12" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
328
	"61.192.0.0/12" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
329
	"61.208.0.0/13" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
330
	"133.0.0.0/8" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPANB-INET
331
	"150.100.0.0/16" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
332
	"150.1.0.0/16" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
333
	"150.16.0.0/12" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
334
	"150.2.0.0/15" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
335
	"150.32.0.0/11" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
336
	"150.4.0.0/14" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
337
	"150.64.0.0/11" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
338
	"150.8.0.0/13" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
339
	"150.96.0.0/14" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN2
340
	"158.198.0.0/15" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET-1
341
	"158.200.0.0/13" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET-1
342
	"158.208.0.0/13" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET-1
343
	"158.216.0.0/15" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET-1
344
	"163.130.0.0/15" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET
345
	"163.132.0.0/14" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET
346
	"163.136.0.0/13" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET
347
	"163.144.0.0/14" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET
348
	"163.148.0.0/15" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-NET
349
	"192.218.0.0/16" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPANC-INET-BLOCK1
350
	"192.244.0.0/16" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPAN-INET-C
351
	"192.41.192.0/24" = "whois.nic.ad.jp";	# ARIN NET-UTOKYO-CON1
352
	"192.47.0.0/17" = "whois.nic.ad.jp";	# ARIN NETBLK-KIT-BLOCK
353
	"192.47.128.0/18" = "whois.nic.ad.jp";	# ARIN NETBLK-KIT-BLOCK
354
	"192.47.142.0/24" = "whois.nic.ad.jp";	# ARIN ITC-JP2
355
	"192.47.192.0/19" = "whois.nic.ad.jp";	# ARIN NETBLK-KIT-BLOCK
356
	"192.47.224.0/20" = "whois.nic.ad.jp";	# ARIN NETBLK-KIT-BLOCK
357
	"192.47.240.0/23" = "whois.nic.ad.jp";	# ARIN NETBLK-KIT-BLOCK
358
	"192.51.128.0/17" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPANC-INET4
359
	"192.51.16.0/20" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPANC-INET4
360
	"192.51.32.0/19" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPANC-INET4
361
	"192.51.64.0/18" = "whois.nic.ad.jp";	# ARIN NETBLK-JAPANC-INET4
362
	"202.11.0.0/16" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
363
	"202.13.0.0/16" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
364
	"202.15.0.0/16" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
365
	"202.16.0.0/14" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
366
	"202.23.0.0/16" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
367
	"202.24.0.0/15" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
368
	"202.26.0.0/16" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
369
	"202.32.0.0/14" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
370
	"202.48.0.0/16" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
371
	"202.208.0.0/12" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
372
	"202.224.0.0/11" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
373
	"203.136.0.0/14" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
374
	"203.140.0.0/15" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
375
	"203.178.0.0/15" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
376
	"203.180.0.0/14" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
377
	"210.128.0.0/11" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
378
	"210.136.0.0/13" = "whois.nic.ad.jp";
379
	"210.160.0.0/12" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
380
	"210.188.0.0/14" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
381
	"210.196.0.0/14" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
382
	"210.224.0.0/12" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
383
	"210.248.0.0/13" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
384
	"211.0.0.0/12" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
385
	"211.16.0.0/14" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
386
	"211.52.0.0/14" = "whois.nic.or.kr";
387
	"211.56.0.0/13" = "whois.nic.or.kr";
388
	"211.104.0.0/13" = "whois.nic.or.kr";
389
	"211.112.0.0/13" = "whois.nic.or.kr";
390
	"211.120.0.0/13" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
391
	"211.128.0.0/13" = "whois.nic.ad.jp";	# APNIC JPNIC-NET-JP
392
	"211.172.0.0/14" = "whois.nic.or.kr";
393
	"211.176.0.0/12" = "whois.nic.or.kr";
394
	"211.192.0.0/13" = "whois.nic.or.kr";
395
	"219.96.0.0/11" = "whois.nic.ad.jp";
396
	"220.104.0.0/13" = "whois.nic.ad.jp";
397
	"220.208.0.0/12" = "whois.nic.ad.jp";
398
	"221.112.0.0/13" = "whois.nic.ad.jp";
399
400
	"24.132.0.0/16" = "whois.ripe.net";
401
	"24.232.0.0/16" = "whois.lacnic.net";
402
        "41.0.0.0/8" = "whois.afrinic.net"; 
403
	"43.0.0.0/8" = "whois.v6nic.net";
404
	"58.0.0.0/8" = "whois.apnic.net";
405
	"59.0.0.0/8" = "whois.apnic.net";
406
	"60.0.0.0/8" = "whois.apnic.net";
407
	"61.0.0.0/8" = "whois.apnic.net";
408
	"62.135.36.0/17" = "whois.afrinic.net";
409
	"62.0.0.0/8" = "whois.ripe.net";
410
	"80.87.64.0/19" = "whois.afrinic.net";
411
	"80.0.0.0/8" = "whois.ripe.net";
412
	"81.91.224.0/20" = "whois.afrinic.net";
413
	"81.192.0.0/16" = "whois.afrinic.net";
414
	"81.0.0.0/8" = "whois.ripe.net";
415
	"82.101.128.0/18" = "whois.afrinic.net";
416
        "82.201.128.0/17" = "whois.afrinic.net";
417
        "82.201.160.0/19" = "whois.afrinic.net";
418
        "82.201.224.0/19" = "whois.afrinic.net"; 
419
	"82.0.0.0/8" = "whois.ripe.net";
420
	"83.0.0.0/8" = "whois.ripe.net";
421
	"84.36.0.0/17" = "whois.afrinic.net";
422
	"84.0.0.0/8" = "whois.ripe.net";
423
	"85.0.0.0/8" = "whois.ripe.net";
424
	"86.0.0.0/8" = "whois.ripe.net";
425
	"87.0.0.0/8" = "whois.ripe.net";
426
	"88.0.0.0/8" = "whois.ripe.net";
427
        "89.0.0.0/8" = "whois.ripe.net";
428
        "90.0.0.0/8" = "whois.ripe.net";
429
        "91.0.0.0/8" = "whois.ripe.net"; 
430
        "121.0.0.0/8" = "whois.apnic.net";
431
        "122.0.0.0/8" = "whois.apnic.net";
432
        "123.0.0.0/8" = "whois.apnic.net";
433
        "124.0.0.0/8" = "whois.apnic.net";
434
        "125.0.0.0/8" = "whois.apnic.net";
435
        "126.0.0.0/8" = "whois.apnic.net"; 
436
	"129.132.0.0/16" = "whois.ripe.net";
437
	"129.177.0.0/16" = "whois.ripe.net";
438
	"129.187.0.0/16" = "whois.ripe.net";
439
	"130.225.0.0/16" = "whois.ripe.net";
440
	"130.226.0.0/15" = "whois.ripe.net";
441
	"130.227.0.0/16" = "whois.ripe.net";
442
	"130.228.0.0/14" = "whois.ripe.net";
443
	"130.232.0.0/13" = "whois.ripe.net";
444
	"130.240.0.0/14" = "whois.ripe.net";
445
	"130.244.0.0/16" = "whois.ripe.net";
446
	"130.244.0.0/16" = "whois.ripe.net";
447
	"132.64.0.0/13" = "whois.ripe.net";
448
	"132.72.0.0/14" = "whois.ripe.net";
449
	"132.76.0.0/15" = "whois.ripe.net";
450
	"132.78.0.0/16" = "whois.ripe.net";
451
	"137.138.0.0/16" = "whois.ripe.net";
452
	"138.130.0.0/16" = "whois.apnic.net";
453
	"140.109.0.0/16" = "whois.apnic.net";
454
	"140.110.0.0/15" = "whois.apnic.net";
455
	"140.112.0.0/12" = "whois.apnic.net";
456
	"140.116.0.0/14" = "whois.apnic.net";
457
	"140.120.0.0/13" = "whois.apnic.net";
458
	"140.128.0.0/13" = "whois.apnic.net";
459
	"140.136.0.0/15" = "whois.apnic.net";
460
	"140.138.0.0/16" = "whois.apnic.net";
461
	"141.223.0.0/16" = "whois.apnic.net";
462
	"143.89.0.0/16" = "whois.apnic.net";
463
	"143.90.0.0/16" = "whois.apnic.net";
464
	"144.130.0.0/15" = "whois.apnic.net";
465
	"144.132.0.0/14" = "whois.apnic.net";
466
	"144.136.0.0/14" = "whois.apnic.net";
467
	"144.140.0.0/16" = "whois.apnic.net";
468
	"145.0.0.0/8" = "whois.ripe.net";
469
	"147.46.0.0/15" = "whois.apnic.net";
470
	"150.1.0.0/16" = "whois.apnic.net";
471
	"150.2.0.0/15" = "whois.apnic.net";
472
	"150.4.0.0/14" = "whois.apnic.net";
473
	"150.8.0.0/13" = "whois.apnic.net";
474
	"150.16.0.0/12" = "whois.apnic.net";
475
	"150.32.0.0/11" = "whois.apnic.net";
476
	"150.64.0.0/11" = "whois.apnic.net";
477
	"150.96.0.0/14" = "whois.apnic.net";
478
	"150.100.0.0/15" = "whois.apnic.net";
479
	"150.217.0.0/16" = "whois.ripe.net";
480
	"151.3.0.0/16" = "whois.ripe.net";
481
	"151.4.0.0/15" = "whois.ripe.net";
482
	"151.10.0.0/15" = "whois.ripe.net";
483
	"151.12.0.0/14" = "whois.ripe.net";
484
	"151.16.0.0/12" = "whois.ripe.net";
485
	"151.32.0.0/11" = "whois.ripe.net";
486
	"151.64.0.0/11" = "whois.ripe.net";
487
	"151.96.0.0/14" = "whois.ripe.net";
488
	"151.100.0.0/16" = "whois.ripe.net";
489
	"155.230.0.0/16" = "whois.apnic.net";
490
	"158.190.0.0/15" = "whois.ripe.net";
491
	"158.192.0.0/14" = "whois.ripe.net";
492
	"158.196.0.0/15" = "whois.ripe.net";
493
	"159.147.0.0/16" = "whois.ripe.net";
494
	"159.148.0.0/15" = "whois.ripe.net";
495
	"160.216.0.0/14" = "whois.ripe.net";
496
	"160.220.0.0/16" = "whois.ripe.net";
497
	"161.110.0.0/15" = "whois.ripe.net";
498
	"161.112.0.0/16" = "whois.ripe.net";
499
	"163.13.0.0/16" = "whois.apnic.net";
500
	"163.14.0.0/15" = "whois.apnic.net";
501
	"163.16.0.0/12" = "whois.apnic.net";
502
	"163.32.0.0/16" = "whois.apnic.net";
503
	"163.156.0.0/14" = "whois.ripe.net";
504
	"163.160.0.0/12" = "whois.ripe.net";
505
	"164.0.0.0/11" = "whois.ripe.net";
506
	"164.32.0.0/13" = "whois.ripe.net";
507
	"164.40.0.0/16" = "whois.ripe.net";
508
	"164.100.0.0/16" = "whois.apnic.net";
509
	"164.128.0.0/12" = "whois.ripe.net";
510
	"164.160.0.0/14" = "whois.apnic.net";
511
	"164.164.0.0/16" = "whois.apnic.net";
512
	"165.21.0.0/16" = "whois.apnic.net";
513
	"165.76.0.0/16" = "whois.apnic.net";
514
	"165.165.0.0/16" = "whois.afrinic.net";
515
	"165.228.0.0/15" = "whois.apnic.net";
516
	"168.95.0.0/16" = "whois.apnic.net";
517
	"168.126.0.0/16" = "whois.apnic.net";
518
	"168.187.0.0/16" = "whois.ripe.net";
519
	"169.208.0.0/16" = "whois.apnic.net";
520
	"171.16.0.0/12" = "whois.ripe.net";
521
	"171.32.0.0/15" = "whois.ripe.net";
522
        "189.0.0.0/8" = "whois.lacnic.net";
523
        "190.0.0.0/8" = "whois.lacnic.net";
524
        "196.0.0.0/8" = "whois.afrinic.net"; 
525
	"192.16.192.0/24" = "whois.ripe.net";
526
	"192.114.0.0/15" = "whois.ripe.net";
527
	"192.116.0.0/15" = "whois.ripe.net";
528
	"192.118.0.0/16" = "whois.ripe.net";
529
	"192.140.1.0/24" = "whois.ripe.net";
530
	"192.140.2.0/23" = "whois.ripe.net";
531
	"192.140.4.0/22" = "whois.ripe.net";
532
	"192.140.8.0/21" = "whois.ripe.net";
533
	"192.140.16.0/20" = "whois.ripe.net";
534
	"192.140.32.0/19" = "whois.ripe.net";
535
	"192.140.64.0/18" = "whois.ripe.net";
536
	"192.140.128.0/17" = "whois.ripe.net";
537
	"192.141.0.0/16" = "whois.ripe.net";
538
	"192.142.0.0/15" = "whois.ripe.net";
539
	"192.144.0.0/16" = "whois.ripe.net";
540
	"192.145.0.0/17" = "whois.ripe.net";
541
	"192.145.128.0/18" = "whois.ripe.net";
542
	"192.145.192.0/19" = "whois.ripe.net";
543
	"192.145.224.0/22" = "whois.ripe.net";
544
	"192.145.228.0/23" = "whois.ripe.net";
545
	"192.145.230.0/24" = "whois.ripe.net";
546
	"192.164.0.0/16" = "whois.ripe.net";
547
	"193.0.0.0/8" = "whois.ripe.net";
548
	"194.0.0.0/8" = "whois.ripe.net";
549
	"195.166.224.0/19" = "whois.afrinic.net";
550
	"195.0.0.0/8" = "whois.ripe.net";
551
	"196.2.96.0/19" = "whois.afrinic.net";
552
	"196.2.128.0/17" = "whois.afrinic.net";
553
	"196.200.0.0/13" = "whois.afrinic.net";
554
	"200.17.0.0/16" = "whois.nic.br";
555
	"200.128.0.0/9" = "whois.nic.br";
556
	"200.0.0.0/8" = "whois.lacnic.net";
557
	"201.0.0.0/8" = "whois.lacnic.net";
558
	"202.0.0.0/8" = "whois.apnic.net";
559
	"203.0.0.0/8" = "whois.apnic.net";
560
	"210.0.0.0/8" = "whois.apnic.net";
561
	"211.0.0.0/8" = "whois.apnic.net";
562
	"212.22.160.0/19" = "whois.afrinic.net";
563
	"212.0.0.0/8" = "whois.ripe.net";
564
	"213.136.96.0/19" = "whois.afrinic.net";
565
	"213.154.64.0/19" = "whois.afrinic.net";
566
	"213.0.0.0/8" = "whois.ripe.net";
567
	"217.0.0.0/8" = "whois.ripe.net";
568
	"218.0.0.0/8" = "whois.apnic.net";
569
	"219.0.0.0/8" = "whois.apnic.net";
570
	"220.0.0.0/8" = "whois.apnic.net";
571
	"221.0.0.0/8" = "whois.apnic.net";
572
	"222.0.0.0/8" = "whois.apnic.net";
573
574
	default = "whois.arin.net";
575
}
576
577
#
578
# See http://www.iana.org/assignments/ipv6-unicast-address-assignments
579
#
580
cidr6-blocks {
581
	type = cidr6;
582
583
	"2001:0000::/23" = "whois.iana.org";
584
	"2001:0200::/23" = "whois.apnic.net";
585
	"2001:0400::/23" = "whois.arin.net";
586
	"2001:0600::/23" = "whois.ripe.net";
587
	"2001:0800::/23" = "whois.ripe.net";
588
	"2001:0A00::/23" = "whois.ripe.net";
589
	"2001:0C00::/23" = "whois.apnic.net";
590
	"2001:0E00::/23" = "whois.apnic.net";
591
	"2001:1200::/23" = "whois.lacnic.net";
592
	"2001:1400::/23" = "whois.ripe.net";
593
	"2001:1600::/23" = "whois.ripe.net";
594
	"2001:1800::/23" = "whois.arin.net";
595
	"2001:1A00::/23" = "whois.ripe.net";
596
	"2001:1C00::/23" = "whois.ripe.net";
597
	"2001:1E00::/23" = "whois.ripe.net";
598
	"2001:2000::/20" = "whois.ripe.net";
599
	"2001:3000::/21" = "whois.ripe.net";
600
	"2001:3800::/22" = "whois.ripe.net";
601
	"2001:4000::/23" = "whois.ripe.net";
602
	"2001:4200::/23" = "whois.arin.net";
603
	"2001:4400::/23" = "whois.apnic.net";
604
	"2001:4600::/23" = "whois.ripe.net";
605
	"2001:4800::/23" = "whois.arin.net";
606
	"2001:4A00::/23" = "whois.ripe.net";
607
	"2001:4C00::/23" = "whois.ripe.net";
608
	"2001:5000::/20" = "whois.ripe.net";
609
	"2001:8000::/19" = "whois.apnic.net";
610
	"2001:A000::/20" = "whois.apnic.net";
611
	"2001:B000::/20" = "whois.apnic.net";
612
613
	"2003:0000::/18" = "whois.ripe.net";
614
615
	"2400:0000::/19" = "whois.apnic.net";
616
	"2400:2000::/19" = "whois.apnic.net";
617
	"2400:4000::/21" = "whois.apnic.net";
618
	"2404:0000::/23" = "whois.apnic.net";
619
620
	"2600:0000::/22" = "whois.arin.net";
621
	"2604:0000::/22" = "whois.arin.net";
622
	"2608:0000::/22" = "whois.arin.net";
623
	"260C:0000::/22" = "whois.arin.net";
624
	"2610:0000::/23" = "whois.arin.net";
625
626
	"2800:0000::/23" = "whois.lacnic.net";
627
628
	"2A00:0000::/21" = "whois.ripe.net";
629
	"2A01:0000::/16" = "whois.ripe.net";
630
631
	#
632
	# Experimental IPv6 network 6bone (RFC2471)
633
	# Phaseout at Jun, 6 2006 (RFC3701)
634
	#
635
	"3FFE::/16" = "whois.6bone.net";
636
}
637
638
#
639
# Handles for the various registries.
640
#
641
handles {
642
	type = regex;
643
644
	"^!?NET\\(BLK\\)?\\(-[A-Z0-9]+\\)+$" = "whois.arin.net";
645
646
	"^COCO-[0-9]+$" = "whois.corenic.net";
647
	"^CORE-[0-9]+$" = "whois.corenic.net";
648
	"^COHO-[0-9]+$" = "whois.corenic.net";
649
650
	".*-RIPE$" = "whois.ripe.net";
651
	".*-MNT$" = "whois.ripe.net";
652
	".*-ARIN$" = "whois.arin.net";
653
	".*-AP$" = "whois.apnic.net";
654
	".*-ORG$" = "whois.internic.net";
655
	".*-DOM$" = "whois.internic.net";
656
	".*-NORID$" = "whois.norid.no";
657
	".*-GANDI$" = "whois.gandi.net";
658
	".*-AU$" = "whois.aunic.net";
659
	".*-CKNIC" = "whois.nic.ck";
660
	".*-IDNIC$" = "whois.idnic.net.id";
661
	".*-KG$" = "whois.domain.kg";
662
	".*-NICAT$" = "whois.nic.at";
663
	".*-CZ$" = "whois.nic.cz";
664
	".*-NICIR$" = "whois.nic.ir";
665
	".*-UYNIC$" = "www.rau.edu.uy";
666
	".*-ITNIC$" = "whois.nic.it";
667
	".*-FRNIC$" = "whois.nic.fr";
668
	".*-LACNIC$" = "whois.lacnic.net";
669
	".*-DK$" = "whois.dk-hostmaster.dk";
670
	".*-SA$" {
671
		whois-server = "saudinic.net.sa";
672
		query-format = "PERSON $*";
673
	}
674
}
675
676
#
677
# The server-options block defines a number of options specific for
678
# each host. 
679
#
680
server-options {
681
	"rwhois\\.nic\\.ve" {
682
		rwhois = true;
683
		rwhois-display = "dump";
684
		rwhois-limit = 10;
685
	}
686
	"rwhois\\.exodus\\.net" {
687
		rwhois = true;
688
	}
689
	"whois\\.publicinterestregistry\\.net" {
690
		whois-redirect = ".*Whois Server:\\(.*\\)";
691
	}
692
	".*\\.internic\\.net" {
693
		#
694
		# This will match output from whois.internic.net. The
695
		# parenteses must be escaped and should enclose the hostname
696
		# to which to redirect the search.
697
		#
698
		whois-redirect = ".*Whois Server: \\(.*\\)";
699
	}
700
701
	"whois\\.crsnic\\.net" {
702
		whois-redirect = ".*Whois Server: \\(.*\\)";
703
	}
704
705
	"whois\\.apnic\\.net" {
706
		whois-redirect = ".*http://\\(whois\\.nic\\.or\\.kr\\)/";
707
		whois-redirect = ".*at \\([Ww][Hh][Oo][Ii][Ss]\\.[A-Za-z]*\\.[Nn][Ee][Tt]\\)";
708
	}
709
710
	"whois\\.arin\\.net" {
711
		#
712
		# Content redirection for whois.arin.net - allows redirection
713
		# of European and Asia-Pacific addresses to the appropriate
714
		# servers.
715
		#
716
		whois-redirect = ".*at \\([Ww][Hh][Oo][Ii][Ss]\\.[A-Za-z]*\\.[Nn][Ee][Tt]\\)";
717
		whois-redirect = ".* \\([Rr]+[Ww][Hh][Oo][Ii][Ss]\\.[A-Za-z]*\\.[Nn][Ee][Tt]\\) \\([0-9]*\\)";
718
		whois-redirect = ".* r?whois://\\([^:]*\\):?\\([0-9]*\\)?/?";
719
	}
720
721
	"whois\\.ncst\\.ernet\\.in" {
722
		# query-format defines how to format a whois query.
723
		# The special variable $* will be replaced by
724
		# the query as specified by the user.
725
		query-format = "domain $*";
726
	}
727
728
	".*\\.connect\\.com\\.au" {
729
		#
730
		# Referals from the net.au whois server.
731
		#
732
		whois-redirect =  ".*referto: whois -h \\([^ ]*\\) -p \\([0-9]*\\)";
733
	}
734
735
	"whois\\.co\\.za" {
736
		http = "true";
737
		http-method = "GET";
738
		http-action = "/cgi-bin/whois.sh";
739
		form-element = "Domain";			# <input> element
740
	}
741
742
	"www\\.nic\\.es" {
743
		http = "true";
744
		http-method = "POST";
745
		http-action = "/cgi-bin/consulta.whois";
746
		form-element = "key";
747
		form-extra = "list=Dominios&tipo=procesar";	# Other <input> elements
748
	}
749
750
	"www\\.nic\\.tt" {
751
		http = "true";
752
		http-method = "POST";
753
		http-action = "/cgi-bin/search.pl";
754
		form-element = "name";
755
	}
756
757
	"www\\.um\\.edu\\.mt" {
758
		http = "true";
759
		http-method = "GET";
760
		http-action = "/cgi-bin/nic/whois";
761
		form-element = "domain";
762
	}
763
764
	"www\\.gt" {
765
		http = "true";
766
		http-method = "GET";
767
		http-action = "/cgi-bin/whois.cgi";
768
		form-element = "domain";
769
	}
770
771
	# This uses an advanced query using the query-format syntax.
772
	# query-format cannot be combined with form-element or form-extra.
773
	"www\\.dns\\.hr" {
774
		http = "true";
775
		http-method = "POST";
776
		http-action = "/asp/trazidomenu.asp";
777
		query-format = "Upit=${+2}"; # All but last domain segment
778
	}
779
780
	"whois\\.offshore\\.ai" {
781
		http = "true";
782
		http-method = "POST";
783
		http-action = "/cgi-bin/whois.pl";
784
		form-element = "domain-name";
785
	}
786
787
	"www\\.io\\.io" {
788
		http = "true";
789
		http-method = "GET";
790
		http-action = "/cgi-bin/whois";
791
		form-element = "query";
792
	}
793
794
	"www\\.nic\\.ec" {
795
		http = "true";
796
		http-method = "GET";
797
		http-action = "/consulta/whois.asp";
798
		form-element = "dominio";
799
	}
800
801
	"www\\.nic\\.gi" {
802
		http = "true";  # At least, I can't connect on port 43
803
		http-method = "POST";
804
		http-action = "/whois/";
805
		form-element = "lookup";
806
	}
807
808
	"www\\.nic\\.kz" {
809
		# whois.nic.kz exists but wasn't checkable
810
		http = "true";
811
		http-method = "GET";
812
		http-action = "/cgi-bin/whois";
813
		form-element = "query";
814
	}
815
816
	"www\\.nic\\.bi" {
817
		http = "true";
818
		http-method = "POST";
819
		http-action = "/cgi-bin/whoisbi.pl"; # Formatting problems in Lynx
820
		form-element = "DOMAINWHOIS";
821
	}
822
823
	"www\\.nic\\.cg" {
824
		http = "true";
825
		http-method = "POST";
826
		http-action = "/cgi-bin/whoiscg.pl"; # Formatting problems in Lynx
827
		form-element = "DOMAINWHOIS";
828
	}
829
830
	"www\\.nic\\.rw" {
831
		http = "true";
832
		http-method = "POST";
833
		http-action = "/cgi-bin/whoisrw.pl"; # Formatting problems in Lynx
834
		form-element = "DOMAINWHOIS";
835
	}
836
837
	"www\\.tarsus\\.net" {
838
		http = "true";
839
		http-method = "POST";
840
		http-action = "/whois/NameSearch.asp";
841
		form-element = "searchfor";
842
	}
843
844
	"pknic\\.net\\.pk" {
845
		http = "true";
846
		http-method = "POST";
847
		http-action = "/cgi-bin/pknic-db/display.html";
848
		form-element = "name";
849
	}
850
851
	"www\\.noc\\.uz" {
852
		http = "true";
853
		http-method = "POST";
854
		http-action = "/whois.php4";
855
		form-element = "dname";
856
	}
857
858
	"www\\.nic\\.vi" {
859
		http = "true";
860
		http-method = "POST";
861
		http-action = "/whois.asp";
862
		form-element = "text1";
863
	}
864
865
	"www\\.vnnic\\.net\\.vn" {
866
		http = "true";
867
		http-method = "GET";
868
		http-action = "/dk_tenmien/jsp/whois/whoisdomain_detail.jsp";
869
		form-element = "type";
870
	}
871
872
	"dns\\.antel\\.net\\.uy" {
873
		http = "true";
874
		http-method = "POST";
875
		http-action = "/public-servlets/buscarDominio";
876
		form-element = "nomReg";
877
	}
878
879
	"www\\.nic\\.tg" {
880
		http = "true";
881
		http-method = "GET";
882
		http-action = "/moteur/info_dom.php";
883
		form-element = "domaine";
884
	}
885
886
	"cgi\\.aub\\.edu\\.lb" {
887
		http = "true";
888
		http-method = "GET";
889
		http-action = "/cgi-bin/lbdr.pl";
890
		form-element = "cn";
891
	}
892
893
	"www\\.vunic\\.vu" {
894
		http = "true";
895
		http-method = "POST";
896
		http-action = "/whois";
897
		form-element = "whois";
898
	}
899
900
	"whois\\.lacnic\\.net" {
901
		whois-redirect = ".*\\(whois.nic.br\\)";
902
		whois-redirect = ".*\\(whois.registro.br\\)";
903
		whois-redirect = ".* \\([Rr]+[Ww][Hh][Oo][Ii][Ss]\\.[A-Za-z]*\\.[Nn][Ee][Tt]\\) port \\([0-9]*\\)";
904
	}
905
906
	"www\\.nic\\.ar" {
907
		http = "true";
908
		http-method = "POST";
909
		http-action = "/consultas/consdom.html";
910
		form-element = "nombre";
911
	}
912
913
	"www\\.denic\\.de" {
914
		http = "true";
915
		http-method = "POST";
916
		http-action = "/en/whois/data.jsp";
917
		form-element = "domainname";
918
		form-extra = "service=WhoisData&lang=en&submit=Accept";
919
	}
920
	"whois\\.denic\\.de" {
921
		whois-server = "whois.denic.de";
922
		query-format = "-C UTF-8 -T dn,ace $*";
923
		answer-charset = "UTF-8";
924
	}
925
	"whois\\.nic\\.ad\\.jp" {
926
		query-format = "$*/e";
927
	}
928
	"whois\\.nic\\.ch" {
929
		answer-charset = "UTF-8";
930
	}
931
	"whois\\.nic\\.li" {
932
		answer-charset = "UTF-8";
933
	}
934
	"whois\\.centralnic\\.*" {
935
                whois-redirect = ".*Whois Server: \\(.*\\)";
936
        }
937
	".*\\.verisign-grs\\.com" {
938
		whois-redirect = ".*Whois Server: \\(.*\\)";
939
	}
940
}
941
942
#
943
# The cache feature is used to provide a local cache with Whois information.
944
# Note that the cache feature might have been disabled at compile time and
945
# thus not be available on this system.
946
#
947
# By default, the location of the database is /usr/local/var/jwhois.db and the
948
# default expire time is 7 days, but you can change those below.
949
#
950
#cachefile = "/var/lib/jwhois.db";
951
952
#
953
# This is the time after which an entry expires from the cache in hours.
954
#
955
#cacheexpire = 168;
956
957
#
958
# If you're using the whois-servers support, you can specify this option
959
# to override the compiled in domain for that service.
960
#
961
#whois-servers-domain = "whois-servers.net";
962
963
#
964
# Path to the browser to use for HTTP servers.
965
#
966
browser-pathname = "/usr/bin/lynx";
967
968
#
969
# Command line argument to browser to get output on stdout.
970
#
971
browser-stdarg = "-dump";
972
973
#
974
# Command line argument to browser to perform a POST operation.
975
# Jwhois currently supports the format used by Lynx and W3M.
976
#
977
browser-postarg = "-post_data";
978
979
#
980
# Select the method for which Jwhois sends POST data to the browser.
981
# If post-as-file is false, Jwhois will send the data on stdin
982
# terminated with three dashes on an empty line, i.e the format that
983
# Lynx expects.
984
# If post-as-file is true, Jwhois will create a temporary file with
985
# the post data and send the file name after the browser-postarg
986
# parameter, i.e the format that W3M expects.
987
#
988
post-as-file = "false";
989
990
#
991
# To use w3m instead of Lynx, use this configuration:
992
#
993
# browser-pathname = "/usr/bin/w3m";
994
# browser-stdarg = "-dump";
995
# browser-postarg = "-post";
996
# post-as-file = "true";
997
#
998
999
#
1000
# Set connect-timeout to a positive integer to make the connection to
1001
# remote hosts timeout after the specified number of seconds, if the
1002
# remote host doesn't reply. By default, the timeout is 75 seconds.
1003
#
1004
#connect-timeout = 3;
1005
- 

Return to bug 271401