Skip to content

Commit 2a1b523

Browse files
committed
chore: always check that Wifi is using unbound DNS
1 parent 6cdd9d3 commit 2a1b523

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unbound/unbound.zsh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if ! $(networksetup -getdnsservers Wi-Fi | grep -q "127.0.0.1");
2+
then
3+
echo "Setting WiFi DNS to localhost"
4+
networksetup -setdnsservers Wi-Fi 127.0.0.1
5+
fi

0 commit comments

Comments
 (0)