- Timestamp:
- 08/25/16 17:05:13 (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r733 r741 1655 1655 my ($c) = ($$tmpl =~ /(\%-?c)/); my $nld = ''; my $cld = ''; 1656 1656 $c = '' if !$c; 1657 my ($cn) = ($$tmpl =~ /(\%x)/); 1657 1658 my $skipgw = ($c =~ /\%-c/ ? 0 : 1); 1658 1659 my $ipkill = 0; 1660 1661 if ($cn) { 1662 # "natural n'th IP in the block" pattern 1663 $$tmpl =~ s/$cn/$ipindex+1/e; 1664 } 1659 1665 1660 1666 ##fixme: still have one edge case not handled well: -
trunk/reverse-patterns.html
r688 r741 138 138 </td> 139 139 </tr> 140 <tr class="row0"> 141 <td>n'th natural IP</td> 142 <td>%x</td> 143 <td> 144 customer-%3d-%x.example.com<br /> 145 192.168.23.40 -> customer-23-1.example.com<br /> 146 192.168.23.41 -> customer-23-2.example.com<br /> 147 192.168.23.42 -> customer-23-3.example.com<br /> 148 192.168.23.43 -> customer-23-4.example.com<br /> 149 192.168.23.44 -> customer-23-5.example.com<br /> 150 192.168.23.45 -> customer-23-6.example.com<br /> 151 192.168.23.46 -> customer-23-7.example.com<br /> 152 192.168.23.47 -> customer-23-8.example.com 153 </td> 154 </tr> 155 <tr class="row1"> 156 <td colspan="3">Results may be exciting when combined with other patterns. 157 </tr> 158 <tr class="row0"> 159 <td>n'th natural IP</td> 160 <td>%x</td> 161 <td> 162 customer-23-%x.example.com<br /> 163 192.168.23.40 -> customer-23-1.example.com<br /> 164 192.168.23.41 -> customer-23-2.example.com<br /> 165 192.168.23.42 -> customer-23-3.example.com<br /> 166 192.168.23.43 -> customer-23-4.example.com<br /> 167 192.168.23.44 -> customer-23-5.example.com<br /> 168 192.168.23.45 -> customer-23-6.example.com<br /> 169 192.168.23.46 -> customer-23-7.example.com<br /> 170 192.168.23.47 -> customer-23-8.example.com 171 </td> 172 </tr> 173 <tr class="row0"> 174 <td>n'th natural IP</td> 175 <td>%x</td> 176 <td> 177 customer-23-%x.example.com<br /> 178 192.168.23.40 -> customer-23-1.example.com<br /> 179 192.168.23.41 -> customer-23-2.example.com<br /> 180 192.168.23.42 -> customer-23-3.example.com<br /> 181 192.168.23.43 -> customer-23-4.example.com<br /> 182 192.168.23.44 -> customer-23-5.example.com<br /> 183 192.168.23.45 -> customer-23-6.example.com<br /> 184 192.168.23.46 -> customer-23-7.example.com<br /> 185 192.168.23.47 -> customer-23-8.example.com 186 </td> 187 </tr> 140 188 </tbody> 141 189 </table>
Note:
See TracChangeset
for help on using the changeset viewer.