Named example file » History » Version 2
Ohad Levy, 12/19/2010 05:47 AM
1 | 1 | Ohad Levy | h1. Named example file |
---|---|---|---|
2 | 1 | Ohad Levy | |
3 | 2 | Ohad Levy | <pre> |
4 | 1 | Ohad Levy | options { |
5 | 1 | Ohad Levy | directory "/var/named"; |
6 | 1 | Ohad Levy | dump-file "/var/named/data/cache_dump.db"; |
7 | 1 | Ohad Levy | statistics-file "/var/named/data/named_stats.txt"; |
8 | 1 | Ohad Levy | }; |
9 | 1 | Ohad Levy | controls { inet 127.0.0.1 allow { localhost; } keys { foreman; }; }; |
10 | 1 | Ohad Levy | include "/etc/rndc.key"; |
11 | 1 | Ohad Levy | |
12 | 1 | Ohad Levy | zone "3.2.1.in-addr.arpa" { |
13 | 1 | Ohad Levy | type master; |
14 | 1 | Ohad Levy | file "/var/named/3.2.1.rev"; |
15 | 1 | Ohad Levy | allow-update {key "foreman"; };}; |
16 | 1 | Ohad Levy | zone "my.domain" { |
17 | 1 | Ohad Levy | type master; |
18 | 1 | Ohad Levy | file "/var/named/my.domain.hosts"; |
19 | 1 | Ohad Levy | allow-update {key "foreman"; };}; |
20 | 1 | Ohad Levy | logging |
21 | 1 | Ohad Levy | { |
22 | 1 | Ohad Levy | category update { update_log; }; |
23 | 1 | Ohad Levy | channel update_log |
24 | 1 | Ohad Levy | { |
25 | 1 | Ohad Levy | file "/var/named/logs/dns-update.log" versions 2 size 20m; |
26 | 1 | Ohad Levy | print-time yes; |
27 | 1 | Ohad Levy | print-category yes; |
28 | 1 | Ohad Levy | print-severity yes; |
29 | 1 | Ohad Levy | severity info; |
30 | 1 | Ohad Levy | }; |
31 | 1 | Ohad Levy | }; |
32 | 1 | Ohad Levy | zone "." { |
33 | 1 | Ohad Levy | type forward; |
34 | 1 | Ohad Levy | forwarders { |
35 | 1 | Ohad Levy | 1.2.3.4; |
36 | 1 | Ohad Levy | }; |
37 | 1 | Ohad Levy | }; |
38 | 1 | Ohad Levy | |
39 | 1 | Ohad Levy | </pre> |