dns: say when the records don't name this install's mail host (#83) #86

Merged
jcoffey-dev merged 1 commits from fix/83-dns-zone-follows-names into main 2026-11-18 17:03:05 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 493ad4062e dns: say when the records don't name this install's mail host (#83)
ci / test (pull_request) Successful in 1m14s
The records come from the server and follow its own hostname, so after a
rename the saved dns.zone keeps the old names, and so does --refresh
until the server's hostname is changed in the console. Rewriting the
file on a converge wouldn't help: the server still has the old name then.

dns now checks whether the records name the install's mail host
anywhere (MX, a service record's target, SPF; an MX at a relay is fine
because the service records still name the server). If not, the saved
copy says it predates the rename and how to refresh it, and a live read
says the server still calls itself something else and where to change
it.
2026-11-18 09:31:35 -07:00