Added tests for include directive + glob expressions.

This commit is contained in:
Diego dos Santos Fronza
2019-09-16 12:03:10 -03:00
committed by Diego Fronza
parent fa3fbf62e8
commit a50ab3df86
9 changed files with 169 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* 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/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
options {
port @PORT@;
pid-file "named.pid";
listen-on { 10.53.0.2; };
listen-on-v6 { none; };
recursion no;
notify no;
};
#zone "." {
# type hint;
# file "../../common/root.hint";
#};
include "zone*.conf";

View File

@@ -0,0 +1,21 @@
$TTL 86400
@ IN SOA dns1.zone1.com. hostmaster.zone1.com. (
2001062501 ; serial
21600 ; refresh after 6 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day
IN NS dns1.zone1.com.
IN NS dns2.zone1.com.
IN MX 10 mail1.zone1.com.
IN MX 20 mail2.zone1.com.
IN A 10.53.0.1
dns1 IN A 10.53.0.1
dns2 IN A 10.53.0.2
mail1 IN A 10.53.0.1
mail2 IN A 10.53.0.2

View File

@@ -0,0 +1,8 @@
zone "zone1.com" {
type master;
file "zone1.com.db";
allow-transfer { any; };
allow-update { any; };
};

View File

@@ -0,0 +1,21 @@
$TTL 86400
@ IN SOA dns1.zone2.com. hostmaster.zone2.com. (
2001062501 ; serial
21600 ; refresh after 6 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day
IN NS dns1.zone2.com.
IN NS dns2.zone2.com.
IN MX 10 mail1.zone2.com.
IN MX 20 mail2.zone2.com.
IN A 10.53.0.1
dns1 IN A 10.53.0.1
dns2 IN A 10.53.0.2
mail1 IN A 10.53.0.1
mail2 IN A 10.53.0.2

View File

@@ -0,0 +1,8 @@
zone "zone2.com" {
type master;
file "zone2.com.db";
allow-transfer { any; };
allow-update { any; };
};