# IP-Addresses and Handles
#
#  generic Whois pattern table
#
#  (c) 1998-2004 by Lutz Donnerhacke <Lutz.Donnerhacke@Jena.Thur.de> and
#                   Michael Holzt <kju@debian.org.org> and contributors
#
#  Distribution, usage etc. pp. regulated by the current version of GPL.
#  Idea: Erik.Heinz@Jena.Thur.De
#
#  Please drop me (Lutz.Donnerhacke@Jena.Thur.de) any additional records...
#  (or file a bug against the debian gwhois package).
#
# History:
# 2004-03-08  kju   *-mnt und lim-* objects queried at ripe.
# 2004-03-08  kju   193/7 is nonsense, must be 193/8 and 194/8. i'm an
#                   idiot.
# 2004-03-07  kju   added team cymru ip->as mapper whois
# 2004-03-07  kju   removed all ERX listings, which are now autoconverted
#                   and held in seperate files
# 2004-03-03  kju   fixed 80-84/8
# 2004-03-03  kju   publicinterestregistry (.org) now back to normal whois
#		    changes for new generic whois handling code
#                   added idn-parameters for denic (Debian Bug #235086)
#                   added whois-servers.net as last resort (tnx lutz)
#		    changed corenic handle (Debian Bug #208866)
#                   .va fixed (Debian Bug #225032)
#		    added some blocks to RIPE (Debian Bug #225037)
#                   added some more blocks to RIPE (Debian Bug #226178)
# 2003-06-25  kju   .cc now REAL fixed :-)
#		    whois.nic-se.se has incomplete data, changed for cgi
#                   [tnx Christian Seitz, Erik Heinz]
# 2003-06-25  kju   192.109/16 now queried at ripe (arin has totally
#                   outdated data!)
#		    fixed .as (Debian Bug#195065) and 
#                   .cc (Debian Bug#196991) [both tnx VT100]
# 2003-04-09  lutz  added 60/8 and removed 223/8 (apnic)
# 2003-02-20  kju   changed .nz, changed .ie, added .museum, added .aero
#                   tnx to Andreas Schoenberg for hints.
# 2003-02-15  kju   added .us
# 2003-02-14  lutz  added 222/7 (apnic)
# 2003-01-29  kju   fixed .be (trailing space)
# 2003-01-28  kju   added 129.90/16 (lacnic, from lutz), 129.208/16 (ripe)
# 2003-01-28  lutz  .np added
# 2003-01-28  tlr   Add $ to .au pattern
# 2003-01-27  kju   .org now has a totally broken whois 
# 2003-01-19  cord  added .coop-whois
# 2003-01-18  f2u   added 130.227.0.0 - 130.227.255.255 (RIPE)
# 2003-01-08  f2u   added 192.114.0.0 - 192.118.255.255 (RIPE)
# 2003-01-05  f2u   added 147.233.0.0 - 147.237.255.255 (RIPE)
# 2003-01-03  f2u   added 156.35.0.0 - 156.35.255.255 (RIPE)
# 2003-01-02  f2u   Mark ARIN WHOIS.
# 2002-12-30  cord  added 82.0.0.0-82.255.255.255 to RIPE
# 2002-11-27  cord  fixed .lu (Debian Bug#170816)
# 2002-11-01  cord  (Debian Bug#164375)
#		    203.0.0.0-203.63.255.255 moved from aunic to apnic.
#							(Debian Bug#166748)
#		    210.8.0.0-210.11.255.255 is at whois.connect.com.au.
#		    JAPANESE IPs:
#		    added 61.192.0.0-61.215.255.255 (Debian Bug#148534,
#							Debian Bug#165104)
#		    added 202.208.0.0-202.255.255.255 (Debian Bug#165406)
#		    added 203.136.0.0-203.141.255.255
#		    added 210.136.0.0-210.159.255.255
#		    added 210.188.0.0-210.191.255.255
#		    added 210.196.0.0-210.199.255.255
#		    added 210.224.0.0-210.239.255.255 (Debian Bug#138881)
#		    added 211.8.0.0-211.19.255.255 (Debian Bug#165587)
#		    added 211.120.0.0-211.135.255.255
#		    added 218.40.0.0-218.47.255.255
#		    added 218.216.0.0-218.231.255.255
#		    KOREAN IPs:
#		    added 61.248.0.0-61.255.255.255 (Debian Bug#164376)
#		    added 203.245.0.0-203.255.255.255 (Debian Bug#138718)
#	   	    added 210.90.0.0-210.91.255.255
#		    added 210.97.192.0-210.135.255.255
#		    added 210.220.0.0-210.223.255.255 (Debian Bug#141594)
#		    added 211.32.0.0-211.63.255.255 (Debian Bug#138717, 
#							Debian Bug#150750,
#							Debian Bug#165587)
#		    added 211.168.0.0-211.171.255.255
#		    added 211.226.0.0-211.231.255.255 (Debian Bug#138953)
#		    added 218.36.0.0-218.39.255.255
#		    added 218.48.0.0-218.55.255.255
#		    added 218.144.0.0-218.159.255.255
#		    added 218.232.0.0-218.239.255.255
#		    added 220.72.0.0-220.87.255.255
#		    TAIWAN IPs:
#		    added 61.216.0.0-61.231.255.255 (Debian Bug#165105)
#		    added 210.17.0.0-210.17.127.255
#		    added 210.59.0.0-210.63.255.255
#	       	    added 210.65.0.0-210.67.255.255
#	    	    added 210.70.0.0-210.71.255.255
#		    added 211.20.0.0-211.23.255.255 (Debian Bug#165587)
#		    added 211.72.0.0-211.72.255.255
#		    added 211.75.0.0-211.75.255.255 (Debian Bug#165587)
#		    added 218.32.0.0-218.32.255.255
#		    added 218.160.0.0-218.165.255.255
#		    APNIC
#		    added 219.0.0.0-221.255.255.255
#		    NIC for Latin American and Caribbean 
#		    added 200.0.0.0-200.255.255.255 (Debian Bug#158859)
#		    RIPE (Debian Bug#152090)
#		    added 129.11.0.0-129.13.255.255
#		    added 129.16.0.0-129.16.255.255
#		    added 129.20.0.0 - 129.20.255.255
#		    added 129.26.0.0 - 129.27.255.255
#		    added 129.31.0.0 - 129.31.255.255
#		    added 129.35.0.0 - 129.35.255.255
#		    added 129.67.0.0 - 129.67.255.255
#		    added 129.69.0.0- 129.70.255.255
#		    added 129.73.0.0 - 129.73.255.255
#		    added 129.88.0.0 - 129.88.255.255
#		    added 129.102.0.0 - 129.104.255.255
#		    added 129.125.0.0 - 129.125.255.255
#		    added 129.129.0.0 - 129.129.255.255
#		    added 129.132.0.0 - 129.132.255.255
#		    added 129.142.0.0 - 129.143.255.255
#		    added 129.159.0.0 - 129.159.3.255
#		    added 129.169.0.0 - 129.169.255.255
#		    added 129.175.0.0 - 129.175.255.255
#		    added 129.177.0.0 - 129.178.255.255
#		    added 129.181.0.0 - 129.185.255.255
#		    added 129.187.0.0 - 129.187.255.255
#		    added 129.194.0.0 - 129.195.255.255
#		    added 129.199.0.0 - 129.199.255.255
#		    added 129.206.0.0 - 129.206.255.255
#		    added 129.214.0.0 - 129.215.255.255
#	 	    added 129.217.0.0 - 129.217.255.255
#		    added 129.226.0.0 - 129.227.255.255
#		    added 129.233.0.0 - 129.234.255.255
#		    added 129.240.0.0 - 129.242.255.255
#		    added 129.247.0.0 - 129.247.255.255
#		    whois-server for .ac.uk and .gov.uk added.
#							(Debian Bug#166785)
#		    whois-server for .pl added. (Debian Bug#164737)
#		    RIPE is also responsible for Gambia .gm
#		    .ar switched urls for requests. (Debian Bug#163210)
#		    .cl now has a real whois-server.
#		    .dk has a real whois-server again. (Debian Bug#163181)
#		    .ec is available through a web interface.
#		    .es switched urls for requests.
#	  	    .kr new address for whois-server.
#		    .name has also an whois-server.
#		    .pk switched urls for requests.
#		    .su has a whois-server. (Debian Bug#165610)
#		    .tw has a whois-server. (Debian Bug#163296)
#		    .co.za has a whois-server. (Debian Bug#149182)
#		    .tk has a whois-server. (Debian Bug#165614)
# 2002-09-17  kju   .ag is now handled by a real whois server
# 2002-03-14  kju   fixed trailing spaces after some $-signs
#		    KOREAN IPs:
#		    added 210.100.0.0-210.103.255.255 (Debian Bug#135341)
#		    added 210.204.0.0-210.207.255.255 (Debian Bug#135399)
#		    added 210.116.0.0-210.213.255.255 (Debian Bug#135470)
#		    added 61.78.0.0-61.85.255.255 (Debian Bug#136303)
#		    added 211.32.0.0-211.39.255.255 (Debian Bug#136333)
#		    added 210.96.0.0-210.97.191.255 (Debian Bug#136631)
#		    added 210.178.0.0-210.183.255.255 (Debian Bug#137599)
#		    added 211.212.0.0-211.215.255.255 (Debian Bug#137724)
#		    APNIC:
#		    added 218.0.0.0-218.255.255.255 (Debian Bug#137386)
# 2002-02-17  kju   added .hk (Debian Bug#131390)
#		    added 211.0/13 to JPNIC (Debian Bug#134148)
#		    added 211.21/16 to TWNIC (Debian Bug#132727)
#		    added .to (Debian Bug#132634)
#		    added 211.172-211.199 to KRNIC (Debian Bug#130307)
#		    added 203.224-203.244 to KRNIC (Debian Bug#130307)
#	            added 211.104-211.119 to KRNIC (Debian Bug#130307)
#                   added 210.92-210.95 to KRNIC (Debian Bug#130307)
#		    added 211.232-211.255 to KRNIC (Debian Bug#130307)
#		    added 61.96-61.112 to KRNIC (Debian Bug#130307)
# 2002-02-01  kju   added .tv,.ua,.ug,.uy,.uz,.vu; changed .vi,.ws,adamsnames
#		    (latter closes Debian Bug#131866)
# 2002-01-17  kju   210.248/13 = jpnic (Debian Bug#129489)
#	      kju   211.216/13 = krnic (Debian Bug#126637)
#	      kju   61.72-61.77 = krnic (Debian Bug#119200)
#	      kju   changed dk-nic (Debian Bug#129026)
#	      kju   added ripe blocks 80/81
#	      kju   added .info and .biz
# 2001-03-12  lutz  whois.cira.ca is new for *.ca (Hanno Foest)
#             lutz  Kasachstan does not respond (Jan Ludewig)
#             lutz  whois.ncst.ernet.in for .in (no better match)
#             lutz  .be brushed up (Andreas Schoenberg)
# 2000-12-15  lutz  .in tested and failed.
# 2000-09-14  kju   .tj added.
#             kju   added io, jo, mn, mw, sh
#             lutz  added sg (per Tip)
# 2000-09-06  lutz  217/8 mapped to RIPE
# 2000-08-08  lutz  .ws added (Found it in spam, this registry is evil)
#             lutz  added several domains providing whois.nic.~tlh~ 
# 2000-07-18  lutz  .at readded (pfeifer@dbai.tuwien.ac.at)
# 2000-07-17  lutz  .hm added (kju)
# 2000-06-29  lutz  -RIPE should do multiple queries. (kju)
#             lutz  added whois.nic.at, whois.dk-hostmaster.dk, whois.nic.hu
#             lutz  added -BE, -DOMREG at RIPE, whois.isoc.org.il
# 2000-06-28  lutz  .is and -IS are supported by whois.isnet.is
#             lutz  -DENIC is supported by whois.denic.de
# 2000-06-27  lutz  .de will bot longer supported by ripe until tomorrow.
#             lutz  whois.nic.de is renamed to whois.denic.de
# 2000-06-26  lutz  domain-registry.nl renamed to whois.domain-registry.nl
#                   (ash@ash.de)
# 2000-06-20  lutz  .no, -NORID -> whois.norid.no
# 2000-06-07  lutz  co??- -> corenic
#                   nic.cx hat neuerdings whois!
# 2000-03-27  lutz  core- -> corenic (ash@ash.de)
# 2000-02-29  lutz  registro.br hat neuerdings whois! IP Netze gehen auch.
#             lutz  Added my
# 2000-02-24  lutz  RIPE-IPs vervollstndigt
# 2000-02-15  haegar COCO- => whois.corenic.net
# 2000-02-14  lutz  -HST => arin
# 2000-02-07  lutz  210.160.0.0 - 210.175.255.255 => Japan
#             kju   adamsnames changed
#             kju   213/8 => Ripe
# 1999-12-01  kju   .com/.net/.org changed to two-step whois
# 1999-08-04  lutz  Added gs, ms, tc, tf, vg
# 1999-08-03  lutz  Added sm
# 1999-07-05  lutz  Fixed 203.178-203.183
# 1999-07-01  lutz  Fixed kr, Added IPv6
# 1999-04-12  kju   Added tr
#             lutz  Added va
# 1999-04-01  lutz  Fixed 160.44-160.63
# 1999-03-30  kju   Added md
# 1999-03-29  lutz  Added AS...
# 1999-03-04  lutz  Fixed es, se
#                   Added cx, eu.org
# 1998-12-18  kju   Extracted from orginal source
# --------------------------------------------------------------------

