Skip to content

Instantly share code, notes, and snippets.

@CryptoScott
Last active October 29, 2018 20:24
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 CryptoScott/93614b2b79fc7601c1579e667a874318 to your computer and use it in GitHub Desktop.
Save CryptoScott/93614b2b79fc7601c1579e667a874318 to your computer and use it in GitHub Desktop.
Automated DNS changer in Linux
#!/bin/sh
echo '#Generated by network manager' > /etc/resolv.conf
echo nameserver 37.235.1.177 >> /etc/resolv.conf
echo nameserver 37.235.1.174 >> /etc/resolv.conf
echo nameserver 84.200.69.80 >> /etc/resolv.conf
echo nameserver 84.200.70.40 >> /etc/resolv.conf
echo nameserver 91.239.100.100 >> /etc/resolv.conf
echo nameserver 89.233.43.71 >> /etc/resolv.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment