Skip to content

Preserve generated zone TTL directive#46

Draft
Mirochill wants to merge 1 commit into
Trellmor:masterfrom
Mirochill:fix-44-preserve-zone-ttl
Draft

Preserve generated zone TTL directive#46
Mirochill wants to merge 1 commit into
Trellmor:masterfrom
Mirochill:fix-44-preserve-zone-ttl

Conversation

@Mirochill
Copy link
Copy Markdown

Closes #44

Summary

  • add an explicit $TTL 3600 directive when the script creates a new zone file
  • restore $TTL 3600 after zone.to_file(...) rewrites the temporary zone file without a TTL directive
  • keep the existing SOA/NS TTL value aligned with the default TTL used for generated RPZ files

Validation

  • Not run locally
  • git diff --check HEAD~1..HEAD
  • git show --stat --oneline --summary HEAD
  • Static inspection of update-zonefile.py

Signed-off-by: Miro <200482516+Mirochill@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpz.file:3: using RFC1035 TTL semantics

1 participant