equal
deleted
inserted
replaced
15 ip = 192.0.2.2 |
15 ip = 192.0.2.2 |
16 ethernet = 01:23:45:67:89:ab |
16 ethernet = 01:23:45:67:89:ab |
17 |
17 |
18 The domain name for a host is determined from the basename of the config file, so this example file would generate something like the following output for use in a `zone "test" { ... }` zonefile: |
18 The domain name for a host is determined from the basename of the config file, so this example file would generate something like the following output for use in a `zone "test" { ... }` zonefile: |
19 |
19 |
20 $ bin/pvl.hosts-forward --forward-zone example.com etc/hosts/example.com |
20 $ bin/pvl.hosts-forward etc/hosts/example.com |
21 foo A 192.0.2.1 |
21 foo A 192.0.2.1 |
22 bar A 192.0.2.2 |
22 bar A 192.0.2.2 |
23 |
23 |
24 And correspondingly, the reverse zone for 192.0.2.0/24 |
24 And correspondingly, the reverse zone for 192.0.2.0/24 |
25 |
25 |
52 ip = 192.0.2.1 |
52 ip = 192.0.2.1 |
53 |
53 |
54 $ cat etc/hosts/test/test.d/bar |
54 $ cat etc/hosts/test/test.d/bar |
55 ip = 192.0.2.2 |
55 ip = 192.0.2.2 |
56 |
56 |
57 $ bin/pvl.hosts-forward --forward-zone test etc/hosts/test/test |
57 $ bin/pvl.hosts-forward etc/hosts/test/test |
58 foo A 192.0.2.1 |
58 foo A 192.0.2.1 |
59 bar A 192.0.2.2 |
59 bar A 192.0.2.2 |
60 |
60 |
61 And an entire directory of hosts-files, containing sub-domains, can be given: |
61 And an entire directory of hosts-files, containing sub-domains, can be given: |
62 |
62 |
65 |
65 |
66 $ cat etc/hosts/test/asdf.test |
66 $ cat etc/hosts/test/asdf.test |
67 [quux] |
67 [quux] |
68 ip = 192.0.2.5 |
68 ip = 192.0.2.5 |
69 |
69 |
70 $ bin/pvl.hosts-forward --forward-zone test etc/hosts/test/ |
70 $ bin/pvl.hosts-forward etc/hosts/test/ |
71 foo A 192.0.2.1 |
71 foo A 192.0.2.1 |
72 bar A 192.0.2.2 |
72 bar A 192.0.2.2 |
73 quux.asdf A 192.0.2.5 |
73 quux.asdf A 192.0.2.5 |
74 |
74 |
75 Note that the (include) directory name itself is NOT treated as a domain name. However, the file names which are included are. |
75 Note that the (include) directory name itself is NOT treated as a domain name. However, the file names which are included are. |
81 |
81 |
82 $ etc/hosts/wrong.d/host |
82 $ etc/hosts/wrong.d/host |
83 [host] |
83 [host] |
84 ip = 192.0.2.6 |
84 ip = 192.0.2.6 |
85 |
85 |
86 $ bin/pvl.hosts-forward --forward-zone test etc/hosts/wrong.test |
86 Using the --root-zone option to generate the full FQDN for the host: |
87 host.host.wrong A 192.0.2.6 |
87 |
|
88 $ bin/pvl.hosts-forward --root-zone etc/hosts/wrong.test |
|
89 host.host.wrong.test A 192.0.2.6 |
88 |
90 |
89 === Host aliases === |
91 === Host aliases === |
90 Hosts can specify DNS aliases: |
92 Hosts can specify DNS aliases: |
91 |
93 |
92 [foo] |
94 [foo] |