README
changeset 447 6f0357759e9b
parent 443 ef1d6f1cbf7c
child 448 5ab0ec8200c3
equal deleted inserted replaced
446:139b3a41b608 447:6f0357759e9b
    23 
    23 
    24     $ pvl.hosts-dns --reverse-zone=127 etc/hosts/test
    24     $ pvl.hosts-dns --reverse-zone=127 etc/hosts/test
    25     1.0.0                             PTR   foo.test.
    25     1.0.0                             PTR   foo.test.
    26     2.0.0                             PTR   bar.test.
    26     2.0.0                             PTR   bar.test.
    27 
    27 
       
    28 === Generated hosts ===
       
    29 The hosts file format supports something similar to bind9's $GENERATE directive for hosts:
       
    30 
       
    31     [asdf{1-3}]
       
    32         ip  = 10.100.100.$
       
    33 
       
    34     $ bin/pvl.hosts-dns --forward-zone=asdf etc/hosts/asdf 
       
    35     asdf1@asdf                        A     10.100.100.1
       
    36     asdf2@asdf                        A     10.100.100.2
       
    37     asdf3@asdf                        A     10.100.100.3
       
    38 
       
    39 Note that the generate directives are interpreted and compiled directly by pvl.hosts. 
       
    40 
       
    41 Most of the $GENERATE options should be supported, with a little clever hackery:
       
    42 
       
    43     [asdf{1-5/2}{0,2}]
       
    44        ip  = 10.100.100.$${10}
       
    45 
       
    46     $ bin/pvl.hosts-dns --forward-zone=asdf2 etc/hosts/asdf2
       
    47     asdf01@asdf2                      A     10.100.100.11
       
    48     asdf03@asdf2                      A     10.100.100.13
       
    49     asdf05@asdf2                      A     10.100.100.15
       
    50