Changeset 778


Ignore:
Timestamp:
09/29/15 18:09:43 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Build a quick hack to import the rDNS pattern table into rDNS.html from
the DNSAdmin source file instead of hand-copying it. Still committing
rDNS.html to SVN for convenience since it shouldn't change much.

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rDNS.html

    r684 r778  
    22<html>
    33<head>
    4         <title>IP Database Reverse DNS Help</title>
    5         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    6         <link rel="stylesheet" type="text/css" href="ipdb.css">
    7         <link rel="stylesheet" type="text/css" href="local.css">
     4        <title>IP Database Reverse DNS Help</title>
     5        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     6        <link rel="stylesheet" type="text/css" href="ipdb.css">
     7        <link rel="stylesheet" type="text/css" href="local.css">
    88</head>
    99<body>
    1010
    11 <p>The IP Database can pass reverse DNS information back and forth to a DNS management backend to simplify
     11<!--
     12  This file is generated, and should not be edited directly.  Edit gen-rDNS.pl to edit the header below, and
     13  see https://secure.deepnet.cx/svn/dnsadmin/trunk/reverse-patterns.html for the tables.
     14-->
     15
     16<p>The IP Database can pass reverse DNS information back and forth to a DNS management backend to simplify
    1217maintenance of the reverse DNS records associated with the IPs being managed.</p>
    1318
    14 <p>Several shortcuts can be used when specifying a pattern for an IPv4 netblock, which will be expanded to
    15 actual DNS records by the DNS management system.  %blank% may be used to skip template expansion on a
    16 subblock or IP.</p>
     19<p>Several shortcuts can be used when specifying a pattern for an IPv4 netblock, which will be expanded to
     20actual DNS records by the DNS management system.</p>
    1721
    18 <p>Entries should generally only be present in the "Per-IP reverse entries" section if they are different from 
     22<p>Entries should generally only be present in the "Per-IP reverse entries" section if they are different from
    1923the block pattern.</p>
    2024
    21 <p>Template patterns are not supported for IPv6 allocations due to the size of the address space and typical 
     25<p>Template patterns are not supported for IPv6 allocations due to the size of the address space and typical
    2226size of allocations.</p>
    2327
    24 <table class="regular" cellspacing="1" cellpadding="1" bgcolor="#000000">
    25 <tr class="header"><td></td><td>Substitution pattern</td><td>Example expansion using 192.168.23.45</td></tr>
     28<p>"(cached)" or "[local]" indicates the rDNS information shown came from IPDB records,
     29and not the DNS management utility.  It may be out of date, or DNS
     30management integration may be missing or incomplete for this block.</p>
    2631
    27 <tr class="header"><td colspan="3">Whole-IP patterns</td></tr>
    28 <tr class="row0"><td>Dashed IP</td><td>%i</td><td>192-168-23-45</td></tr>
    29 <tr class="row1"><td>Reverse dashed IP</td><td>%r</td><td>45-23-168-192</td></tr>
    30 <tr class="row0"><td>Hex-coded IP</td><td>%h</td><td>c0a8172d</td></tr>
    31 <tr class="row1"><td>Decimal IP</td><td>%d</td><td>323241453</td></tr>
     32<!-- rdns pattern table -->
     33      <table class="container" cellpadding="2" cellspacing="2" style="max-width:850px;">
     34        <tbody>
     35          <tr class="tableheader">
     36            <td colspan="3">Whole-IP patterns</td>
     37          </tr>
     38          <tr class="tableheader">
     39            <td></td>
     40            <td>Substitution pattern</td>
     41            <td>Example expansion using 192.168.23.45</td>
     42          </tr>
     43          <tr class="row0">
     44            <td>Dashed IP</td>
     45            <td>%i</td>
     46            <td>192-168-23-45</td>
     47          </tr>
     48          <tr class="row1">
     49            <td>Reverse dashed IP</td>
     50            <td>%r</td>
     51            <td>45-23-168-192</td>
     52          </tr>
     53          <tr class="row0">
     54            <td>Hex-coded IP</td>
     55            <td>%h</td>
     56            <td>c0a8172d</td>
     57          </tr>
     58          <tr class="row1">
     59            <td>Decimal IP</td>
     60            <td>%d</td>
     61            <td>323241453</td>
     62          </tr>
     63          <tr class="row0">
     64            <td colspan="3">
     65              %i and %r also allow explicitly defining the separator; eg %.i or %_r.  Dot/period (.), dash (-),
     66              and underscore (_) are the only characters supported since DNS names may not contain most
     67              other non-alphanumerics.
     68            </td>
     69          </tr>
     70          <tr class="row0">
     71            <td colspan="3">
     72              %blank% may be used to specifically prevent template expansion on a segment of a block if
     73              desired;  eg, if 192.168.23.0/24 has "unused-%i.example.com" set, adding an A+PTR template
     74              for 192.168.23.48/30 of "%blank%" will leave 192.168.23.48 through .51 without PTR records
     75              unless specific entries exist for those IPs.
     76            </td>
     77          </tr>
     78          <tr class="tableheader">
     79            <td colspan="3">Per-octet patterns (1, 2, 3, or 4 specify
     80              the octet; d, h or 0 specify decimal, hexidecimal, or
     81              0-padded decimal)</td>
     82          </tr>
     83          <tr class="row0">
     84            <td>First octet, decimal</td>
     85            <td>%1d</td>
     86            <td>192</td>
     87          </tr>
     88          <tr class="row1">
     89            <td>Third octet, 0-padded</td>
     90            <td>%30</td>
     91            <td>023</td>
     92          </tr>
     93          <tr class="row0">
     94            <td>Fourth octet, hexidecimal</td>
     95            <td>%4h</td>
     96            <td>2d</td>
     97          </tr>
     98          <tr class="row1">
     99            <td>All octets, different expansions</td>
     100            <td>%1h-%2d-%30-%4h</td>
     101            <td>c0-168-023-2d</td>
     102          </tr>
    32103
    33 <tr class="header"><td colspan="3">Per-octet patterns (1, 2, 3, or 4 specify the octet;  d, h or 0
    34  specify decimal, hexidecimal, or 0-padded decimal)</td></tr>
    35 <tr class="row0"><td>First octet, decimal</td><td>%1d</td><td>192</td></tr>
    36 <tr class="row1"><td>Third octet, 0-padded</td><td>%30</td><td>023</td></tr>
    37 <tr class="row0"><td>Fourth octet, hexidecimal</td><td>%4h</td><td>2d</td></tr>
    38 <tr class="row1"><td>All octets, different expansions</td><td>%1h-%2d-%30-%4h</td><td>c0-168-023-2d</td></tr>
     104          <tr><td colspan="3">&nbsp;</td></tr>
    39105
    40 </table>
     106          <tr class="tableheader">
     107            <td colspan="3">Extensions</td>
     108          </tr>
     109          <tr class="tableheader">
     110            <td></td>
     111            <td>Substitution pattern</td>
     112            <td>Example expansion using 192.168.23.40/29</td>
     113          </tr>
     114          <tr class="row0">
     115            <td>Network/<br />gateway/<br />broadcast</td>
     116            <td>%ngb%</td>
     117            <td>
     118              customer-%i%ngb%.example.com<br />
     119              192.168.23.40 -> customer-net.example.com<br />
     120              192.168.23.41 -> customer-gw.example.com<br />
     121              192.168.23.42 -> customer-192-168-23-42.example.com<br />
     122              192.168.23.43 -> customer-192-168-23-43.example.com<br />
     123              192.168.23.44 -> customer-192-168-23-44.example.com<br />
     124              192.168.23.45 -> customer-192-168-23-45.example.com<br />
     125              192.168.23.46 -> customer-192-168-23-46.example.com<br />
     126              192.168.23.47 -> customer-bcast.example.com
     127            </td>
     128          </tr>
     129          <tr class="row1">
     130            <td colspan="3">
     131              Any IP pattern component is blanked on the network, gateway, and broadcast IPs when this is
     132              used.<br />
     133              Each of n, g, or b can be prefixed with a dash, eg %-ng-b% or %n-g-b%, which will
     134              blank that entire entry instead of substituting <tt>net</tt>, <tt>gw</tt>, or <tt>bcast</tt>.
     135            </td>
     136          </tr>
     137          <tr class="row0">
     138            <td>n'th usable IP</td>
     139            <td>%c</td>
     140            <td>
     141              customer-%3d-%c.example.com<br />
     142              192.168.23.40 -> customer-23.example.com<br />
     143              192.168.23.41 -> customer-23.example.com<br />
     144              192.168.23.42 -> customer-23-1.example.com<br />
     145              192.168.23.43 -> customer-23-2.example.com<br />
     146              192.168.23.44 -> customer-23-3.example.com<br />
     147              192.168.23.45 -> customer-23-4.example.com<br />
     148              192.168.23.46 -> customer-23-5.example.com<br />
     149              192.168.23.47 -> customer-23.example.com
     150            </td>
     151          </tr>
     152          <tr class="row1">
     153            <td colspan="3">
     154              c can be prefixed with a dash (%-c), which starts the numbering from the conventional gateway IP
     155              instead.  (.41 above would be 1, .42 2, etc, finishing with 6 at .46).
     156            </td>
     157          </tr>
     158        </tbody>
     159      </table>
     160<!-- done rdns pattern table -->
    41161
    42 <p> %i and %r also allow explicitly defining the separator; eg %.i
    43 or %_r. '.', '-', and '_' are the only characters<br>
    44 supported since DNS names may not contain most other
    45 non-alphanumerics.</p>
    46 
    47 </body></html>
     162</body>
     163</html>
Note: See TracChangeset for help on using the changeset viewer.