Skip to content

os-bind: Validate configuration before saving and display errors #5626

Description

@skeletorXVI

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.
When configuring bind through the web UI, even small misconfiguration can result in Bind rejecting the config. This information is not forwarded to the user and as long as Bind is not fully stopped and started, it will continue to run with the old config, further delaying identifying this problem. Depending on the problem, it can prevent Bind from starting after the router restarts, e.g. after a power outage or system update.

Describe the solution you'd like
The bind plugin should validate that the configuration is valid. Bind has CLI tools to do that, named-checkconf and named-checkzone. These should be invoked and the output forwarded to the web UI to have a proper feedback loop.

Describe alternatives you've considered
An alternative could be a check-config / check-zones button, but I believe this type of feedback should be part of the standard save action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportCommunity support or awaiting triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions