1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-05-14 01:17:07 +02:00
juanfont.headscale/hscontrol/types
nblock 1e0516b99d
Restore support for "Override local DNS" (#2438)
Tailscale allows to override the local DNS settings of a node via
"Override local DNS" [1]. Restore this flag with the same config setting
name `dns.override_local_dns` but disable it by default to align it with
Tailscale's default behaviour.

Tested with Tailscale 1.80.2 and systemd-resolved on Debian 12.

With `dns.override_local_dns: false`:

```
Link 12 (tailscale0)
Current Scopes: DNS
     Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
   DNS Servers: 100.100.100.100
    DNS Domain: tn.example.com ~0.e.1.a.c.5.1.1.a.7.d.f.ip6.arpa [snip]
```

With `dns.override_local_dns: true`:

```
Link 12 (tailscale0)
Current Scopes: DNS
     Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
   DNS Servers: 100.100.100.100
    DNS Domain: tn.example.com ~.
```

[1] https://tailscale.com/kb/1054/dns#override-local-dns

Fixes: #2256
2025-04-17 17:16:59 +02:00
..
testdata Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
api_key.go Split code into modules 2023-05-26 12:24:50 +02:00
common.go fix double login URL with OIDC (#2445) 2025-02-25 18:16:07 +01:00
config_test.go Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
config.go Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
const.go improve testing of route failover logic 2024-04-15 12:31:53 +02:00
node_test.go ensure final dot on node name (#2503) 2025-04-11 12:39:08 +02:00
node.go ensure final dot on node name (#2503) 2025-04-11 12:39:08 +02:00
policy.go feat: implements apis for managing headscale policy (#1792) 2024-07-18 07:38:25 +02:00
preauth_key.go do not allow preauth keys to be deleted if assigned to node (#2396) 2025-02-01 10:31:13 +01:00
routes.go Redo route code (#2422) 2025-02-26 16:22:55 +01:00
users_test.go relax user validation to allow emails, add tests from various oidc providers (#2364) 2025-01-22 18:10:15 +01:00
users.go Experimental implementation of Policy v2 (#2214) 2025-03-10 16:20:29 +01:00
version.go add git hash to binary, print on startup (#2415) 2025-02-07 13:49:34 +01:00