2bef3713093349af52ba61eaab07adf3207da873Mark Andrews/*
296f5969a8dd6e3d1bb3761569c6a7070abd2e47Tinderbox User * Copyright (C) 2005, 2007, 2010-2017 Internet Systems Consortium, Inc. ("ISC")
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews *
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews */
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews/*
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews * This is just a random selection of configuration options.
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews */
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt/* cut here */
2bef3713093349af52ba61eaab07adf3207da873Mark Andrewsoptions {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt avoid-v4-udp-ports {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt 100;
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt avoid-v6-udp-ports {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt 100;
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt blackhole {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt 10.0.0.0/8;
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt coresize 1073741824;
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt datasize 104857600;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews deallocate-on-exit yes;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews directory ".";
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt dscp 41;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews dump-file "named_dumpdb";
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews fake-iquery yes;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews files 1000;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews has-old-clients no;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews heartbeat-interval 30;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews host-statistics yes;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews host-statistics-max 100;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews hostname none;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews interface-interval 30;
761d135ed686601f36fe3d0d4aaa6bf41287bb0fEvan Hunt keep-response-order {
802e0662ef6041078cb7bad4cdb197a295eab770Mark Andrews 10.0.10.0/24;
761d135ed686601f36fe3d0d4aaa6bf41287bb0fEvan Hunt };
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt listen-on port 90 {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt "any";
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt listen-on port 100 dscp 33 {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt 127.0.0.1/32;
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt listen-on-v6 port 53 dscp 57 {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt "none";
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews match-mapped-addresses yes;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews memstatistics-file "named.memstats";
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews multiple-cnames no;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews named-xfer "this is no longer needed";
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews pid-file none;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews port 5300;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews querylog yes;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews random-device "/dev/random";
a6a3a81e360f32705c30fc0e615541ac63feedbbMark Andrews recursing-file "named.recursing";
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews recursive-clients 3000;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews serial-queries 10;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews serial-query-rate 100;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews server-id none;
2a184ff86544cc67c36e2ce6bb3ddb5ac44684b8Evan Hunt max-cache-size 20000000000000;
498b0610312364afc5698b2e4caaa4dcc836133aEvan Hunt nta-lifetime 604800;
95ed40ff9a47da91cd46c1fed16f60190cac48b3Mark Andrews nta-recheck 604800;
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt transfer-source 0.0.0.0 dscp 63;
40a7e85f3ee3bd66a8f87bf8af674e1e48b05396Evan Hunt zone-statistics none;
2bef3713093349af52ba61eaab07adf3207da873Mark Andrews};
de7df3e56fe99c33a415674b018aae93eee94750Evan Huntview "first" {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt match-clients {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt "none";
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt zone "example1" {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt type master;
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt file "xxx";
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt update-policy local;
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt notify-source 10.10.10.10 port 53 dscp 55;
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt zone "clone" {
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt type master;
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt file "yyy";
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt };
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt dnssec-validation auto;
40a7e85f3ee3bd66a8f87bf8af674e1e48b05396Evan Hunt zone-statistics terse;
d454a60f5664d7b4d026df93bf7745edd25cd897Evan Hunt};
de7df3e56fe99c33a415674b018aae93eee94750Evan Huntview "second" {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt match-clients {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt "any";
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt zone "example1" {
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt type master;
1c5990c2f98abf0c2adf7f54a531d8a4a3965414Mark Andrews file "zzz";
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt update-policy local;
40a7e85f3ee3bd66a8f87bf8af674e1e48b05396Evan Hunt zone-statistics yes;
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt };
85705b4b5a4b666981997ffe222738d281b9bf58Evan Hunt zone "example2" {
85705b4b5a4b666981997ffe222738d281b9bf58Evan Hunt type static-stub;
85705b4b5a4b666981997ffe222738d281b9bf58Evan Hunt forward only;
85705b4b5a4b666981997ffe222738d281b9bf58Evan Hunt forwarders {
85705b4b5a4b666981997ffe222738d281b9bf58Evan Hunt 10.53.0.4;
85705b4b5a4b666981997ffe222738d281b9bf58Evan Hunt };
40a7e85f3ee3bd66a8f87bf8af674e1e48b05396Evan Hunt zone-statistics no;
85705b4b5a4b666981997ffe222738d281b9bf58Evan Hunt };
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt zone "clone" {
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt in-view "first";
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt };
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt zone "." {
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt type redirect;
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt masters {
226339ed435db90da8e072ef46e2c27cf0dc687bEvan Hunt 1.2.3.4;
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt };
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt };
d5bd8bb71a8970d4ebc4701b3e9ec3efef4954b7Evan Hunt dnssec-lookaside "." trust-anchor "example.org.";
de7df3e56fe99c33a415674b018aae93eee94750Evan Hunt dnssec-validation auto;
40a7e85f3ee3bd66a8f87bf8af674e1e48b05396Evan Hunt zone-statistics full;
a27bbd21cf07371fc71e7ade75c3d78a5b98b7f9Mark Andrews};
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Huntview "third" {
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt match-clients {
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt "none";
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt };
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt zone "clone" {
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt in-view "first";
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt forward only;
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt forwarders {
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt 10.0.0.100;
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt };
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt };
22e29471c784acd09619841926c4f765e36ac74aEvan Hunt zone "dnssec" {
22e29471c784acd09619841926c4f765e36ac74aEvan Hunt type master;
22e29471c784acd09619841926c4f765e36ac74aEvan Hunt file "file";
22e29471c784acd09619841926c4f765e36ac74aEvan Hunt auto-dnssec maintain;
22e29471c784acd09619841926c4f765e36ac74aEvan Hunt };
22e29471c784acd09619841926c4f765e36ac74aEvan Hunt allow-update {
22e29471c784acd09619841926c4f765e36ac74aEvan Hunt "any";
22e29471c784acd09619841926c4f765e36ac74aEvan Hunt };
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan Hunt};
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Huntview "chaos" chaos {
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt zone "hostname.bind" chaos {
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt type master;
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt database "_builtin hostname";
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt };
baad8d9fd8dd054ce1edf350ff0c0f2038a1519eEvan Hunt};
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Huntdyndb "name" "library.so" {
a0c1ad17abcf07a2765eb054304d9b8b09887af2Tinderbox User this;
a0c1ad17abcf07a2765eb054304d9b8b09887af2Tinderbox User \};
a0c1ad17abcf07a2765eb054304d9b8b09887af2Tinderbox User is a {
a0c1ad17abcf07a2765eb054304d9b8b09887af2Tinderbox User "test" { \{ of; the; };
a0c1ad17abcf07a2765eb054304d9b8b09887af2Tinderbox User } bracketed;
a0c1ad17abcf07a2765eb054304d9b8b09887af2Tinderbox User "text \"";
a0c1ad17abcf07a2765eb054304d9b8b09887af2Tinderbox User system;
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt};
0c2d891abeb2b35e290ca9da29e1227110b5be23Mark Andrewskey "mykey" {
0c2d891abeb2b35e290ca9da29e1227110b5be23Mark Andrews algorithm "hmac-md5";
0c2d891abeb2b35e290ca9da29e1227110b5be23Mark Andrews secret "qwertyuiopasdfgh";
0c2d891abeb2b35e290ca9da29e1227110b5be23Mark Andrews};