# RIPE
:whois|whois.ripe.net
=24.132/14
=62/8
=80/6
=84/8
=188/8
=193/8
=194/8
=195/8
=212/7
=217/8

# APNIC
:whois|whois.apnic.net
=60/7
=202/7
=210/7
=218/7
=220/7
=222/8

# Australia(?)
:whois|whois.connect.com.au
=210.8/7
=210.10/7

# Japan
:whois|whois.nic.ad.jp|trailer=/e
=61.192/12
=61.208/13
=202.23/16
=202.24/14
=202.208/12
=202.224/11
=203.136/14
=203.140/15
=203.178/15
=203.180/14
=210.136/13
=210.144/12
=210.160/12
=210.188/14
=210.196/14
=210.224/12
=210.248/13
=211.0/12
=211.16/14
=211.120/13
=211.128/13
=211.140/14
=211.144/14
=218.216/14
=218.220/14
=218.224/13

# Korea
:whois|whois.nic.or.kr
=61.72/13
=61.80/14
=61.84/15
=61.96/12
=61.248/13
=203.224/11
=210.90/15
=210.92/14
=210.96/11
=210.128/13
=210.178/15
=210.180/14
=210.204/14
=210.216/13
=211.32/11
=211.104/13
=211.112/13
=211.168/15
=211.170/15
=211.172/14
=211.176/12
=211.192/10
=218.36/14
=218.48/13
=218.144/12
=218.232/13
=220.72/13
=220.80/13

