source: trunk/reverse-patterns.html@ 568

Last change on this file since 568 was 534, checked in by Kris Deugau, 11 years ago

/trunk

Add segment on %blank% to PTR-template reference page

File size: 2.9 KB
Line 
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 <p>%blank% may be used to specifically prevent template expansion on
76 a segment of a block if desired; eg, if<br />
77 192.168.23.0/24 has "unused-%i.example.com" set, adding an A+PTR
78 template for 192.168.23.48/30 of<br />
79 "%blank%" will leave 192.168.23.48 through .51 without PTR records
80 unless specific entries exist for those IPs.<p>
81 </div>
82 </body>
83</html>
Note: See TracBrowser for help on using the repository browser.