]> mj.ucw.cz Git - nsc-5.git/blob - cf.dist/domains
Added the FORWARDING macro.
[nsc-5.git] / cf.dist / domains
1 ; An example domain table for the NSC
2
3 ; Various mandatory things required by RFC 1912, section 4.1
4 PRIMARY(localhost)
5 REVERSE(0)
6 REVERSE(255)
7 REVERSE(127.0.0, localhost)
8
9 ; A pretty normal example domain (we act as a primary nameserver for it)
10
11 PRIMARY(example.com)
12
13 ; It also has a couple of sub-domains and one of them resides on another server
14
15 PRIMARY(a.example.com)
16 SECONDARY(b.example.com, 10.0.0.1)
17
18 ; Yet another subdomain residing on another server, but this time with
19 ; access restricted to the internal network. The closing quote after the
20 ; options has to be on a separate line, because semicolon is a comment character.
21
22 ZONE_OPTIONS(`allow-query { 127.0.0.0/8; 10.0.0.0/8; };
23         allow-recursion { 127.0.0.0/8; 10.0.0.0/8; };
24         allow-transfer { 127.0.0.0/8; 10.0.0.0/8; };
25 ')
26 SECONDARY(priv.example.com, 10.10.10.1)
27 ZONE_OPTIONS()
28
29 ; Here are reverse delegations for two networks. NSC automatically creates
30 ; the PTR records from A records in all mentioned zones. See cf/{0,1}.0.10.
31
32 REVERSE(10.0.0, example.com, a.example.com)
33 REVERSE(10.1.0, example.com, a.example.com, ip6.example.com)
34
35 ; You can even have reverse zones for larger networks
36
37 REVERSE(10.2, a.example.com)
38
39 ; Here are the examples of classless reverse delegation using subdomains
40 ; and PTR records as recommended by RFC 2317. We use the subdomain names
41 ; recommended by the RFC, however, this is not fixed anywhere and you can
42 ; use any names you like (or your ISP likes).
43
44 ; In the 10.1.0 network, we define a classless delegation (see cf/0.1.10),
45 ; but we also want to run a secondary server for the subdomain. As usually,
46 ; the REV macro is handy for constructing a reverse domain name.
47
48 SECONDARY(REV(10.1.0.128/25), 10.1.0.2)
49
50 ; And vice versa: we are delegated 10.3.0.64/26, so we want to create
51 ; the corresponding subdomain. The "/" in domain name gets automatically
52 ; translated to "@" when forming a file name, so you will find the corresponding
53 ; config file in cf/64@26.0.3.10.
54
55 REVERSE(10.3.0.64/26, a.example.com)
56
57 ; The final challenge: a subdomain with both IPv4 and IPv6 records
58 ; together with the corresponding reverse records (in IPv6 mode, all
59 ; networks are always accompanied by a netmask).
60 ; See cf/ip6.example.com and cf/4.3.2.1.0.c.e.f for details
61
62 PRIMARY(ip6.example.com)
63 REVERSE(fec0:1234::/32, ip6.example.com)
64
65 ; One more: a forward-only zone
66
67 FORWARDING(fwd.example.com, 10.0.0.1, 10.0.0.2)