@@ -37,6 +37,48 @@ export HETZNER_KEY=your_hetzner_api_key
3737- ** Zone Sources** : Both domains use YAML provider as source and Hetzner as target
3838- ** DNS Records** : Defined in domain-specific YAML files with standard DNS record types (MX, TXT, CNAME, etc.)
3939
40+ ## TTL Management Standards
41+
42+ Use appropriate TTL values based on record type and change frequency:
43+
44+ - ** A/AAAA Records** : 300 seconds (5 minutes) for frequently changing IPs, 3600 seconds (1 hour) for stable services
45+ - ** CNAME Records** : 3600 seconds (1 hour) standard, 300 seconds for testing/development
46+ - ** MX Records** : 3600 seconds (1 hour) - email routing should be stable
47+ - ** TXT Records** :
48+ - Verification records (Google, etc.): 86400 seconds (24 hours) - rarely change
49+ - SPF/DMARC: 3600 seconds (1 hour) - may need adjustments
50+ - General purpose: 3600 seconds (1 hour)
51+ - ** NS Records** : 86400 seconds (24 hours) - nameservers change infrequently
52+
53+ ### TTL Guidelines
54+ - Lower TTLs (300-900s) for records under active development or testing
55+ - Higher TTLs (3600-86400s) for stable, production records
56+ - Always consider propagation time vs. flexibility trade-offs
57+ - Document TTL choices for critical records with inline comments
58+
59+ ## Documentation Standards
60+
61+ ### YAML File Documentation
62+ - Add comments above critical record groups explaining their purpose
63+ - Document any non-standard configurations or complex setups
64+ - Include references to external services (Google Workspace, email providers)
65+ - Use consistent formatting and indentation
66+
67+ ### Change Documentation
68+ - All DNS changes should include clear commit messages explaining the business purpose
69+ - Reference related tickets, issues, or requests in commit messages
70+ - Document TTL changes and reasoning in commit messages
71+
72+ ### Record Comments Format
73+ ``` yaml
74+ # Google Workspace email routing - DO NOT MODIFY without IT approval
75+ mx :
76+ values :
77+ - exchange : mx1.example.com
78+ priority : 10
79+ ttl : 3600
80+ ` ` `
81+
4082## Important Notes
4183
4284- Always run dry-run commands before applying changes to preview DNS modifications
0 commit comments