- when transfer-source(-v6), query-source(-v6), notify-source(-v6) or parental-source(-v6) are specified with a port number, issue a warning. - when the port specified is the same as the DNS listener port (i.e., 53, or whatever was specified as "port" in "options"), issue a fatal error. - check that "port" is in range. (previously this was only checked by named, not by named-checkconf.) - added checkconf tests. - incidental fix: removed dead code in check.c:bind9_check_namedconf(). (note: if the DNS port is specified on the command line with "named -p", that is not conveyed to libbind9, so these checks will not take it into account.)
21 lines
510 B
Plaintext
21 lines
510 B
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.
|
|
*/
|
|
|
|
options {
|
|
port 5300;
|
|
};
|
|
|
|
zone example {
|
|
type secondary;
|
|
primaries { 1.2.3.4; };
|
|
notify-source 10.53.0.1 port 100;
|
|
};
|