# DNS setting stays on WiFi after disconnect Mac Client

**URL:** <https://forum.pritunl.com/t/dns-setting-stays-on-wifi-after-disconnect-mac-client/327>\
**Category:** Pritunl VPN\
**Tags:** pritunl-client\
**Created:** [August 23, 2022, 11:36am UTC](https://forum.pritunl.com/t/dns-setting-stays-on-wifi-after-disconnect-mac-client/327 "2022-08-23T11:36:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emanueltilly](https://forum.pritunl.com/user_avatar/forum.pritunl.com/emanueltilly/32/128_2.png) [@emanueltilly](https://forum.pritunl.com/u/emanueltilly)\
**Post date:** [August 23, 2022, 11:36am UTC](https://forum.pritunl.com/t/dns-setting-stays-on-wifi-after-disconnect-mac-client/327/1 "2022-08-23T11:36:51Z")

</div>

I have a issue where my DNS server that I set on the VPN server will stick as the DNS server on my Mac clients after they have been disconnected from the VPN causing issues.

The problem occurs when the end user do not disconnect from the VPN server properly in the client and instead just closes the laptop and goes on with their day.

While I understand that this is not the correct way to disconnect from the VPN server, it will be the way end users do it most of the time no matter what you tell them.

What is the reason behind this issue, and is it something I can do on the server-side to mitigate the issue?

---

<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:** [August 23, 2022, 6:28pm UTC](https://forum.pritunl.com/t/dns-setting-stays-on-wifi-after-disconnect-mac-client/327/2 "2022-08-23T18:28:23Z")

</div>

After the issue occurs run the commands below to get the DNS state.

```auto
sudo scutil --dns
sudo scutil
> open
> show State:/Network/Global/DNS
> show State:/Network/Pritunl/DNS
> show State:/Network/Pritunl/Restore
> quit

```

---

<div class="post-metadata">

**Author:** ![mjaggard](https://forum.pritunl.com/user_avatar/forum.pritunl.com/mjaggard/32/413_2.png) [@mjaggard](https://forum.pritunl.com/u/mjaggard)\
**Post date:** [April 25, 2023, 7:39am UTC](https://forum.pritunl.com/t/dns-setting-stays-on-wifi-after-disconnect-mac-client/327/3 "2023-04-25T07:39:43Z")

</div>

I also have this problem.

```auto
sudo scutil --dns

```

```auto
DNS configuration

resolver #1
  search domain[0] : home
  nameserver[0] : 10.30.0.2
  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] : home
  nameserver[0] : 10.30.0.2
  if_index : 6 (en0)
  flags : Scoped, Request A records
  reach : 0x00000002 (Reachable)

```

```auto
sudo scutil
> open
> show State:/Network/Global/DNS
<dictionary> {
  SearchDomains : <array> {
    0 : home
  }
  ServerAddresses : <array> {
    0 : 10.30.0.2
  }
  __CONFIGURATION_ID__ : Default: 0
  __FLAGS__ : 2
  __ORDER__ : 0
}
> show State:/Network/Pritunl/DNS
  No such key
> show State:/Network/Pritunl/Restore
  No such key
> quit

```

---

<div class="post-metadata">

**Author:** ![Tracing7565](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/t/bbe5ce/32.png) [@Tracing7565](https://forum.pritunl.com/u/Tracing7565)\
**Post date:** [January 14, 2024, 9:51am UTC](https://forum.pritunl.com/t/dns-setting-stays-on-wifi-after-disconnect-mac-client/327/4 "2024-01-14T09:51:05Z")

</div>

This problem is haunting our Mac clients for the past year. Any advice on the solution?

---

<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 16, 2024, 8:06am UTC](https://forum.pritunl.com/t/dns-setting-stays-on-wifi-after-disconnect-mac-client/327/5 "2024-01-16T08:06:51Z")

</div>

This should be fixed in the [**v1.3.3772.10**](https://github.com/pritunl/pritunl-client-electron/releases/tag/1.3.3772.10) release.
