Skip to content

Instantly share code, notes, and snippets.

@justsml
Created March 17, 2019 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justsml/dc95cad46053396a6eea097b3d35a36b to your computer and use it in GitHub Desktop.
Save justsml/dc95cad46053396a6eea097b3d35a36b to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
echo "> CURRENT DNS SERVERS:"
networksetup -getdnsservers Wi-Fi
networksetup -setdnsservers Wi-Fi \
9.9.9.9 1.1.1.1 8.8.8.8
# Quad 9 Cloudflare Google
echo "> DNS SERVERS UPDATED"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment