Skip to content

Unable to resolve MagicDNS or tailnet FQDN's after macOS DNS behavior changes in OSS tailscaled 1.74.0 #13461

Closed

Description

@adamfeldman

What is the issue?

In OSS tailscaled prior to 1.74.0 (last working version 1.72.1), I could resolve MagicDNS and tailnet FQDN's (*.ts.net) under the following setup. The changelog notes changes in this area in 1.74.0: https://tailscale.com/changelog#2024-09-12.

  • OSS tailscaled running with --accept-dns=false
  • App Store or Standalone macOS Tailscale app running with "Use Tailscale DNS settings" off

After updating OSS tailscaled to 1.74.0, I now must turn on Tailscale DNS in the App Store or Standalone Tailscale macOS app to get MagicDNS or tailnet FQDN's to resolve. Enabling --accept-dns on tailscaled 1.74.0 does not work to resolve MagicDNS names or tailnet FQDN's, even with the App Store or Standalone macOS Tailscale app not running.

This is undesirable as I need to use my local network's DNS server, with split DNS handling tailnet FQDN's. I only turn on Tailscale DNS when using an exit node.

Please note that tailscaled runs as root (brew services start tailscale), in case that's relevant.

Output from tailscaled 1.74.0 dns status command (with redactions):

Details === 'Use Tailscale DNS' status ===

Tailscale DNS: enabled.

Tailscale is configured to handle DNS queries on this device.
Run 'tailscale set --accept-dns=false' to revert to your system default DNS resolver.

=== MagicDNS configuration ===

This is the DNS configuration provided by the coordination server to this device.

MagicDNS: enabled tailnet-wide (suffix = REDACTED.ts.net)

Other devices in your tailnet can reach this device at REDACTED.

Resolvers (in preference order):
(no resolvers configured, system default will be used: see 'System DNS configuration' below)

Split DNS Routes:

  • ts.net. -> 199.247.155.53
  • ts.net. -> 2620:111:8007::53

Search Domains:

  • REDACTED.ts.net

=== System DNS configuration ===

This is the DNS configuration that Tailscale believes your operating system is using.
Tailscale may use this configuration if 'Override Local DNS' is disabled in the admin console,
or if no resolvers are provided by the coordination server.

Nameservers:

  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED

Search domains:

  • home.arpa

[this is a preliminary version of this command; the output format may change in the future]

Please let me know what further info can be provided. Thank you!

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

Updated OSS tailscaled (installed via brew) to 1.74.0 from 1.72.1

OS

macOS

OS version

macOS 14.6.1

Tailscale version

1.74.0

Other software

No response

Bug report

BUG-3104a4f350ae354f7eedcc95e4ce78e5b8da482124d9bbdb7feabf0f446a757f-20240913143438Z-a9cd88dd1f260627

