named4.conf.in 1.21 KB
Newer Older
1
/*
2
 * Copyright (C) 2008, 2016  Internet Systems Consortium, Inc. ("ISC")
3
 *
4 5 6
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 8
 */

Evan Hunt's avatar
Evan Hunt committed
9 10 11 12
key rndc_key {
	secret "1234abcd8765";
	algorithm hmac-sha256;
};
13

Evan Hunt's avatar
Evan Hunt committed
14 15 16
controls {
	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
};
17 18 19 20 21

options {
	query-source address 10.53.0.2;
	notify-source 10.53.0.2;
	transfer-source 10.53.0.2;
Evan Hunt's avatar
Evan Hunt committed
22
	port @PORT@;
23 24 25 26 27 28 29 30 31 32
	pid-file "named.pid";
	listen-on { 10.53.0.2; };
	listen-on-v6 { none; };
	recursion no;
	notify yes;
	ixfr-from-differences yes;
	check-integrity no;
};

key one {
33 34
	algorithm hmac-md5;
	secret "1234abcd8765";
35 36 37
};

key two {
38 39
	algorithm hmac-md5;
	secret "1234abcd8765";
40 41 42
};

acl rejectkeys {
43
	!key one; !key two; any;
44 45 46
};

acl rejectaddrs {
47
	!10.53.0.1; !10.53.0.2; any;
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
};

acl check1 { !key one; 10.53.0.1; };

acl check2 { !key two; 10.53.0.2; };

zone "." {
	type hint;
	file "../../common/root.hint";
};

zone "example" {
	type master;
	file "example.db";
};

zone "tsigzone" {
	type master;
	file "tsigzone.db";
67
	allow-transfer { !rejectkeys; !rejectaddrs; !check1; !check2; any; };
68
};