ZoneHealthSql
final class ZoneHealthSql (View source)
Reusable SQL fragments that derive zone-health flags (Disabled / No SOA) from the PowerDNS records table. Used by SQL-mode repositories to render status badges in the zone list without an extra round-trip.
Methods
static string
soaHealthColumns(string $domainsTable, string $recordsTable)
SELECT-list fragment yielding is_disabled and is_missing_soa columns.
Details
static string
soaHealthColumns(string $domainsTable, string $recordsTable)
SELECT-list fragment yielding is_disabled and is_missing_soa columns.
SLAVE zones legitimately lack SOA so they are never flagged as missing.