1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
---|
5 | <title>Reverse DNS Template Reference</title>
|
---|
6 | <!-- General stylesheet for most content, all browsers -->
|
---|
7 | <link rel="stylesheet" type="text/css" href="templates/dns.css" />
|
---|
8 | <!-- Custom local stylesheet, if desired -->
|
---|
9 | <link rel="stylesheet" type="text/css" href="local.css" />
|
---|
10 | </head>
|
---|
11 | <body>
|
---|
12 | <div id="main">
|
---|
13 | <h2>Reverse DNS Template Reference</h2>
|
---|
14 | <table class="container" cellpadding="2" cellspacing="2">
|
---|
15 | <tbody>
|
---|
16 | <tr class="tableheader">
|
---|
17 | <td></td>
|
---|
18 | <td>Substitution pattern</td>
|
---|
19 | <td>Example expansion using 192.168.23.45</td>
|
---|
20 | </tr>
|
---|
21 | <tr class="tableheader">
|
---|
22 | <td colspan="3">Whole-IP patterns</td>
|
---|
23 | </tr>
|
---|
24 | <tr class="row0">
|
---|
25 | <td>Dashed IP</td>
|
---|
26 | <td>%i</td>
|
---|
27 | <td>192-168-23-45</td>
|
---|
28 | </tr>
|
---|
29 | <tr class="row1">
|
---|
30 | <td>Reverse dashed IP</td>
|
---|
31 | <td>%r</td>
|
---|
32 | <td>45-23-168-192</td>
|
---|
33 | </tr>
|
---|
34 | <tr class="row0">
|
---|
35 | <td>Hex-coded IP</td>
|
---|
36 | <td>%h</td>
|
---|
37 | <td>c0a8172d</td>
|
---|
38 | </tr>
|
---|
39 | <tr class="row1">
|
---|
40 | <td>Decimal IP</td>
|
---|
41 | <td>%d</td>
|
---|
42 | <td>323241453</td>
|
---|
43 | </tr>
|
---|
44 | <tr class="tableheader">
|
---|
45 | <td colspan="3">Per-octet patterns (1, 2, 3, or 4 specify
|
---|
46 | the octet; d, h or 0 specify decimal, hexidecimal, or
|
---|
47 | 0-padded decimal)</td>
|
---|
48 | </tr>
|
---|
49 | <tr class="row0">
|
---|
50 | <td>First octet, decimal</td>
|
---|
51 | <td>%1d</td>
|
---|
52 | <td>192</td>
|
---|
53 | </tr>
|
---|
54 | <tr class="row1">
|
---|
55 | <td>Third octet, 0-padded</td>
|
---|
56 | <td>%30</td>
|
---|
57 | <td>023</td>
|
---|
58 | </tr>
|
---|
59 | <tr class="row0">
|
---|
60 | <td>Fourth octet, hexidecimal</td>
|
---|
61 | <td>%4h</td>
|
---|
62 | <td>2d</td>
|
---|
63 | </tr>
|
---|
64 | <tr class="row1">
|
---|
65 | <td>All octets, different expansions</td>
|
---|
66 | <td>%1h-%2d-%30-%4h</td>
|
---|
67 | <td>c0-168-023-2d</td>
|
---|
68 | </tr>
|
---|
69 | </tbody>
|
---|
70 | </table>
|
---|
71 | <p> %i and %r also allow explicitly defining the separator; eg %.i
|
---|
72 | or %_r. '.', '-', and '_' are the only characters<br />
|
---|
73 | supported since DNS names may not contain most other
|
---|
74 | non-alphanumerics.</p>
|
---|
75 | </div>
|
---|
76 | </body>
|
---|
77 | </html>
|
---|