Page MenuHomeDevCentral

Add DNS SOA serial validation pre-commit hook
Needs ReviewPublic

Authored by yousra on Wed, Apr 22, 22:03.

Details

Summary

This change introduces a validation script to ensure that DNS zone files have their SOA serial
incremented whenever a real DNS record modification is made.

The goal is to enforce correct DNS behavior by requiring a serial update only when meaningful
changes occur (e.g. IP or record updates), while ignoring non-significant changes such as extra
spaces that will be corrected during code review.

The validation is integrated as a pre-commit hook and only applies to .zone files.

Ref T2149

Test Plan

Test 1:

  • Modify a .zone file (e.g. change an IP)
  • Do not update the SOA serial
  • Commit

→ The commit should fail with an error

Test 2:

  • Make a non-significant change (e.g. extra spaces or formatting)
  • Do not update the SOA serial
  • Commit

→ No error should occur

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
T2149-dns
Build Status
Buildable 6665
Build 6953: arc lint + arc unit

Event Timeline

yousra requested review of this revision.Wed, Apr 22, 22:03
yousra created this revision.
yousra retitled this revision from test to Add DNS SOA serial validation pre-commit hook.Wed, Apr 22, 22:06
yousra edited the summary of this revision. (Show Details)
yousra added reviewers: dereckson, Duranzed.
yousra added a project: DNS.
yousra edited the summary of this revision. (Show Details)
yousra edited the summary of this revision. (Show Details)
yousra added subscribers: dereckson, Duranzed.
yousra edited the summary of this revision. (Show Details)