Skip to content

Commit

Permalink
Added a function to set FDN opendns on a network interface on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Nov 21, 2017
1 parent ff42363 commit d18dffc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .functions
Expand Up @@ -98,6 +98,21 @@ function digscan() {
set -m;
}

# Sets FDN (French Data Network) open DNS servers on a network interface
function opendns() {
echo "Select the network interface:\n1) Belkin USB-C LAN\n2) Wi-Fi"
read n

case $n in
1) selected="Belkin USB-C LAN";;
2) selected="Wi-Fi";;
*) echo "Invalid option"; return;;
esac

echo "\n-> Setting open DNS servers on network interface '$selected'"
networksetup -setdnsservers $selected 80.67.169.12 80.67.169.40
}

# Automatically Starting tmux on SSH
function ssht() {
SSH_HOST="${@: -1}"
Expand Down

0 comments on commit d18dffc

Please sign in to comment.