author | Tero Marttila <tero.marttila@aalto.fi> |
Tue, 24 Feb 2015 17:48:10 +0200 | |
changeset 443 | ef1d6f1cbf7c |
parent 438 | d45fc43c6073 |
child 447 | 6f0357759e9b |
permissions | -rw-r--r-- |
438
d45fc43c6073
split out pvl-hosts from pvl-verkko
Tero Marttila <tero.marttila@aalto.fi>
parents:
34
diff
changeset
|
1 |
= pvl-hosts = |
34
491f7da9d29b
pvl.verkko-dhcp: fix polling without syslog; README
Tero Marttila <terom@paivola.fi>
parents:
diff
changeset
|
2 |
|
443 | 3 |
DNS/DHCP hosts management/integration for ISC bind9 and dhcpd. |
4 |
||
5 |
Also includes network SNMP discovery. |
|
6 |
||
7 |
== Hosts == |
|
8 |
The `pvl.hosts-* etc/hosts/test` tools read hosts files as input, which have an ini format, using section names as hostnames to configure attributes for that host: |
|
9 |
||
10 |
[foo] |
|
11 |
ip = 127.0.0.1 |
|
12 |
||
13 |
[bar] |
|
14 |
ip = 127.0.0.2 |
|
15 |
||
16 |
The default mechanism uses the basename of the given config file as the domain name, so this example file would generate something like the following output for use in a `zone "test" { ... }` zonefile: |
|
17 |
||
18 |
$ pvl.hosts-dns --forward-zone=test etc/hosts/test |
|
19 |
foo A 127.0.0.1 |
|
20 |
bar A 127.0.0.2 |
|
21 |
||
22 |
And correspondingly, the reverse zone for 127.0.0.0/8: |
|
23 |
||
24 |
$ pvl.hosts-dns --reverse-zone=127 etc/hosts/test |
|
25 |
1.0.0 PTR foo.test. |
|
26 |
2.0.0 PTR bar.test. |
|
27 |