source: trunk/rDNS.html@ 622

Last change on this file since 622 was 582, checked in by Kris Deugau, 12 years ago

/trunk

Begin adding DNS integration via RPC. See #1.
IPDB.pm

  • Add a global in IPDB.pm to identify the URL for RPC DNS changes. A blank URL means this capability is disabled. (also MyIPDB.pm)
  • Accept extra parameters in addMaster() for DNS changes (default rDNS pattern, DNS location/scope/view) and while we're at it, add space to handle VRF as an informational field
  • Drop maskbits from INSERTs in addMaster()
  • Make the RPC call to add a reverse zone when adding a new master block. To assist with export caching, we split the zone into /16 or /24 chunks and add each one separately.

main.cgi

  • Retrieve DNS locations for adding a master block
  • Pass the HTTP user in to addMaster() for logging in the DNS backend

Modify templates for add master
Remove long-obsolete function in widgets.js, add function for:
Add rDNS pattern reference page

Note the RPC calls require at least dnsadmin:trunk@r447 to work properly.

File size: 1.9 KB
RevLine 
[582]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<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">
8</head>
9<body>
10
11<p>
12The IP Database can pass reverse DNS information back and forth to a DNS management backend to simplify
13maintenance of the reverse DNS records associated with the IPs being managed.</p>
14
15<p>Reverse zones are created on /16 or /24 boundaries for IPv4, since simple classful delegation can't be done
16at other boundaries anyway.</p>
17
18<p>Several shortcuts can be used when specifying a pattern for an IPv4 netblock, which will be expanded to
19actual DNS records by the DNS management system.</p>
20
21<table class="regular" cellspacing="1" cellpadding="1" bgcolor="#000000">
22<tr class="header"><td></td><td>Substitution pattern</td><td>Example expansion using 192.168.23.45</td></tr>
23
24<tr class="header"><td colspan="3">Whole-IP patterns</td></tr>
25<tr class="row0"><td>Dashed IP</td><td>%i</td><td>192-168-23-45</td></tr>
26<tr class="row1"><td>Reverse dashed IP</td><td>%r</td><td>45-23-168-192</td></tr>
27<tr class="row0"><td>Hex-coded IP</td><td>%h</td><td>c0a8172d</td></tr>
28<tr class="row1"><td>Decimal IP</td><td>%d</td><td>323241453</td></tr>
29
30<tr class="header"><td colspan="3">Per-octet patterns (1, 2, 3, or 4 specify the octet; d, h or 0
31specify decimal, hexidecimal, or 0-padded decimal)</td>
32<tr class="row0"><td>First octet, decimal</td><td>%1d</td><td>192</td></tr>
33<tr class="row1"><td>Third octet, 0-padded</td><td>%30</td><td>023</td></tr>
34<tr class="row0"><td>Fourth octet, hexidecimal</td><td>%4h</td><td>2d</td></tr>
35<tr class="row1"><td>All octets, different expansions</td><td>%1h-%2d-%30-%4h</td><td>c0-168-023-2d</td></tr>
36
37</table>
38
39</body></html>
Note: See TracBrowser for help on using the repository browser.