1/*
2 * Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 * PERFORMANCE OF THIS SOFTWARE.
15 */
16
17controls { };
18
19options {
20	directory ".";
21	port 5300;
22	pid-file "named.pid";
23	session-keyfile "session.key";
24	listen-on { any; };
25	listen-on-v6 { none; };
26	recursion no;
27};
28
29key rndc_key {
30	secret "1234abcd8765";
31	algorithm hmac-md5;
32};
33
34controls {
35	inet 127.0.0.1 port 9953 allow { any; } keys { rndc_key; };
36};
37
38/*
39 * This will match any zone name containing the string "example" and
40 * ending with .com, such as "thisexample.com", "exampleofthat.com",
41 * or "anexampleoftheotherthing.com".
42 */
43dlz "test" {
44	database "dlopen ../dlz_wildcard_dynamic.so
45        *example*.com 10.53.* 1800
46        @      3600    SOA   {ns3.example.nil. support.example.nil. 42 14400 7200 2592000 600}
47        @      3600    NS     ns3.example.nil.
48        @      3600    NS     ns4.example.nil.
49        @      3600    NS     ns8.example.nil.
50        @      3600    MX     {5 mail.example.nil.}
51        ftp    86400   A      192.0.0.1
52        sql    86400   A      192.0.0.2
53        tmp    {}      A      192.0.0.3
54        www    86400   A      192.0.0.3
55        www    86400   AAAA   ::1
56        txt    300     TXT    {\"you requested $record$ in $zone$\"}
57        *      86400   A      192.0.0.100";
58};
59