Ensure AXFR statistics are calculated correctly by dig and named, both for incoming and outgoing transfers. Rather than employing a zone which is already used in the "xfer" system test, create a new one whose AXFR form spans multiple TCP messages. Disable EDNS when using dig to request an AXFR so that the same reference file can be used for testing statistics calculated by both dig and named (dig uses EDNS by default when sending transfer requests, which affects the number of bytes transferred).
60 lines
1.1 KiB
Plaintext
60 lines
1.1 KiB
Plaintext
/*
|
|
* 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.
|
|
*/
|
|
|
|
include "../../common/rndc.key";
|
|
|
|
controls {
|
|
inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
|
|
};
|
|
|
|
options {
|
|
query-source address 10.53.0.1;
|
|
notify-source 10.53.0.1;
|
|
transfer-source 10.53.0.1;
|
|
port @PORT@;
|
|
pid-file "named.pid";
|
|
listen-on { 10.53.0.1; };
|
|
listen-on-v6 { none; };
|
|
recursion no;
|
|
notify yes;
|
|
};
|
|
|
|
zone "." {
|
|
type master;
|
|
file "root.db";
|
|
};
|
|
|
|
zone "slave" {
|
|
type master;
|
|
file "slave.db";
|
|
};
|
|
|
|
zone "edns-expire" {
|
|
type master;
|
|
file "edns-expire.db";
|
|
};
|
|
|
|
zone "axfr-too-big" {
|
|
type master;
|
|
file "axfr-too-big.db";
|
|
};
|
|
|
|
zone "ixfr-too-big" {
|
|
type master;
|
|
allow-update { any; };
|
|
file "ixfr-too-big.db";
|
|
};
|
|
|
|
zone "xfer-stats" {
|
|
type master;
|
|
file "xfer-stats.db";
|
|
};
|