[532] | 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>
|
---|
[685] | 14 | <table class="container" cellpadding="2" cellspacing="2" style="max-width:850px;">
|
---|
[532] | 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>
|
---|
[685] | 44 | <tr class="row0">
|
---|
| 45 | <td colspan="3">
|
---|
| 46 | %i and %r also allow explicitly defining the separator; eg %.i or %_r. Dot/period (.), dash (-),
|
---|
| 47 | and underscore (_) are the only characters supported since DNS names may not contain most
|
---|
| 48 | other non-alphanumerics.
|
---|
| 49 | </td>
|
---|
| 50 | </tr>
|
---|
| 51 | <tr class="row0">
|
---|
| 52 | <td colspan="3">
|
---|
| 53 | %blank% may be used to specifically prevent template expansion on a segment of a block if
|
---|
| 54 | desired; eg, if 192.168.23.0/24 has "unused-%i.example.com" set, adding an A+PTR template
|
---|
| 55 | for 192.168.23.48/30 of "%blank%" will leave 192.168.23.48 through .51 without PTR records
|
---|
| 56 | unless specific entries exist for those IPs.
|
---|
| 57 | </td>
|
---|
| 58 | </tr>
|
---|
[532] | 59 | <tr class="tableheader">
|
---|
| 60 | <td colspan="3">Per-octet patterns (1, 2, 3, or 4 specify
|
---|
| 61 | the octet; d, h or 0 specify decimal, hexidecimal, or
|
---|
| 62 | 0-padded decimal)</td>
|
---|
| 63 | </tr>
|
---|
| 64 | <tr class="row0">
|
---|
| 65 | <td>First octet, decimal</td>
|
---|
| 66 | <td>%1d</td>
|
---|
| 67 | <td>192</td>
|
---|
| 68 | </tr>
|
---|
| 69 | <tr class="row1">
|
---|
| 70 | <td>Third octet, 0-padded</td>
|
---|
| 71 | <td>%30</td>
|
---|
| 72 | <td>023</td>
|
---|
| 73 | </tr>
|
---|
| 74 | <tr class="row0">
|
---|
| 75 | <td>Fourth octet, hexidecimal</td>
|
---|
| 76 | <td>%4h</td>
|
---|
| 77 | <td>2d</td>
|
---|
| 78 | </tr>
|
---|
| 79 | <tr class="row1">
|
---|
| 80 | <td>All octets, different expansions</td>
|
---|
| 81 | <td>%1h-%2d-%30-%4h</td>
|
---|
| 82 | <td>c0-168-023-2d</td>
|
---|
| 83 | </tr>
|
---|
[685] | 84 |
|
---|
| 85 | <tr class="row0"><td colspan="3"> </td></tr>
|
---|
| 86 |
|
---|
| 87 | <tr class="tableheader">
|
---|
| 88 | <td colspan="3">Extensions</td>
|
---|
| 89 | </tr>
|
---|
| 90 | <tr class="tableheader">
|
---|
| 91 | <td></td>
|
---|
| 92 | <td>Substitution pattern</td>
|
---|
| 93 | <td>Example expansion using 192.168.23.40/29</td>
|
---|
| 94 | </tr>
|
---|
| 95 | <tr class="row0">
|
---|
| 96 | <td>Network/<br />gateway/<br />broadcast</td>
|
---|
| 97 | <td>%ngb%</td>
|
---|
| 98 | <td>
|
---|
| 99 | customer-%i%ngb%.example.com<br />
|
---|
| 100 | 192.168.23.40 -> customer-net.example.com<br />
|
---|
| 101 | 192.168.23.41 -> customer-gw.example.com<br />
|
---|
| 102 | 192.168.23.42 -> customer-192-168-23-42.example.com<br />
|
---|
| 103 | 192.168.23.43 -> customer-192-168-23-43.example.com<br />
|
---|
| 104 | 192.168.23.44 -> customer-192-168-23-44.example.com<br />
|
---|
| 105 | 192.168.23.45 -> customer-192-168-23-45.example.com<br />
|
---|
| 106 | 192.168.23.46 -> customer-192-168-23-46.example.com<br />
|
---|
| 107 | 192.168.23.47 -> customer-bcast.example.com
|
---|
| 108 | </td>
|
---|
| 109 | </tr>
|
---|
| 110 | <tr class="row1">
|
---|
| 111 | <td colspan="3">
|
---|
| 112 | Any IP pattern component is blanked on the network, gateway, and broadcast IPs when this is
|
---|
| 113 | used.<br />
|
---|
| 114 | Each of n, g, or b can be prefixed with a dash, eg %-ng-b% or %n-g-b%, which will
|
---|
| 115 | blank that entire entry instead of substituting <tt>net</tt>, <tt>gw</tt>, or <tt>bcast</tt>.
|
---|
| 116 | </td>
|
---|
| 117 | </tr>
|
---|
| 118 | <tr class="row0">
|
---|
| 119 | <td>n'th usable IP</td>
|
---|
| 120 | <td>%c</td>
|
---|
| 121 | <td>
|
---|
| 122 | customer-%3d-%c.example.com<br />
|
---|
| 123 | 192.168.23.40 -> customer-23.example.com<br />
|
---|
| 124 | 192.168.23.41 -> customer-23.example.com<br />
|
---|
| 125 | 192.168.23.42 -> customer-23-1.example.com<br />
|
---|
| 126 | 192.168.23.43 -> customer-23-2.example.com<br />
|
---|
| 127 | 192.168.23.44 -> customer-23-3.example.com<br />
|
---|
| 128 | 192.168.23.45 -> customer-23-4.example.com<br />
|
---|
| 129 | 192.168.23.46 -> customer-23-5.example.com<br />
|
---|
| 130 | 192.168.23.47 -> customer-23.example.com
|
---|
| 131 | </td>
|
---|
| 132 | </tr>
|
---|
| 133 | <tr class="row1">
|
---|
| 134 | <td colspan="3">
|
---|
| 135 | c can be prefixed with a dash (%-c), which starts the numbering from the conventional gateway IP
|
---|
| 136 | instead. (.41 above would be 1, .42 2, etc, finishing with 6 at .46).
|
---|
| 137 | </td>
|
---|
| 138 | </tr>
|
---|
[532] | 139 | </tbody>
|
---|
| 140 | </table>
|
---|
[685] | 141 |
|
---|
[532] | 142 | </div>
|
---|
| 143 | </body>
|
---|
| 144 | </html>
|
---|