Reverse DNS Template Reference
| Substitution pattern | Example expansion using 192.168.23.45 | |
| Whole-IP patterns | ||
| Dashed IP | %i | 192-168-23-45 |
| Reverse dashed IP | %r | 45-23-168-192 |
| Hex-coded IP | %h | c0a8172d |
| Decimal IP | %d | 323241453 |
| Per-octet patterns (1, 2, 3, or 4 specify the octet; d, h or 0 specify decimal, hexidecimal, or 0-padded decimal) | ||
| First octet, decimal | %1d | 192 |
| Third octet, 0-padded | %30 | 023 |
| Fourth octet, hexidecimal | %4h | 2d |
| All octets, different expansions | %1h-%2d-%30-%4h | c0-168-023-2d |
%i and %r also allow explicitly defining the separator; eg %.i
or %_r. '.', '-', and '_' are the only characters
supported since DNS names may not contain most other
non-alphanumerics.
%blank% may be used to specifically prevent template expansion on
a segment of a block if desired; eg, if
192.168.23.0/24 has "unused-%i.example.com" set, adding an A+PTR
template for 192.168.23.48/30 of
"%blank%" will leave 192.168.23.48 through .51 without PTR records
unless specific entries exist for those IPs.