Added test to verify that both include glob-expression and include

non-glob-expression works.
This commit is contained in:
Diego Fronza
2019-10-22 10:43:24 -03:00
parent a50ab3df86
commit f97ba7a7c2
8 changed files with 35 additions and 27 deletions

View File

@@ -0,0 +1,13 @@
$TTL 86400
@ IN SOA dns1.mars.com. hostmaster.mars.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.mars.com.
IN A 10.53.0.1
dns1 IN A 10.53.0.1

View File

@@ -0,0 +1,6 @@
zone "mars.com" {
type master;
file "mars.com.db";
};

View File

@@ -18,10 +18,9 @@ options {
notify no;
};
#zone "." {
# type hint;
# file "../../common/root.hint";
#};
# Should include all files matching pattern.
include "zone*.conf";
# Shouldn't break standard file pattern.
include "mars.conf";

View File

@@ -7,15 +7,7 @@ $TTL 86400
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

@@ -2,7 +2,5 @@
zone "zone1.com" {
type master;
file "zone1.com.db";
allow-transfer { any; };
allow-update { any; };
};

View File

@@ -7,15 +7,7 @@ $TTL 86400
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

@@ -2,7 +2,5 @@
zone "zone2.com" {
type master;
file "zone2.com.db";
allow-transfer { any; };
allow-update { any; };
};