Revert external-dns writes back to the legacy VM authoritative (#287) #302
Reference in New Issue
Block a user
Delete Branch "benvin/externaldns-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
New forward records (
netbox,logs-ingest.k8s.syd1.au.unkin.net) stopped resolving after #287. Root cause is a half-completed DNS migration, not an external-dns fault:ausyd1nxvm2127.main.unkin.netto the in-clusterbind-externaldns-primary.dig @198.18.200.8, and bind-resolvers198.18.200.7) HASnetbox/logs-ingestA records and their external-dns TXT ownership records. ItsApplyChangesshowsCreate: 0because the records already exist there.198.18.2.160) still source the zone from the legacy VM authoritative, which is alive but now frozen — it keeps old names (identity, argocd, grafana still resolve) and never receives the new writes. Step 3 (cutting resolver/delegation reads over to the in-cluster bind) was never done, so writes moved ahead of reads.Reverting restores external-dns writes to the legacy authoritative that clients actually read, immediately unblocking new-record publication. This is exactly the rollback documented in #287 ("The legacy VM is untouched and still authoritative"). The in-cluster cutover should be re-attempted only after step 3 (resolver/delegation move) lands.
Changes
--rfc2136-hostback toausyd1nxvm2127.main.unkin.net.externaldns-tsig(verified still present in the namespace, 183d old).Verification (after merge + external-dns re-sync)
Note
The per-cycle PTR add/remove thrash on
198.18.200.4and theCouldn't parse ... as an IP addressdebug lines are a separate, cosmetic external-dns rfc2136 multi-target-PTR quirk; they are NOT the cause of the missing A records and are unaffected by this change.https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
Superseded: the resolver upstream for k8s.syd1.au.unkin.net now points at the in-cluster bind (198.18.200.7), which is where external-dns already writes — reads and writes are aligned without the revert. Verified netbox/logs-ingest/identity/argocd all resolve to 198.18.200.4 on the client path. Merging this revert NOW would recreate the read/write split in the opposite direction, so closing unmerged. Remaining follow-ups tracked separately: retire/freeze the legacy VM zone copy, and the SOA localhost shadow on some resolvers.
Pull request closed