summaryrefslogtreecommitdiff
path: root/samples/example.com.zone
blob: a1e3aef26b5bb7f3baf6898be4d52e567f5b201d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
$TTL 1h                  ; The default expiration time of a resource record without its own TTL value
$ORIGIN example.com.
@  IN  SOA  ns.example.com. username.example.com. (
              2007120713 ; serial number of this zone file
              10         ; slave refresh (1 day)
              30         ; slave retry time in case of a problem (1 day)
              4w         ; slave expiration time (4 weeks)
              1h         ; minimum caching time in case of failed lookups (1 hour)
              )
  NS    ns                    ; ns.example.com is the nameserver for example.com
  NS    ns.somewhere.com.     ; ns.somewhere.com is a backup nameserver for example.com
  MX    10 mail.example.com.  ; mail.example.com is the mailserver for example.com
             MX    20 mail2.example.com. ; Similar to above line, but using "@" to say "use $ORIGIN"
             MX    50 mail3              ; Similar to above line, but using a host within this domain
  A     10.0.0.1              ; ip address for "example.com"
ns            A     10.0.0.2              ; ip address for "ns.example.com". Since there is no "." after ns, $ORIGIN is attached
www           CNAME ns                    ; "www.example.com" is an alias for "ns.example.com"
wwwtest	CNAME www                   ; "wwwtest.example.com" is another alias for "www.example.com"
mail          A     10.0.0.3              ; ip address for "mail.example.com", any MX record host must be
ns.sub	A	10.1.0.1	; glue

;ns.sub TYPE23444 \# abcedfg

a	A	10.0.0.4
*.a	A	10.0.0.5

c	CNAME	c.a.example.com.
@	NS	ns2
ns2	A	10.0.0.6
@	NS	c.a.example.com.

sub2	NS	ns.sub2.example.com.
*.sub2	A	10.2.0.1

_foobar._tcp    SRV 0 1 9 old-slow-box.example.com.
                SRV 0 3 9 new-fast-box.example.com.
; if neither old-slow-box or new-fast-box is up, switch to
; using the sysdmin's box and the server
                SRV 1 0 9 sysadmins-box.example.com.
                SRV 1 0 9 server.example.com.
server           A   172.30.79.10
old-slow-box     A   172.30.79.11
sysadmins-box    A   172.30.79.12
new-fast-box     A   172.30.79.13
; NO other services are supported
*._tcp          SRV  0 0 0 .
*._udp          SRV  0 0 0 .

sub3	NS	ns.sub2.example.com.
sub4	NS	ns.example.com.

d	CNAME	non-existing.example.com.
e	DNAME	bogus25.com.
f	CNAME	e.example.com.
g	CNAME	www.bogus25.com.

f.g	A	10.0.0.20
h.i.j.k	A	10.0.0.21
*.j.k	A	10.0.0.22

sub5	CNAME	sub3
*.l	CNAME	c.example.com.
;*.m	NS	ns.sub2.example.com.
*.n	DNAME	bogus25.com.
o	CNAME	a.e.example.com.
p	CNAME	a.sub.example.com.
r	CNAME	a.l.example.com.
*.s	CNAME	s
s	A	10.1.1.1