/*
   Hickory DNS bench setup:
      this is meant to mimic the hickory-server config
      which is in tests/test-data/test_configs/example.toml
 */

include "../../tests/compatibility-tests/tests/conf/tsig.conf";

controls { /* empty */ };

options {
  /*directory ".";*/
  pid-file "./named.pid";
  session-keyfile "./session.key";
	listen-on { 127.0.0.1; };
	listen-on-v6 { none; };
	recursion no;
};

zone "localhost" {
  type master;
  file "../../crates/server/tests/test-data/test_configs/default/localhost.zone";
};

zone "0.0.127.in-addr.arpa" {
  type master;
  file "../../crates/server/tests/test-data/test_configs/default/127.0.0.1.zone";
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
  type master;
  file "../../crates/server/tests/test-data/test_configs/default/ipv6_1.zone";
};

zone "255.in-addr.arpa" {
  type master;
  file "../../crates/server/tests/test-data/test_configs/default/255.zone";
};

zone "0.in-addr.arpa" {
  type master;
  file "../../crates/server/tests/test-data/test_configs/default/0.zone";
};

zone "example.com" {
  type master;
  file "../../tests/compatibility-tests/tests/conf/bind-example.com.zone";
  journal "./bind-example.com.zone.jnl";

  allow-query { any; };
  allow-update { key "update.example.com."; };
};

zone "example.net" {
  type master;
  file "../../tests/compatibility-tests/tests/conf/bind-example.net.zone";
  journal "./bind-example.net.zone.jnl";

  allow-query { any; };
  allow-update { any; key "tsig-key"; };
};
