summaryrefslogtreecommitdiffstats
path: root/bin/change_dns
diff options
context:
space:
mode:
Diffstat (limited to 'bin/change_dns')
-rwxr-xr-xbin/change_dns1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/change_dns b/bin/change_dns
new file mode 100755
index 0000000..55d1b4c
--- /dev/null
+++ b/bin/change_dns
@@ -0,0 +1 @@
+sudo perl -pi -e 'if ( not s/^nameserver/#nameserver/) { s/^#nameserver/nameserver/;}' /etc/resolv.conf