Skip to content

Commit

Permalink
feat(function): add dns-fast, dns-hack
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Jan 2, 2019
1 parent 233f48c commit 1e10c82
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions profile.d/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,17 @@ function webmify {
function nullify {
"$@" >/dev/null 2>&1
}

function dns-fast {
cat << EOF > /etc/resolv.conf
nameserver 1.1.1.1
nameserver 8.8.8.8
EOF
}

function dns-hack {
cat << EOF > /etc/resolv.conf
nameserver 178.22.122.100
nameserver 94.232.174.194
EOF
}

0 comments on commit 1e10c82

Please sign in to comment.