Page MenuHomeDevCentral

Ensure serial is bumped when editing DNS zone
Open, NormalPublic

Description

When a DNS zone is edited, the serial of SOA record must be bumped.

See RFC 1912, Common DNS Operational and Configuration Errors.

A pre-commit hook to validate the serial bump could be interesting. Same for future CI pipeline.

Expected deliverables

  • Pre-commit hook
  • Blog post to announce pre-commit hook if we publish it publicly in nasqueron/codestyle
  • Jenkinsfile entry (totally acceptable to create Jenkinsfile with only that stage - this task doesn't need to be blocked by CI pipeline)

Event Timeline

dereckson triaged this task as Normal priority.Sat, Oct 18, 21:27
dereckson created this task.

Claude Sonnet artifacts

FilePurposeStatusComments
validate_dns_serial.pyDNS Zone SOA Serial ValidatorUntestedSome functions seems too long, need refactoring
precommit-dns-validator.shpre-commit wrapper to invoke validatorUntestedSeems OK for #!/bin/sh
.pre-commit-config.yamlTo add to our pre-commit configUntestedI'd publish wrapper in rDEVCS, so repo isn't local
Pre-commit guideExplain what to do with the artifacts aboveUntestedLooks good to me
JenkinsfileFor Jenkins CI pipelineUntestedUse "For regular branch builds" alternative method