diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-16 19:31:53 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-16 19:31:53 +0300 |
commit | c8865a0d524f3d545836bd4581329089a357661e (patch) | |
tree | 4fc437a07086c4304e7ec2446be2a504a3dbd507 /tests/bind.conf | |
parent | 50e703a9a92e755f928699b705612cd4153ffb9f (diff) | |
download | grecs-c8865a0d524f3d545836bd4581329089a357661e.tar.gz grecs-c8865a0d524f3d545836bd4581329089a357661e.tar.bz2 |
Add bind testsuite.
* README.submodule: Update URL.
* src/bind-lex.l (grecs_bind_new_source): Scan include path.
* src/grecs.h (grecs_find_include_file): new proto.
* src/preproc.c (try_file): Rename to grecs_find_include_file. Change
signature and return type. All uses updated.
* tests/Makefile.am (EXTRA_DIST): Add new configs.
(TESTSUITE_AT): Add parser-bind.at.
* tests/gcffmt.c: Add -I (-include) option.
* tests/testsuite.at: Include parser-bind.at.
* tests/bind.conf: New file.
* tests/bind.dlz: New file.
* tests/bind.ext.conf: New file.
* tests/bind.int.conf: New file.
* tests/bind.keys: New file.
* tests/parser-bind.at: New file.
Diffstat (limited to 'tests/bind.conf')
-rw-r--r-- | tests/bind.conf | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/tests/bind.conf b/tests/bind.conf new file mode 100644 index 0000000..2579a58 --- /dev/null +++ b/tests/bind.conf @@ -0,0 +1,126 @@ +# Sample Bind configuration file for Grecs testsuite. +# Nothing to copyright, really:) + +acl upd-dyn-vpn { + key vpn.; + 10.11.0.1; + 10.10.0.1; +}; + +acl foo-acl { + key foo.; +}; + +options { + version "Grecs testsuite"; + coresize 0; + directory "/etc/namedb"; + pid-file "/var/log/bind/named.pid"; + allow-transfer { + foo-acl; + }; + allow-query { + any; + }; + serial-query-rate 5; + max-journal-size 5m; + check-names master warn; + check-names slave warn; + check-names response ignore; +}; + +logging { + channel default_channel { + file "/var/log/bind/named.log" versions 9 size 524288; + print-time yes; + print-severity yes; + }; + channel debug_channel { + file "/var/log/bind/named.run" versions 9 size 524288; + print-time yes; + print-severity yes; + severity dynamic; + }; + channel security_channel { + file "/var/log/bind/security" versions 9 size 524288; + print-time yes; + print-severity yes; + }; + channel xfer_in_channel { + file "/var/log/bind/named-xfer.in" versions 9 size 524288; + print-time yes; + }; + channel xfer_out_channel { + file "/var/log/bind/named-xfer.out" versions 9 size 524288; + print-time yes; + }; + channel lamers_channel { + file "/var/log/bind/lamers.log" versions 5 size 524288; + print-time yes; + print-category yes; + }; + channel update_channel { + file "/var/log/bind/update.log" versions 9 size 524288; + print-time yes; + print-category yes; + severity debug 5; + }; + channel notify_channel { + file "/var/log/bind/notify.log" versions 9 size 524288; + print-time yes; + print-category yes; + }; + channel query_channel { + file "/var/log/bind/query.log" versions 9 size 524288; + print-time yes; + }; + category security { + security_channel; + }; + category queries { +# query_channel; + null; + }; + category default { + default_channel; + debug_channel; + }; + category xfer-in { + xfer_in_channel; + }; + category xfer-out { + xfer_out_channel; + }; + category delegation-only { + lamers_channel; + }; + category lame-servers { + lamers_channel; + }; + category update { + update_channel; + }; + category notify { + notify_channel; + }; +}; + +include "bind.keys"; + +controls { + inet 127.0.0.1 port 953 + allow { 127.0.0.1; } keys { "rndc-key"; }; +}; + +view "internal" { + match-clients { + 10.0.0.0/8; + }; + include "bind.int.conf"; +}; + +view "external" { + include "bind.ext.conf"; + include "bind.dlz"; +}; +# Finis coronat opus |