1 @@@comment: Web page template. Edit this if you feel like it,
2 @@@comment: but take care or the results may be strange.
4 @@@comment: Written by Ian Jackson <ijackson@chiark.greenend.org.uk>, 1999.
5 @@@comment: I hereby place this file in the public domain.
6 @@@comment: NB: do not add more copyright restrictions to this file,
7 @@@comment: or running the scripts will cause copyright violation !
11 <title>@@@whose@@@ G-RIN -
14 BCP5 (RFC1918) Registry
22 password sent for @@@name@@@
25 @@@if:details|fulldetails@@@
47 subset for @@@listarea@@@
51 @@@if:listingoverlap@@@
52 overlapping with @@@listoverlap@@@
56 @@@if:error_notfound@@@
59 @@@ifnot:error_notfound@@@
66 <link rev="made" href="mailto:@@@adminemail@@@">
72 (Geeks' Registry of Internet Numbers)
74 BCP5 (RFC1918) network numbers registry
82 Random network picked: @@@net@@@
85 @@@if:details|fulldetails@@@
86 Database entry details: @@@name@@@
90 @@@name@@@ registered in database
94 Database entry updated: @@@name@@@
102 Database entry deleted
106 Entire database listing
111 Database subset listing for @@@listarea@@@
115 @@@if:listingoverlap@@@
116 Database search, entries overlapping with @@@listoverlap@@@
120 @@@if:error_notfound@@@
121 Database entry not found
123 @@@ifnot:error_notfound@@@
124 An error has occurred
133 <h2>Introduction</h2>
135 <a href="http://src.doc.ic.ac.uk/rfc/bcp/bcp5.txt">BCP5</a> (currently
136 <a href="http://src.doc.ic.ac.uk/rfc/rfc1918.txt">RFC1918</a>,
137 `Address Allocation for Private Internets') describes circumstances
138 where it can be useful to have non-globally-unique IP addresses, and
139 specifies three IPv4 address ranges which may be used for this
140 purpose. RFC1918 recommends that, to minimise the risk of clashes
141 when private internets need to be merged, address ranges should be
146 This web page and database exist to help people choose ranges at
147 random, and to help them choose ranges which are not currently in use
155 @@@if:error_badnet@@@
156 You entered a syntactically invalid CIDR-format network number.
158 IPv4 network numbers should be expressed as a dotted quad followed by
159 a prefix length. Each of the numbers in the dotted quad must be
160 between 0 and 255. The prefix length is separated from the dotted
161 quad by a slash, and must be between 0 and 32. None of the bits in
162 the dotted quad beyond the prefix length must be set.
165 @@@if:error_badsize@@@
166 You entered an invalid size for your prefix or subnet.
167 You must enter a number between 0 and 32.
170 @@@if:error_wrongsize@@@
171 The subnet size you requested (@@@specsize@@@-bit prefix) is larger
172 (contains more addresses) than the size of the private-use range you
173 selected (@@@net@@@).
176 @@@if:error_wrongnet@@@
177 The network number you specified does not lie wholly within the
178 BCP5-allocated private-use address ranges.
181 @@@if:error_notfound@@@
182 Sorry, the database entry cannot be found. Perhaps the entry has been
185 If you believe that this has happened to you in error, contact the
186 registry administrator, @@@adminemail@@@, quoting identifier @@@id@@@.
189 @@@if:error_noemail@@@
190 You must provide an email address.
193 @@@if:error_nocontact@@@
194 You must provide a contact name.
197 @@@if:error_nopassword@@@
198 You must supply the password.
201 @@@if:error_badpassword@@@
202 The password you supplied was not correct. Please supply the correct
203 password. If you do not know the password, ask to have it mailed to
206 The passwords expire after a while; if you were not relying on a fresh
207 notification of your password, you should request a current password.
211 You must provide a network number !
214 @@@if:error_noname@@@
215 You must provide a network name for the database.
218 @@@if:error_badchar@@@
219 The name, contact or email address you specified contains illegal character(s).
228 <h2>Pick a random subnet</h2>
231 <h2>Pick another random subnet</h2>
234 <form method="GET" action="@@@cgi@@@">
238 <input type=radio name="specsize" value="28" @@@pick28check@@@>
239 28 bit prefix (4 bit subnet, up to 14 hosts)
241 <input type=radio name="specsize" value="24" @@@pick24check@@@>
242 24 bit prefix (8 bit subnet, up to 254 hosts)
244 <input type=radio name="specsize" value="prefix" @@@pickvarprefixcheck@@@>
245 <input type=text name="pickvarprefix" value="@@@pickvarprefix@@@" size="5">
248 <input type=radio name="specsize" value="subnet" @@@pickvarsubnetcheck@@@>
249 <input type=text name="pickvarsubnet" value="@@@pickvarsubnet@@@" size="5">
253 From which private-use range ?
258 <input type=radio name="from" value="@@@area_i@@@" @@@area_pickchecked@@@>
260 @@@if:area_recommended@@@
261 - <em>recommended</em>
268 <input type=submit name="pick" value="Pick network.">
271 <input type=submit name="pick" value="Pick another network.">
280 <h2>Register a network range you are using</h2>
281 You may register an existing network range you are using in our
286 <h2>Random network range chosen - register it ?</h2>
287 I have picked the random network numbering range
288 <strong>@@@net@@@</strong> for you. You can see its relationship
289 to other entries in the database of networks people are using -
290 it is shown <A href="#picked">below</A>, in amongst the
291 registered database entries.
293 If you are happy with it, you are of course free to use it straight
294 away without telling anyone. However, it may be to your advantage to
295 register it in our database.
298 @@@if:registernew|picked@@@
300 You must enter an email address to `own' the database entry. This
301 email address will be mailed a reminder asking you to confirm/renew
302 your entry periodically, and will also be used to authorise changes to
303 the entry. It will be published on these pages unless you select to
304 hide it; apart from that we will only use it to contact you about your
309 <h2>Deleted entry</h2>
310 The following entry has been deleted. If this was a mistake, you may
314 @@@if:details|fulldetails@@@
315 <h2>Entry details</h2>
318 @@@if:passwordsent@@@
319 The password for this database entry has been mailed to the recorded
320 contact email address.
322 <h2>Entry details</h2>
326 <h2>Entry created</h2>
328 The database entry has been created, but will only persist for a short
329 time unless you confirm it. You have beeen sent an email with your
330 password, requesting confirmation. When you have received the email
331 you may use `confirm/update', below, to confirm your database entry.
332 If you do not confirm it it will expire in a few days.
336 <h2>Entry updated/confirmed</h2>
337 The database entry below has been updated/confirmed/renewed.
340 @@@if:registernew|details|fulldetails|justcreated|justupdated|picked|passwordsent|deleted@@@
343 <form method="POST" action="@@@cgi@@@">
345 <input type=hidden name="id" value="@@@id@@@">
348 <input type=text name="net" value="@@@net@@@" size="20">
352 <input type=text name="name" size="@@@nameboxlen@@@" value="@@@name@@@"><br>
355 <input type=text name="contact" size="@@@contactboxlen@@@" value="@@@contact@@@"><br>
357 @@@if:displayemail@@@
360 @@@ifnot:displayemail@@@
361 Email address hidden.
364 <input type=text name="email" size="@@@emailboxlen@@@" value="@@@email@@@">
367 <input type=checkbox name="hiddenemail" value="yes" @@@emailhidechecked@@@>
368 Hide email address from public database.
371 @@@if:registernew|picked@@@
372 <input type=submit name="register" value="Register.">
376 <input type=submit name="register" value="Re-register.">
379 @@@if:details|fulldetails|justcreated|justupdated|passwordsent@@@
382 Entry created: @@@datecreated@@@<br>
384 Last update/confirm: @@@datechanged@@@<br>
392 <h3>Password request</h3>
394 Use this to obtain your password, if you do not have it or it doesn't
395 seem to work. The passwords expire after a while; if you do not have
396 a recent notification of your password, you should request a current
400 <input type=submit name="mailpasswd" value="Mail password."><br>
401 (The password will be sent to the registered email address for the
406 @@@if:details|fulldetails|justcreated|justupdated|passwordsent@@@
407 <h3>Modify or manage this entry</h3>
410 @@@if:details|justcreated|passwordsent@@@
411 Using your password, you can update the details above (if you have
412 changed them) and confirm or renew your entry (to stop it expiring).
413 @@@ifnot:displayemail@@@
414 You can also view the full details, including the hidden email address.
419 @@@if:details|justcreated|passwordsent@@@
420 Password: <input type=text name="pw" size="30">
424 @@@ifnot:displayemail@@@
425 <input type=submit name="view" value="View full details.">
428 @@@if:details|fulldetails|justcreated|justupdated|passwordsent@@@
429 <input type=submit name="update" value="Update/confirm/renew.">
430 <input type=submit name="delete" value="Delete.">
433 @@@if:fulldetails|justupdated@@@
435 <input type=hidden name="pw" value="@@@password@@@">
446 <h2>View database</h2>
451 @@@ifnot:listingall@@@
452 <a href="@@@cgi@@@?list=all">Entire database</A>
458 <li>Entries allocated from:
464 @@@ifnot:area_listing@@@
465 <a href="@@@cgi@@@?list=area&listareai=@@@area_i@@@">@@@area@@@</A>
467 @@@if:area_listing@@@
474 <li>Entries overlapping with
476 <form method="GET" action="@@@cgi@@@">
477 <input type=hidden name="list" value="overlap">
478 <input type=text name="with" value="@@@listoverlap@@@" size="30">
479 <input type=submit name="listoverlap" value="Search.">
486 @@@if:listingall|listingarea|listingoverlap|listingviewoverlap@@@
494 @@@if:listingoverlap@@@
495 Entries which overlap with @@@listoverlap@@@
497 @@@if:listingviewoverlap@@@
498 Entries which overlap with this one
501 Database for entries allocated from @@@listarea@@@
506 The range picked for you has been <strong>emphasized</strong> below.
507 Any existing registrations that overlap with it are also
508 emphasized, and marked with an asterisk <strong>*</strong>.
511 @@@if:listingviewoverlap@@@
512 This registration is <strong>emphasized</strong>,
513 and marked with an asterisk <strong>*</strong>.
517 @@@ifnot:listingnonefound@@@
519 @@@if:listingviewoverlap@@@
520 You can get details about another, overlapping entry by selecting it
521 from this list; this can also be used to modify the other entry.
523 @@@ifnot:listingviewoverlap@@@
524 You can get details about an existing entry by selecting it
525 from this list; this can also be used to modify it.
529 <tr><td>Range <td>Name <td>Contact <td>Email
535 <tr><td><a name="picked"><strong>@@@db_net@@@</strong></a>
536 <td colspan=3><strong>network randomly picked as requested</strong>
539 @@@ifnot:db_picked@@@
543 @@@if:db_pickedoverlap|db_viewing@@@
549 @@@ifnot:db_viewing@@@
550 <A href="@@@cgi@@@?id=@@@db_id@@@">@@@db_net@@@</A>
552 @@@if:db_pickedoverlap|db_viewing@@@
557 @@@if:db_pickedoverlap|db_viewing@@@
558 <strong>@@@db_name@@@</strong>
560 @@@ifnot:db_pickedoverlap|db_viewing@@@
566 @@@ifnot:db_hiddenemail@@@
569 @@@ifnot:db_confirmed@@@
570 <em>(unconfirmed)</em>
575 @@@if:db_hiddenemail@@@
577 @@@if:db_confirmed@@@
581 @@@ifnot:db_confirmed@@@
582 <td><em>hidden, unconfirmed</em>
595 @@@if:listingnonefound@@@
596 There are no matching entries in the database.
602 <a href="@@@home@@@">@@@whose@@@ G-RIN</a><br>
603 Queries or problems ? Contact the administrator,
604 <a href="mailto:@@@adminemail@@@">@@@adminname@@@</a>.