]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: document file extension of zone forward file and do not accept empty list of... 15194/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 11 Feb 2025 14:42:54 +0000 (15:42 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 21 Feb 2025 09:02:36 +0000 (10:02 +0100)
commitb287e5714ba340295edd6d565a4175b2e70dafd2
tree0cb39e0c9917ccf1cd5b33676e0863b345c11b26
parent2a2919ef71dce50f9a0349e54a0466b3d9150de5
rec: document file extension of zone forward file and do not accept empty list of forwards

The YAML code already disallows an empty forwarders list. The added
case mainly covers the case when an old-style forward file is parsed
as if it's YAML. This now generated an error:

Feb 21 09:57:39 msg="Fatal error" error="empty list of forwarders for domain '- zone: example.com\"on line 1 of tmp/f.conf" subsystem="config" level="0" prio="Critical" tid="0" ts="1740128259.137" exception="PDNSException"

This hopefully makes admins realize rec is trying to parse YAML
content, but is expecting old-style as the file does not end in
in .yml.
pdns/recursordist/rec-rust-lib/table.py
pdns/recursordist/reczones.cc