Add oceanbox.io as split domain #50

Merged
SimenLK merged 1 commits from simkir/split-dns into main 2025-10-06 13:02:42 +00:00
SimenLK commented 2025-10-06 12:47:54 +00:00 (Migrated from gitlab.com)

This should hopefully force clients to to prefer using Tailscale MagicDNS when resolving oceanbox.io IPs.

After switching from resolvconf to systemd-resolved, DNS does not consitently choose tailscale 100.100.100.100 as its nameserver. Using DNS split in headscale should hopefully add oceanbox.io as a dns domain for your local systemd-resolved inferface.

$ resolvectl
Global
           Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
    resolv.conf mode: stub
  Current DNS Server: 1.1.1.1
         DNS Servers: 100.100.100.100 1.1.1.1 8.8.8.8 127.0.0.1
Fallback DNS Servers: 100.100.100.100 1.1.1.1 8.8.8.8
          DNS Domain: oceanbox.io

Link 2 (enp2s0f1)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6 mDNS/IPv4 mDNS/IPv6
         Protocols: +DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 1.1.1.1
       DNS Servers: 1.1.1.1 8.8.8.8
     Default Route: yes

Link 3 (wlp3s0)
    Current Scopes: none
         Protocols: -DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
     Default Route: no

Link 5 (docker0)
    Current Scopes: none
         Protocols: -DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
     Default Route: no

Link 600 (tailscale0)
    Current Scopes: DNS
         Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 100.100.100.100
       DNS Servers: 100.100.100.100
        DNS Domain: obx ~.
     Default Route: yes

Ref: https://tailscale.com/kb/1054/dns?tab=linux#restricted-nameservers

And headscale config example from: https://github.com/gabe565/charts/issues/134#issuecomment-1523920694

This should hopefully force clients to to prefer using Tailscale MagicDNS when resolving oceanbox.io IPs. After switching from `resolvconf` to `systemd-resolved`, DNS does not consitently choose tailscale `100.100.100.100` as its nameserver. Using DNS split in headscale should hopefully add `oceanbox.io` as a dns domain for your local `systemd-resolved` inferface. ``` $ resolvectl Global Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported resolv.conf mode: stub Current DNS Server: 1.1.1.1 DNS Servers: 100.100.100.100 1.1.1.1 8.8.8.8 127.0.0.1 Fallback DNS Servers: 100.100.100.100 1.1.1.1 8.8.8.8 DNS Domain: oceanbox.io Link 2 (enp2s0f1) Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6 mDNS/IPv4 mDNS/IPv6 Protocols: +DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported Current DNS Server: 1.1.1.1 DNS Servers: 1.1.1.1 8.8.8.8 Default Route: yes Link 3 (wlp3s0) Current Scopes: none Protocols: -DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported Default Route: no Link 5 (docker0) Current Scopes: none Protocols: -DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported Default Route: no Link 600 (tailscale0) Current Scopes: DNS Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Current DNS Server: 100.100.100.100 DNS Servers: 100.100.100.100 DNS Domain: obx ~. Default Route: yes ``` Ref: https://tailscale.com/kb/1054/dns?tab=linux#restricted-nameservers And headscale config example from: https://github.com/gabe565/charts/issues/134#issuecomment-1523920694
SimenLK commented 2025-10-06 12:47:54 +00:00 (Migrated from gitlab.com)

requested review from @juselius and @mrtz-j

requested review from @juselius and @mrtz-j
SimenLK commented 2025-10-06 12:47:54 +00:00 (Migrated from gitlab.com)

assigned to @SimenLK

assigned to @SimenLK
mrtz-j (Migrated from gitlab.com) approved these changes 2025-10-06 12:47:54 +00:00
mrtz-j commented 2025-10-06 13:00:13 +00:00 (Migrated from gitlab.com)

approved this merge request

approved this merge request
SimenLK commented 2025-10-06 13:00:37 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
SimenLK commented 2025-10-06 13:00:49 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
SimenLK (Migrated from gitlab.com) merged commit a4a86c436d into main 2025-10-06 13:02:43 +00:00
SimenLK commented 2025-10-06 13:02:45 +00:00 (Migrated from gitlab.com)

mentioned in commit a4a86c436d

mentioned in commit a4a86c436d4b9b372976c49fa02527f8556a6d6e
Sign in to join this conversation.