routeros: DNS lock on the client VLANs, crs309 resolver to the recursor #164
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac!164
Loading…
Reference in a new issue
No description provided.
Delete branch "dns-client-lock"
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?
Turns on the DNS lock from #163 and moves crs309's own resolver to the c1 recursor. Part of lab/clusters#1673.
Merge after the arm-lock fix (lab/iac PR "rollback: arm lock for the router pair"). This PR changes all three router roots, and without that fix one merge arms both routers at once (seen on #163).
Changes
modules/site:client_dns_lock = true. Each router gets 8 forward drops: 53 and 853, udp and tcp, to the WAN, from 10.30.10/30/40/50.0/24. The rules are the ones simmed in #163 (case 3).crs309/switch.tf: newrouteros_ip_dns, servers10.30.100.53. Nothing owned the switch's resolver before, so it kept the bootstrap's8.8.8.8, 1.1.1.1. Its DHCP client hasuse-peer-dns=false. The lock would have dropped its NTP name lookups.crs309/rollback.tf: thednsprobe now asks the recursor forresolver.caosh.int.animeteamspeak.moe. Its old target, 8.8.8.8 from VLAN 10, is dropped by the lock.docs/routeros/README.md"Client DNS" now describes the lock as on and gives the real rollback window (about 30 s after the apply, the early confirm). ADR-0008 note updated.Clients on the switched networks
On 2026-11-19 the switched networks held two leases:
10.30.100.53, and Tailscale falls through to it.No other client is on VLAN 10, 30, 40 or 50 yet.
Checks
task routeros:validate(rb5009-a, rb5009-b, crs309),routeros:guardandtofu fmtpass.:resolve resolver.caosh.int.animeteamspeak.moe server=10.30.100.53returns10.30.100.53, through the live mgmt allow rule.After merge
dig @8.8.8.8 example.comfrom arch-ws on VLAN 30 should time out, and a plaindig example.comshould still answer./system/ntp/clientstayssynchronized.Merge after #165 (the arm lock). This PR changes all three router roots, and without #165 one merge arms both rb5009s at once.