# Taiwan
:whois|whois.twnic.net
=61.216/13
=61.224/13
=210.17.0/17
=210.59/16
=210.60/14
=210.65/16
=210.66/15
=210.70/15
=210.240/14
=211.20/14
=211.72/14
=218.32/16
=218.160/14
=218.164/15

# Brazil
:whois|registro.br
=200.10.4/22
=200.128/9
=210.17/16
=210.18/15
=210.20/16

# Latin American and Caribbean IP address Regional Registry
:whois|whois.lacnic.net
=200/8

# ip last resort, arin blocks
:whois|whois.arin.net|ipprefix=+
=0/0
^net(blk)?-[a-z0-9-]+$
-arin$
-hst$

# 6Bone, ipv6
:whois|whois.6bone.net
3ffe:
-6bone$

# RIPE IPv6
:whois|whois.ripe.net
.:

# Team Cymru IP->AS mapper whoic
:whois|whois.cymru.com|strip=ipas |
ipas\s\S+

# Domains and Handles
# --------------------------------------------------------------------

#:cgi|http://www.nic.ag/cgi-local/DB_Search/db_search.cgi?setup_file=domain.setup.cgi&domain=~query~&submit_search=Find+Domain+Name
:whois|whois.nic.ag
\.ag$

:whois|whois.ra.net
^as\d+$

