aboutsummaryrefslogtreecommitdiff
path: root/tests/bind.dlz
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bind.dlz')
-rw-r--r--tests/bind.dlz33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/bind.dlz b/tests/bind.dlz
new file mode 100644
index 0000000..ffbbfc9
--- /dev/null
+++ b/tests/bind.dlz
@@ -0,0 +1,33 @@
1# Sample Bind configuration include file (3) for Grecs testsuite.
2# This is a typical (?) DLZ configuraton for BIND.
3#
4dlz "DLZ" {
5 database "mysql
6 {host=localhost socket=/var/run/mysql/mysql.sock dbname=Foo user=bind ssl=false}
7 {select r.zone from dns_soa r, dns_acl a where r.zone = '%zone%'
8 and a.network <= inet_aton('%client%') and inet_aton('%client%') <=
9 a.bcast
10 and a.view = r.view }
11 {select r.ttl, r.type, r.mx_priority,
12 case when r.type='TXT' then concat('\"', r.data, '\"') else r.data end
13 from dns_records r, dns_acl a,
14 where r.zone = '%zone%' and r.host = '%record%'
15 and not (r.type = 'SOA' or r.type = 'NS')
16 and a.network <= inet_aton('%client%') and inet_aton('%client%') <=
17 a.bcast
18 and a.view = r.view }
19 {select r.ttl, r.type, r.data, r.resp_person, r.serial,
20 r.refresh, r.retry, r.expire, r.minimum
21 from dns_soa r, dns_acl a where r.zone = '%zone%'
22 and (r.type = 'SOA' or r.type='NS')
23 and a.network <= inet_aton('%client%') and
24 inet_aton('%client%') <= a.bcast
25 and a.view = r.view }
26 {select r.ttl, r.type, r.host, r.mx_priority, case when r.type='TXT' then
27 concat('\"', r.data, '\"') else r.data end
28 from dns_records r, dns_acl a where r.zone = '%zone%'
29 and a.network <= inet_aton('%client%') and
30 inet_aton('%client%') <= a.bcast
31 and a.view = r.view }
32 {select zone from dns_xfr where zone = '%zone%' and client = '%client%'}";
33};

Return to:

Send suggestions and report system problems to the System administrator.