/usr/share/opendnssec/find_problematic_zones.sql is in opendnssec-common 1:2.1.3-0.2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | SELECT zones.name
FROM dnsseckeys
JOIN zones on zones.id = dnsseckeys.zone_id
WHERE dnsseckeys.keytype = 257
AND dnsseckeys.active IS NULL
AND dnsseckeys.zone_id NOT IN
(SELECT dnsseckeys.zone_id
FROM dnsseckeys
WHERE dnsseckeys.keytype = 257
AND dnsseckeys.state = 4)
;
|