Activity

  1. adamfeldman commented on Sep 13, 2024

    @adamfeldman
    Author

    Some additional debugging output. This is in a configuration where no macOS app is running, just tailscaled 1.74.0 with --accept-dns=true and MagicDNS enabled on the tailnet.

    ➜  ~ scutil --dns
    <- SNIP ->
    resolver #8
      domain   : search.tailscale
      search domain[0] : REDACTED.ts.net
      search domain[1] : home.arpa
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
    <- SNIP ->
    
    ➜  ~ dig @100.100.100.100 MACHINE-NAME.REDACTED.ts.net
    
    ; <<>> DiG 9.10.6 <<>> @100.100.100.100 REDACTED.ts.net
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64723
    ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;REDACTED.ts.net. IN    A
    
    ;; ANSWER SECTION:
    REDACTED.ts.net. 600 IN A       100.93.126.12
    
    ;; Query time: 1119 msec
    ;; SERVER: 100.100.100.100#53(100.100.100.100)
    ;; WHEN: Fri Sep 13 15:41:02 CDT 2024
    ;; MSG SIZE  rcvd: 96
    
  2. adamfeldman commented on Sep 13, 2024

    @adamfeldman
    Author

    This is in a configuration where tailscaled is not running, but the Standalone macOS app v1.74.0 is. Things are working as expected, aside from the undesirable situation mentioned in the OP.

     ~ /Applications/Tailscale.app/Contents/MacOS/Tailscale up --accept-dns=true --accept-routes=false --shields-up
    ➜  ~ scutil --dns
    DNS configuration
    
    resolver #1
      search domain[0] : REDACTED.ts.net
      search domain[1] : home.arpa
      nameserver[0] : 100.100.100.100
      if_index : 30 (utun5)
      flags    : Supplemental, Request A records, Request AAAA records
      reach    : 0x00000003 (Reachable,Transient Connection)
      order    : 100400
    
    <- SNIP ->
    
    resolver #3
      domain   : tadpole-lionfish.ts.net.
      nameserver[0] : 100.100.100.100
      if_index : 30 (utun5)
      flags    : Supplemental, Request A records, Request AAAA records
      reach    : 0x00000003 (Reachable,Transient Connection)
      order    : 100401
    
    <- SNIP ->
    
  3. adamfeldman commented on Sep 14, 2024

    @adamfeldman
    Author

    Okay, so I am almost certainly wrong that tailscaled was ever enabling the resolution of tailnet FQDN's without --accept-dns=true. But here's what I found was not working for me in 1.74.0 after reinstalling 1.72.1 and comparing the output of scutil --dns across 1.72.1 and 1.74.0.

    sudo brew service start tailscale (or the equivalent for 1.72.1) is used to run tailscaled. I followed these directions approximately to get 1.72.1 reinstalled through brew: https://cmichel.io/how-to-install-an-old-package-version-with-brew/ (you'll need to fix the broken formula by commenting out the completions bit in the install block).

    In the following configuration, 1.72.1 works as I desire: local DNS servers are hit first, and I can resolve tailnet FQDN's in the browser no problem.

    In the following configuration, 1.74.0 does not resolve tailnet FQDN's, and the output of scutil --dns is very different from 1.72.1...it doesn't look happy to me...

    1.72.1: `/opt/homebrew/opt/[email protected]/bin/[email protected] up --accept-dns --accept-routes=false --shields-up

    # 1.72.1
    
    ➜  ~ scutil --dns                                                  
    DNS configuration
    
    resolver #1
      search domain[0] : home.arpa
      nameserver[0] : 2600:1700:REDACTED:42::22f
      nameserver[1] : 2600:1700:REDACTED:42::
      nameserver[2] : 192.168.42.80
      nameserver[3] : 192.168.42.1
      if_index : 21 (en9)
      flags    : Request A records, Request AAAA records
      reach    : 0x00020002 (Reachable,Directly Reachable Address)
    
    resolver #2
      domain   : local
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300000
    
    resolver #3
      domain   : 254.169.in-addr.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300200
    
    resolver #4
      domain   : 8.e.f.ip6.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300400
    
    resolver #5
      domain   : 9.e.f.ip6.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300600
    
    resolver #6
      domain   : a.e.f.ip6.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300800
    
    resolver #7
      domain   : b.e.f.ip6.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 301000
    
    resolver #8
      domain   : 111.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #9
      domain   : 78.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #10
      domain   : 81.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #11
      domain   : 67.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #12
      domain   : 124.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #13
      domain   : 73.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #14
      domain   : 95.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #15
      domain   : 105.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #16
      domain   : 101.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #17
      domain   : 68.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #18
      domain   : 77.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #19
      domain   : 91.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #20
      domain   : 120.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #21
      domain   : 85.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #22
      domain   : 115.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #23
      domain   : 66.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #24
      domain   : 80.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #25
      domain   : ts.net
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #26
      domain   : 79.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #27
      domain   : 110.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #28
      domain   : 104.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #29
      domain   : 94.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #30
      domain   : 72.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #31
      domain   : 125.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #32
      domain   : 121.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #33
      domain   : 90.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #34
      domain   : 76.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #35
      domain   : 69.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #36
      domain   : 100.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #37
      domain   : 114.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #38
      domain   : 84.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #39
      domain   : 88.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #40
      domain   : 107.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #41
      domain   : 126.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #42
      domain   : 118.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #43
      domain   : 97.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #44
      domain   : 71.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #45
      domain   : 65.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #46
      domain   : 83.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #47
      domain   : 113.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #48
      domain   : 98.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #49
      domain   : 117.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #50
      domain   : 108.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #51
      domain   : 87.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #52
      domain   : 93.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #53
      domain   : 75.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #54
      domain   : 122.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #55
      domain   : 103.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #56
      domain   : 70.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #57
      domain   : 96.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #58
      domain   : 127.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #59
      domain   : 119.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #60
      domain   : 106.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #61
      domain   : REDACTED-TAILNET-NAME.ts.net
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #62
      domain   : 89.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #63
      domain   : 112.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #64
      domain   : 82.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #65
      domain   : 64.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #66
      domain   : 86.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #67
      domain   : 109.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #68
      domain   : 116.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #69
      domain   : 0.e.1.a.c.5.1.1.a.7.d.f.ip6.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #70
      domain   : 99.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #71
      domain   : search.tailscale
      search domain[0] : REDACTED-TAILNET-NAME.ts.net
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
    
    resolver #72
      domain   : 102.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #73
      domain   : 123.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #74
      domain   : 74.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    resolver #75
      domain   : 92.100.in-addr.arpa
      nameserver[0] : 100.100.100.100
      flags    : Request A records, Request AAAA records
      reach    : 0x00000002 (Reachable)
    
    DNS configuration (for scoped queries)
    
    resolver #1
      search domain[0] : home.arpa
      nameserver[0] : 2600:1700:REDACTED:42::22f
      nameserver[1] : 2600:1700:REDACTED:42::
      nameserver[2] : 192.168.42.80
      nameserver[3] : 192.168.42.1
      if_index : 21 (en9)
      flags    : Scoped, Request A records, Request AAAA records
      reach    : 0x00020002 (Reachable,Directly Reachable Address)
    
    resolver #2
      search domain[0] : home.arpa
      nameserver[0] : 2600:1700:REDACTED:42::22f
      nameserver[1] : 2600:1700:REDACTED:42::
      nameserver[2] : 192.168.42.80
      nameserver[3] : 192.168.42.1
      if_index : 15 (en0)
      flags    : Scoped, Request A records, Request AAAA records
      reach    : 0x00020002 (Reachable,Directly Reachable Address)
    

    1.74.0: /opt/homebrew/opt/tailscale/bin/tailscale up --accept-dns --accept-routes=false --shields-up

    # 1.74.0
    
    ➜  ~ scutil --dns                      
    DNS configuration
    
    resolver #1
      search domain[0] : home.arpa
      nameserver[0] : 2600:1700:REDACTED:42::22f
      nameserver[1] : 2600:1700:REDACTED:42::
      nameserver[2] : 192.168.42.80
      nameserver[3] : 192.168.42.1
      if_index : 21 (en9)
      flags    : Request A records, Request AAAA records
      reach    : 0x00020002 (Reachable,Directly Reachable Address)
    
    resolver #2
      domain   : local
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300000
    
    resolver #3
      domain   : 254.169.in-addr.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300200
    
    resolver #4
      domain   : 8.e.f.ip6.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300400
    
    resolver #5
      domain   : 9.e.f.ip6.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300600
    
    resolver #6
      domain   : a.e.f.ip6.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 300800
    
    resolver #7
      domain   : b.e.f.ip6.arpa
      options  : mdns
      timeout  : 5
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
      order    : 301000
    
    resolver #8
      domain   : search.tailscale
      search domain[0] : REDACTED-TAILNET-NAME.ts.net
      search domain[1] : home.arpa
      flags    : Request A records, Request AAAA records
      reach    : 0x00000000 (Not Reachable)
    
    DNS configuration (for scoped queries)
    
    resolver #1
      search domain[0] : home.arpa
      nameserver[0] : 2600:1700:REDACTED:42::22f
      nameserver[1] : 2600:1700:REDACTED:42::
      nameserver[2] : 192.168.42.80
      nameserver[3] : 192.168.42.1
      if_index : 21 (en9)
      flags    : Scoped, Request A records, Request AAAA records
      reach    : 0x00020002 (Reachable,Directly Reachable Address)
    
    resolver #2
      search domain[0] : home.arpa
      nameserver[0] : 2600:1700:REDACTED:42::22f
      nameserver[1] : 2600:1700:REDACTED:42::
      nameserver[2] : 192.168.42.80
      nameserver[3] : 192.168.42.1
      if_index : 15 (en0)
      flags    : Scoped, Request A records, Request AAAA records
      reach    : 0x00020002 (Reachable,Directly Reachable Address)
    
  4. agottardo commented on Sep 16, 2024

    @agottardo
    Contributor

    Thanks for the ultra-detailed report, this really helps. Probably not what you were hoping to hear, but were you running both the Standalone variant and OSS tailscaled at the same time? They are incompatible with each other. The two variants of the client write the DNS configuration to the system in different ways (the GUI client uses NetworkExtension.framework from Apple, the OSS one doesn't).

  5. adamfeldman commented on Sep 16, 2024

    @adamfeldman
    Author

    Thanks @agottardo! I am running the macOS App Store variant and OSS tailscaled at the same time. I did experiment with Standalone during troubleshooting but then reverted back to App Store 1.74.0.

    After filing the info above, I became suspicious that OSS tailscale was somehow talking to the macOS app, either/or Standalone and App Store.

    I did some more work to confirm that did not confuse my report above: I re-verified the differences shown in scutil --dns between 1.74.0 and 1.72.1: #13461 (comment). On 1.74.0, my browser is unable to resolve tailnet FQDN's with --accept-dns=true. No issue on 1.72.1.

    Notes on how I made sure the tailscale cli wasn't talking to the macOS app

    ➜  ~ /opt/homebrew/opt/[email protected]/bin/[email protected] status
    Warning: client version "1.72.1-tf4a95663c" != tailscaled server version "1.74.0-t28e0bab29-gbfc27063c"
    <-SNIP->
    

    This further made me suspicious that the OSS tailscale cli was "being smart" and finding a way to connect to and control the macOS App......via some mechanism other than the socket...

    ➜  ~  tailscale --socket /var/run/tailscaled.socket status                          
    failed to connect to local tailscaled (which appears to be running as IPNExtension, pid 11222). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial unix /var/run/tailscaled.socket: connect: no such file or directory
    
    ➜  ~ ls /var/run/tailscaled.socket           
    ls: /var/run/tailscaled.socket: No such file or directory
    

    ...so I edited the service plist to use a different socket name, just to make sure:

    <-SNIP->
    	<key>ProgramArguments</key>
    	<array>
    		<string>/opt/homebrew/opt/[email protected]/bin/tailscaled</string>
    		<string>--socket</string>
    		<string>/var/run/tailscaled-separate.socket</string>
    	</array>
    <-SNIP->
    
  6. roachcord3 commented on Sep 18, 2024

    @roachcord3

    For my part, I have just been installing with go install (per the wiki) and I found that my Mac's ability to resolve tailscale DNS names is flaky. When it stops being able to resolve names, it seems to take a few minutes before it can do so again. Based on the output of tailscale dns status not matching my network's DNS settings, I decided to run tailscale set --accept-dns=false, and now I am not having this problem.

    I am not on Apple Silicon, am on Sonoma. I have the MagicDNS IP address simply added as my first DNS server via the network settings, and I don't have my tailnet set to override local DNS configs.

    I don't know if this information will help you figure out the problem, but I figured that, at the very least, this should help show the problem isn't based purely on whether different installs of tailscale are messing with each other.

    Edit: at some point since I posted this, the workaround stopped working, and resolution went back to being inconsistent. I hadn't even upgraded the version, so I think my workaround was just a fluke.

  7. 100xff commented on Sep 18, 2024

    @100xff

    I have this problem and have only this version of tailscale installed, not the standalone or App Store version.

  8. added
    OS-macos
    on Sep 23, 2024
  9. mistzzt commented on Nov 6, 2024

    @mistzzt

    I can confirm the same issue on tailscaled v1.76.1 from Nix on macOS 15.1. For me, manually creating a file of my domain under /etc/resolver/ fixes the issue. If you are using nix-darwin, then something like this helps:

          environment.etc."resolver/my.domain.com" = {
            text = ''
              nameserver 100.100.100.100
              search my.domain.com
            '';
          };
  10. self-assigned this
    on Nov 20, 2024
  11. Wizr commented on Dec 16, 2024

    @Wizr

    I've observed that MagicDNS doesn't work on macOS because files in /etc/resolver/ are not created. This occurs because cfg.MatchDomains is empty, which may be related to the implementation of GetBaseConfig added in a certain version. I'm not sure if these issues are connected, so feel free to disregard this if they're not.

  12. Stark-X commented on Jan 7, 2025

    @Stark-X
    $ tailscale version
    
    1.78.3
      tailscale commit: 1b41fdeddb6598b35ba15cc6b07740e0cc0e8411
      go version: go1.23.4
    

    macOS version: 15.2 (24C101)

    same issue

  13. 8 remaining items

  14. chetan commented on Jan 26, 2025

    @chetan

    @roachcord3 strange that it doesn't work for you. I left the Tailscale address out of network settings and only added the resolver file as I mentioned. It should allow getting settings via dhcp but still resolve the tail net addresses.

  15. roachcord3 commented on Jan 27, 2025

    @roachcord3

    @chetan your message got me curious, so I tried turning on --accept-dns=true, then having macOS forget my network settings for one of the split band networks in my home, then connected to that network and didn't set anything manually in the system preferences for DNS, to see if perhaps something in my existing setup was getting in the way of the workaround you posted.

    With that having been done, my system preferences app says that I've got the same DNS settings that I would expect from my DHCP server (has the router as the DNS resolver, and no search domains, which I believe the DHCP server doesn't set, even though it does provide a .lan domain and I have traditionally added that as a search domain to my machines.) tailscale status complains about not being able to talk to DNS, but I can still resolve names from both my tailnet and local network (note: I have split DNS and my local network's search domain set in the tailscale control panel online, but that was for the sake of my linux machines; I've been used to having to manually set up MagicDNS per the instructions that have been in the wiki all this time.) Even after flushing the DNS cache and HUPing the mDNSResponder processes as you originally wrote about, I can still resolve those names, yet tailscale status is still complaining. dscacheutil -q host -a name <host> works but dns-sd -G v4 <host> or dns-sd -q <host> print some stuff that indicates the record is resolvable, but then they hang indefinitely. Very strange. It's also worth noting that while tailscale status is saying tailscale can't reach the configured DNS servers, tailscale dns status isn't showing any warnings.

    I don't know if it'll end up being like my earlier "workaround" that just left me in a state where resolution was up to a coin flip, I'll have to report back later about that. But I figured I'd mention this behavior now in case it helps anyone else in this thread.

  16. matt453 commented on Feb 10, 2025

    @matt453

    I encountered a similar issue whenever I used newer tailscaled versiosn on my macs. I could not get tailnet FQDNs or shorter machine names to resolve. but they worked everywhere else on my tailnet on other devices, ubuntu installs, standalone tailscale on mac or on iphone/ipad. if I went back to v1.68.2it would start working again but I did not want to be stuck on such an old version.

    what finally worked for me on my MacOS Sequoia install with v1.80.1 was to go to:

    System Settings > Network > Wi-Fi (or however you connect) > Details > DNS

    then add 100.100.100.100 to the DNS servers.

    but also add my tailnet domain to the search domains. which finally gave me this kind of block with

    scutil --dns

    DNS configuration (for scoped queries)
    
    resolver #1
      search domain[0] : MYTAILNETNAME
      nameserver[1] : 100.100.100.100
      nameserver[2] : 1.1.1.1
      nameserver[3] : 1.0.0.1
      if_index : 13 (en4)
      flags    : Scoped, Request A records
      reach    : 0x00030002 (Reachable,Local Address,Directly Reachable Address)
    

    instead of just the not reachable search.tailscale resolver in the regular DNS configuration.

    I had originally tried a lot of things from command line but ultimately only adding both via the Apple system Settings GUI ended up being what worked.

    now both the tailnet FQDNs and machine names are resolving correctly in my browser as they do on any other machine in my net.

  17. Wizr commented on Mar 11, 2025

    @Wizr

    I've observed that MagicDNS doesn't work on macOS because files in /etc/resolver/ are not created. This occurs because cfg.MatchDomains is empty, which may be related to the implementation of GetBaseConfig added in a certain version. I'm not sure if these issues are connected, so feel free to disregard this if they're not.

    While I previously rebuilt the code based on my initial analysis, a quicker, though somewhat inelegant or even unstable, fix is to append a line searchx (to trigger a parse error in tailscale) to /etc/resolv.conf. Note a restart of tailscaled is required.

  18. NicholasClooney commented on Sep 29, 2025

    @NicholasClooney

    I've observed that MagicDNS doesn't work on macOS because files in /etc/resolver/ are not created. This occurs because cfg.MatchDomains is empty, which may be related to the implementation of GetBaseConfig added in a certain version. I'm not sure if these issues are connected, so feel free to disregard this if they're not.

    While I previously rebuilt the code based on my initial analysis, a quicker, though somewhat inelegant or even unstable, fix is to append a line searchx (to trigger a parse error in tailscale) to /etc/resolv.conf. Note a restart of tailscaled is required.

    Thanks! By adding that line to my /etc/resolv.conf fixed the MagicDNS for me!

    Mine looks like this now.

    nameserver 192.168.50.1
    
    # Fix for Tailscale MagicDNS
    # https://github.com/tailscale/tailscale/issues/13461#issuecomment-2712539518
    searchx
    

    Update:
    This works but need to update the file every time connecting to a network which /etc/resolv.conf gets overridden.

    I have applied the changes from this reply now #13461 (comment)

    • Adding 100.100.100.100 as DNS
    • Adding mytailnet.ts.net as a search domain
    • Make sure you have set up DNS in the Tailscale web console
      • Add your preferred DNS servers
      • Enable override DNS servers toggle
  19. underthestars-zhy commented on Jan 11, 2026

    @underthestars-zhy

    any fix on this rn?

  20. dan-dr commented on Feb 1, 2026

    @dan-dr

    Same here

  21. zhiyozhao commented on Feb 5, 2026

    @zhiyozhao

    I got a temporary solution here:

    Problem description:

    When in gui version, everything good. When in oss/brew version, ip works good, magic dns not working.

    Analysis && Solution:

    • By comparing the scutil --dns output of gui version and oss version, it turns out the oss version is not setting up dns nameserver correctly.
    • Oss version:
      > scutil --dns
      resolver #9
        domain   : search.tailscale
        search domain[0] : tailxxxxx.ts.net
        flags    : Request A records
        reach    : 0x00000000 (Not Reachable)
    • Gui version:
      > scutil --dns
      resolver #1
        search domain[0] : tailxxxx.ts.net
        nameserver[0] : 100.100.100.100
        if_index : 25 (utun6)
        flags    : Supplemental, Request A records, Request AAAA records
        reach    : 0x00000003 (Reachable,Transient Connection)
        order    : 100400
      
      resolver #3
        domain   : tailxxxx.ts.net.
        nameserver[0] : 100.100.100.100
        if_index : 25 (utun6)
        flags    : Supplemental, Request A records, Request AAAA records
        reach    : 0x00000003 (Reachable,Transient Connection)
        order    : 100401
    • Solution: create a resolver file and restart tailscale.
      # /etc/resolver/tailxxxx.ts.net
      nameserver 100.100.100.100

    Environment:

    • tailscale 1.94.1
    • macos 15.6.1
  22. n8henrie commented on Feb 28, 2026

    @n8henrie

    Finally resolved related issues, macos 26.3, running tailscale from nixpkgs.

    $ tailscale --version
    1.94.1
      long version: 1.94.1
      go version: go1.25.5
    

    I had previously seen multiple files (some related to tailscale) in /etc/resolver/ and wasn't sure how those were being created, so I renamed the directory.

    I found that a round-trip of shutting down tailscale, tailscaled, and relaunching them recreated /etc/resolver/ and /etc/resolver/search.tailscale, but not the other files, and DNS was not working for my tailnet (in spite of dscacheutil -flushcache and sudo killall -HUP mDNSResponder).

    $ tailscale down
    $ sudo launchctl bootout system/com.tailscale.tailscaled
    $ sudo launchctl bootstrap system /Library/LaunchDaemons/com.tailscale.tailscaled.plist
    $ tailscale up --accept-dns=true
    $ dscacheutil -flushcache
    $ sudo killall -HUP mDNSResponder
    $ ping foo.ts.net
    ping: unknown host

    Interestingly, I found that deleting /etc/resolv.conf as well as /etc/resolver/ seems to prompt tailscale to regenerate all the files in /etc/resolver/.

    Further, /etc/resolv.conf is just a symlink to /var/run/resolv.conf. One can regenerate /var/run/resolv.conf by toggling wifi on and off (either via gui or networksetup -setairportpower en0 on).

    So the only step I haven't figured out is how to provoke regeneration of the /etc/resolv.conf symlink, but that's easy enough to do manually: sudo ln -s /var/run/resolv.conf /etc/

    So, round trip, so you can see at which point each file is recreated and when dns starts working again:

    $ tailscale status --json | jq -r .BackendState
    Running
    $ sudo rm -rf /etc/resolver /etc/resolv.conf /var/run/resolv.conf
    $ ls /etc/resolver | wc -l
    ls: cannot access '/etc/resolver': No such file or directory
    0
    $ ping foo.ts.net
    ping: unknown host
    $ tailscale down
    $
    $ # /etc/resolver directory has been regenerated but is empty:
    $ ls /etc/resolver | wc -l
    0
    $ tailscale up --accept-dns=true
    $
    $ # /etc/resolver is now populated and magic DNS is working
    $ ls /etc/resolver | wc -l
    68
    $ ping foo.ts.net
    PING foo.ts.net (100.X.X.X): 56 data bytes
    64 bytes from 100.X.X.X: icmp_seq=0 ttl=64 time=74.641 ms
    $ ls -l /etc/resolv.conf /var/run/resolv.conf
    ls: cannot access '/etc/resolv.conf': No such file or directory
    ls: cannot access '/var/run/resolv.conf': No such file or directory
    $ networksetup -setairportpower en0 off
    $
    $ # /var/run/resolv.conf has now been recreated but doesn't have any nameservers
    $ grep -q nameserver /var/run/resolv.conf
    $ echo $?
    1
    $ networksetup -setairportpower en0 on
    $ # /var/run/resolv.conf now has nameservers
    $ grep -q nameserver /var/run/resolv.conf
    $ echo $?
    0
    $ ls -l /etc/resolv.conf /var/run/resolv.conf
    ls: cannot access '/etc/resolv.conf': No such file or directory
    -rw-r--r-- 1 root daemon 334 Feb 28 09:00 /var/run/resolv.conf
    $ # recreating /etc/resolv.conf is the last piece of the puzzle
    $ sudo ln -s /var/run/resolv.conf /etc/
  23. GoMino commented on Apr 3, 2026

    @GoMino

    On my side it was NordVPN causing issues, disconnecting from it, and ping started working again.

  24. barnstar commented on Jul 15, 2026

    @barnstar
    Member

    This should be addressed in 1.101.188 unstable (main/HEAD) - and will be included in the upcoming 1.102 release. We now shell out to scutil to configure DNS correctly in OSS tailscaled so MagicDNS works similar to the NETunnelProviderManager backed clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

OS-macosbugdns

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions