Device / Firmware: GL-MT3600BE, firmware 4.9.2, Tailscale 1.92.5
/usr/bin/gl_tailscale md5: 59b3e886aba441c76de46c39d0417617
Summary
/usr/bin/gl_tailscale always runs tailscale up --reset ... --accept-dns=false (line 331), then appends server=/ts.net/100.100.100.100 to /etc/dnsmasq.conf (lines 141, 150-151) and restarts dnsmasq.
If the router also runs a transparent proxy with DNS hijacking (OpenClash, mosdns, AdGuard Home, etc.), the router's own packets to 100.100.100.100:53 are REDIRECTed back to dnsmasq, so every *.ts.net query loops:
dnsmasq -> 100.100.100.100 -> dnsmasq -> ... until it dies.
Observed: ~3000 q/s, dnsmasq at 100% CPU, ALL DNS (including domestic sites) delayed by seconds.
The rule cannot be disabled: line 141 only greps for the string ts.net/100.100.100.100, so the only way to turn it off is to keep a dummy commented line containing that text.
Steps to reproduce
- Enable Tailscale in the GL admin panel (firmware 4.9.2).
- Install OpenClash (or anything that hijacks router-originated DNS to
100.64.0.0/10). - From a LAN client resolve any
*.ts.netname -> loop; checkdnsmasqCPU intop.
Expected
- A UCI switch to disable the
dnsmasqinjection (e.g.tailscale.settings.dns_inject='0'), and/or an option to allow--accept-dns=trueinstead of hard-coding--accept-dns=falsewith--reset. - Write the rule to a drop-in file (
conf-dir /tmp/dnsmasq.d/) instead of appending to/etc/dnsmasq.conf, so it can be overridden and survives upgrades cleanly. - Optional: make the
dhcp.@dnsmasq[0].domainoverride (line 155) configurable too; it breaks local*.lannames.
Current Workaround
Keep the line in /etc/dnsmasq.conf but comment it out (so the grep still passes), and resolve *.ts.net inside OpenClash via nameserver-policy -> 100.100.100.100.