# MacOS DNS Search Domains

**URL:** <https://forum.pritunl.com/t/macos-dns-search-domains/2471>\
**Category:** Pritunl\
**Tags:** pritunl-client\
**Created:** [October 8, 2024, 10:56pm UTC](https://forum.pritunl.com/t/macos-dns-search-domains/2471 "2024-10-08T22:56:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cl-bc](https://forum.pritunl.com/user_avatar/forum.pritunl.com/cl-bc/32/684_2.png) [@cl-bc](https://forum.pritunl.com/u/cl-bc)\
**Post date:** [October 8, 2024, 10:56pm UTC](https://forum.pritunl.com/t/macos-dns-search-domains/2471/1 "2024-10-08T22:56:23Z")

</div>

The Pritunl Client for MacOS is not setting the Search Domains.

Tested with 3 clients: Pritunl, Viscosity and Tunnelblick. All connected to the same Pritunl server without any modifications to the profile or client settings.

In the Pritunl settings I have tried:

- Reset DNS
- Reset Networking
- Enable/Disable DNS refresh

In the Pritunl profile settings:

- Force DNS configuration

The connection logs show the option being sent, which is evident with Viscosity and Tunnlblick properly setting it.

```auto
dhcp-option DOMAIN-SEARCH corp.pvt

```

My tests were ran on 14.6.1 Sonoma, but this is happening across 12, 13, 14 and 15.

Pritunl

```auto
scutil --dns
DNS configuration

resolver #1
  search domain[0] : home
  nameserver[0] : 192.168.111.184
  nameserver[1] : 192.168.111.51
  flags : Supplemental, Request A records
  reach : 0x00000002 (Reachable)
  order : 101600

resolver #2
  nameserver[0] : 192.168.1.1
  nameserver[1] : 208.67.222.222
  if_index : 12 (en0)
  flags : Request A records
  reach : 0x00020002 (Reachable,Directly Reachable Address)
  order : 200000

resolver #3
  domain : local
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300000

resolver #4
  domain : 254.169.in-addr.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300200

resolver #5
  domain : 8.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300400

resolver #6
  domain : 9.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300600

resolver #7
  domain : a.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300800

resolver #8
  domain : b.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 301000

DNS configuration (for scoped queries)

resolver #1
  search domain[0] : home
  nameserver[0] : 192.168.1.1
  nameserver[1] : 208.67.222.222
  if_index : 12 (en0)
  flags : Scoped, Request A records
  reach : 0x00020002 (Reachable,Directly Reachable Address)

```

Viscosity

```auto
scutil --dns
DNS configuration

resolver #1
  search domain[0] : corp.pvt
  search domain[1] : home
  nameserver[0] : 192.168.1.1
  nameserver[1] : 208.67.222.222
  if_index : 12 (en0)
  flags : Request A records
  reach : 0x00020002 (Reachable,Directly Reachable Address)

resolver #2
  domain : local
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300000

resolver #3
  domain : corp.pvt
  nameserver[0] : 192.168.111.184
  nameserver[1] : 192.168.111.51
  flags : Supplemental, Request A records
  reach : 0x00000002 (Reachable)
  order : 101601

resolver #4
  domain : 254.169.in-addr.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300200

resolver #5
  domain : 8.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300400

resolver #6
  domain : 9.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300600

resolver #7
  domain : a.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300800

resolver #8
  domain : b.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 301000

DNS configuration (for scoped queries)

resolver #1
  search domain[0] : home
  nameserver[0] : 192.168.1.1
  nameserver[1] : 208.67.222.222
  if_index : 12 (en0)
  flags : Scoped, Request A records
  reach : 0x00020002 (Reachable,Directly Reachable Address)

resolver #2
  search domain[0] : corp.pvt
  nameserver[0] : 192.168.111.184
  nameserver[1] : 192.168.111.51
  if_index : 19 (utun10)
  flags : Scoped, Request A records
  reach : 0x00000002 (Reachable)

```

Tunnelblick

````auto
scutil --dns
DNS configuration

resolver #1
  search domain[0] : corp.pvt
  search domain[1] : home
  nameserver[0] : 192.168.111.184
  nameserver[1] : 192.168.111.51
  flags : Request A records
  reach : 0x00000002 (Reachable)

resolver #2
  domain : local
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300000

resolver #3
  domain : 254.169.in-addr.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300200

resolver #4
  domain : 8.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300400

resolver #5
  domain : 9.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300600

resolver #6
  domain : a.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 300800

resolver #7
  domain : b.e.f.ip6.arpa
  options : mdns
  timeout : 5
  flags : Request A records
  reach : 0x00000000 (Not Reachable)
  order : 301000

DNS configuration (for scoped queries)

resolver #1
  search domain[0] : corp.pvt
  search domain[1] : home
  nameserver[0] : 192.168.111.184
  nameserver[1] : 192.168.111.51
  if_index : 12 (en0)
  flags : Scoped, Request A records
  reach : 0x00000002 (Reachable)```
````

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 9, 2024, 9:21pm UTC](https://forum.pritunl.com/t/macos-dns-search-domains/2471/2 "2024-10-09T21:21:18Z")

</div>

This should be fixed in the latest releases. Verify [**Pritunl Client v1.3.4026.10**](https://github.com/pritunl/pritunl-client-electron/releases/tag/1.3.4026.10) is installed. These newer releases will update the `SearchDomains` value for the primary scutil service. The [**client debugging**](https://docs.pritunl.com/docs/debugging-client) documentation has information on debugging DNS issues.

---

<div class="post-metadata">

**Author:** ![dpollack](https://forum.pritunl.com/user_avatar/forum.pritunl.com/dpollack/32/1186_2.png) [@dpollack](https://forum.pritunl.com/u/dpollack)\
**Post date:** [January 27, 2025, 5:48pm UTC](https://forum.pritunl.com/t/macos-dns-search-domains/2471/3 "2025-01-27T17:48:12Z")

</div>

Hi - i’m running into the same issue, on version v1.3.4099.9 of the client. My VPN client never gets the DNS search domain (specified on the server side config).

Are there any plans to fix this?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [January 28, 2025, 8:33am UTC](https://forum.pritunl.com/t/macos-dns-search-domains/2471/4 "2025-01-28T08:33:02Z")

</div>

It may also require updating the server if an older release is running.