:whois|whois.nic.at
^at\d+$
\.at$

:whois|whois.nic.uk
\.(co|org|net|tld|plc)\.uk$

:whois|whois.ja.net
\.(ac|gov)\.uk$

:whois|whois.dns.pl
\.pl$

:whois|whois.ripe.net
\.(al|bg|ee|fi|ga|gm|gr|hu|ie|lt|ro|sk|sm|va)$
^lim-[^\.]$
-mnt$
-ripe$
-be$
-domreg$

:whois|whois.nic.~tld~
\.(af|ac|am|ch|ck|cu|cx|cz|do|gov|it|li|mil|mm|mx|pw|sh|so|st|tj|tm)$

:whois|whois.dns.be
\.be$

:whois|whois.cira.ca
\.ca$

:whois|whois.ml.org
\.ml\.org$

:cgi|http://www.esc.edu.ar/cgi-bin/infodomes?username=~query~
\.edu\.ar$

:cgipost|http://www.nic.ar/consultas/consdom.html|nombre=~query~
\.ar$

:cgi|http://www.nic.as/whois.cfm?domain=~namewotld~
\.as$

:whois|whois.aunic.net
(\.au|-au)$

:whois|registro.br
\.br$

#:cgi|http://www.enic.cc/cgi-bin/whois.cgi?domain=~namewotld~&tld=cc
:inicwhois|whois.nic.cc
\.cc$

