mydnshost / mydnshost-api

API Backend for mydnshost
Other
2 stars 1 forks source link

Zone File Validation #71

Closed ShaneMcC closed 3 years ago

ShaneMcC commented 5 years ago

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.

ShaneMcC commented 4 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