Please follow the below template, it will help us to help you!
Expected Behaviour:
DNS should be the DNS of my pi-hole, 10.0.1.24
Actual Behaviour:
When I connect my vpn [HotspotShield VPN], it changes my DNS nameserver to 8.8.8.8, which then completely circumvents my pi-hole.
Anyone know how to change this behavior so that my DNS stays on 10.0.1.24?
Then this would be a setting in Safari. The default for all services on the computer is to use the DNS specified by the OS. Are you running any Safari extensions that can change the DNS to Google?
I'm not running any extensions in Safari, except uBlock. But only because pi-hole isn't working with the VPN connected.
I did notice the following statement at the beginning of the /etc/resolve.conf file:
--------------------------
#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
# scutil --dns
#
# SEE ALSO
# dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
nameserver 8.8.8.8
----------------------------------------------------
so when I run scuttle --dns as it suggests, it shows a long list of entries, the first one being:
resolver #1
nameserver[0] : 8.8.8.8
if_index : 15 (utun1)
flags : Request A records
reach : 0x00000002 (Reachable)
-----------------------
yeah it's too bad. can't find a vpn that works 100% like I want it to. This one circumvents my pi-hole, and another one I tried that let's me set the DNS causes kernel panics when I use VirtualBox. I just can't seem to win with vpn.