1#!/bin/sh
2#
3# Copyright (C) 2004, 2007, 2012  Internet Systems Consortium, Inc. ("ISC")
4# Copyright (C) 2001  Internet Software Consortium.
5#
6# Permission to use, copy, modify, and/or distribute this software for any
7# purpose with or without fee is hereby granted, provided that the above
8# copyright notice and this permission notice appear in all copies.
9#
10# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16# PERFORMANCE OF THIS SOFTWARE.
17
18# $Id$
19
20rm -f ns1/*.db ns1/*.jnl
21
22cat <<EOF >ns1/named.conf
23options {
24	query-source address 10.53.0.1;
25	notify-source 10.53.0.1;
26	transfer-source 10.53.0.1;
27	port 5300;
28	pid-file "named.pid";
29	listen-on { 10.53.0.1; };
30	listen-on-v6 { none; };
31	recursion no;
32	notify yes;
33};
34
35key rndc_key {
36	secret "1234abcd8765";
37	algorithm hmac-md5;
38};
39
40controls {
41	inet 10.53.0.1 port 9953 allow { any; } keys { rndc_key; };
42};
43EOF
44