:wwwsgrep|http://www.nic.cd/database/~tld~|(~query~)\.txt
\.(bi|cd|cg|rw)$

#:cgi|http://www.nic.cl/cgi-bin/dom-CL?q=\\b~query~\\b
:whois|nic.cl
\.cl$

#:cgi|http://www.cnnic.cn/cgi-bin/srdp?~query~
:whois|whois.cnnic.cn
\.cn$

:whois|whois.nic.coop
\.coop$

:cgipost|http://www.nic.cr/cgi-bin/consulta-dns.pl|sector=~2~&dominio=~1~
^(.*)(\.[^.]+\.cr)$

:cgipost|http://www.nic.cr/cgi-bin/consulta-dns.pl|domdns=~query~
\.cr$

:whois|whois.denic.de|noipprefix=-T ace,dn,org,pn -C iso-8859-1 |
\.de$
^[^.]*-denic$

#:cgi|http://www.dk-hostmaster.dk/script/whois.php?lang=eng&query=~query~
:whois|whois.dk-hostmaster.dk
\.dk$
^[^.]*-dk$

:cgi|http://www.nic.ec/consulta/whois.asp?dominio=~query~
\.ec$

:cgi|http://www.nic.es/cgi-bin/consulta.whois?list=Dominios&key=~query~&tipo=procesar
\.es$

:cgi|http://www.nic.es/cgi-bin/consulta.whois?tipo=procesar&list=Personas&key=~query~
-esnic$

:whois|whois.nic.fr
\.fr$
^fr-[^.]+$

:cgi|http://georgia.net.ge/cgi-bin/domain/host.cgi?=~query~;
\.ge$

:cgi|http://whois.adamsnames.tc/whois/?domain=~query~
\.(tc|vg|ms|tf|gs)$

:wwwsgrep|http://localhost/~1~.htm|~query~.*?<td>(?:<[^>]*>)*(.*?)(?:<[^>]*>)*</td>
([^.]+)\.gt$

:whois|whois.hkdnr.net.hk
\.hk$

:cgi|http://ds.carnet.hr/cgi-bin/digger.pp?mode=nice&Server=World+%28Svijet%29+%5Bservices.bunyip.com+63%5D&Value=~query~
\.hr$

:whois|whois.registry.hm
\.hm$

:whois|whois.nic.hu
\.hu$
^\d+$

:whois|whois.domainregistry.ie
\.ie$

:whois|whois.isoc.org.il
(ac|co|gov|k12|idf|muni|net|org)\.il$
-il$

:cgi|http://www.nic.im/scripts/imreg/domenq.idc?domain=~query~
\.im$

:whois|whois.ncst.ernet.in
\.in$

:cgipost|http://www.io.io/cgi-bin/whois|W1=~query~ 
\.io$

:cgi|http://www.nic.ir/cgi-bin/whois.pl?WhoisTxt=~query~
\.ir$

:whois|whois.isnet.is
\.is$
-is$

:cgi|http://www.nis.gov.jo/dns/owa/jo_domains_search?domain_criterion=~query~
\.jo$

:whois|whois.nic.ad.jp|trailer=/e
\.jp$
^[^.]*jp$

