Closed ShaneMcC closed 3 years ago
This now happens at record-change time so invalid data shouldn't make it into the database:
https://github.com/mydnshost/mydnshost-api/commit/ee60440031a081bb729609398965768f4fb2e42c https://github.com/mydnshost/mydnshost-frontend/commit/5db2b35f4ecd8117f8385dea43d0e68a6417289a
When writing a zone file, we should run it through
named-checkzone
before trying to load it to make sure it's valid, and if not keep the old zone on disk and bubble up the error somewhere.