:whois|whois.nic.or.kr
\.kr$

# :cgi|http://www.domain.kz/search.msql?domain=~query~
# \.kz$

:cgi|http://www.aub.edu.lb/cgi-bin/lbdr.pl?cn=~query~
\.lb$

:cgi|http://www.nic.lk/cgi-bin/whois?~query~
\.lk$

:whois|whois.restena.lu
\.lu$

:wwwgreplv|~1~#~2~|(~query~)
(org|mil|com|net|edu|gov|([^.])[^.]+)\.lv$

:cgipost|http://www.nic.md/cgi/dbc.md.cgi|01-domain=~namewotld~
\.md$

:cgi|http://www.nic.mn/owner.php3?domainname=~namewotld~ 
\.mn$

:cgi|http://www.tarsus.net/whois/NameSearch.asp?searchfor=~query~ 
\.mw$

:whois|whois.mynic.com
\.my$

:whois|whois.nic.name
\.name$

:whois|whois.nic.name
-name$

:wwwsgrep|http://165.98.1.2/~1~.htm|~query~.> *([^<]*)<
([^.]+)\.ni$

:whois|whois.domain-registry.nl
\.nl$

:whois|whois.norid.no
\.no$
-norid$

:cgi|http://www.mos.com.np/cgi-bin/search.cgi?domain_name=~query~
\.np$

#:cgi|http://www.nunames.nu/cgi-bin/VerifyResultscc.CFM?Members__DomainName=~query~
:cgi|http://www.nunames.nu/cgi-bin/drill.cfm?domainname=~query~
\.nu$

#:cgi|http://domainz.waikato.ac.nz/cgi-bin/DNZ-REGISTER?domain_name=~query~
:whois|whois.domainz.net.nz
\.nz$

:whois|whois.eu.org
\.eu\.org$

:whois|www.nic.pa|port=4321
\.pa$

:whois|whois.rcp.net.pe
\.pe$

:cgi|http://m1.pknic.net.pk:443/cgi-bin/pknic-db/display.html?text=on&name=~query~
\.pk$

:whois|whois.dns.pt
\.pt$

:whois|whois.ripn.net
\.(ru|su)$
-ripn$

#:whois|whois.nic-se.se
:cgi|http://www.nic-se.se/cgi-bin/whois/www-to-whois?domain=~query~
\.se$

:whois|whois.nic.net.sg
\.sg$

:whois|whois.nic.sh
\.sh$

:whois|whois.nic.tj
\.tj$

:whois|whois.tonic.to
\.to$

:whois|whois.metu.edu.tr
\.tr$

:cgi|http://www.tv/cgi-bin/whois.cgi?tld=tv&domain=~namewotld~
\.tv$

:whois|whois.twnic.net
\.tw$

:cgi|http://whois.gov.ua:8101/cgi-bin/whois.cgi?query=~query~
\.ua$

:cgi|http://www.registry.co.ug/whois/whois_show.php3?domain=~query~
\.ug$

:whois|whois.nic.us
\.us$

:cgi|http://www.rau.edu.uy/cgi/dom.pl?dominio=~query~
\.uy$

:cgi|http://www.noc.uz/whois_result.php3?dname=~query~
\.uz$

:cgi|http://www.vunic.vu/whois?~namewotld~
\.vu$

:cgipost|http://www.nic.vi/whois.asp|text1=~query~
\.vi$

:whois|whois.samoanic.ws
\.ws$

:whois|whois.corenic.net|noipprefix=contact |
^co..-\d+$

:whois|whois.nic.biz
\.biz$

:cgi|whois.museum/whois2.php?domain=~query~
\.museum$

:whois|whois.aero
\.aero$

#:cgi|http://www.nic.info/cgi-bin/whois.cgi?whois_query_field=~query~
:whois|whois.info.info
\.info$

:whois|whois.dot.tk
\.tk$

:cgi|http://co.za/cgi-bin/whois.sh?Domain=~query~
\.co\.za$

:whois|whois.frd.ac.za
\.za$

:whois|whois.publicinterestregistry.net
\.org$

:inicwhois|~1~.whois-servers.net
.*\.([a-z]+)$

:inicwhois|whois.nsiregistry.com
^[^=].*
