summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/gdns11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/gdns b/bin/gdns
new file mode 100755
index 00000000..9433ba00
--- /dev/null
+++ b/bin/gdns
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if grep -q 'gdns.sh' /etc/resolv.conf; then
+  sed -i '1,3d' /etc/resolv.conf
+  echo 'Google DNS removed'
+else
+  sed -i '1i # Added by gdns.sh' /etc/resolv.conf
+  sed -i '2i nameserver 8.8.8.8' /etc/resolv.conf
+  sed -i '3i nameserver 8.8.4.4' /etc/resolv.conf
+  echo 'Google DNS added'
+fi
taJune McEnroe 2020-07-14Add CGI upload program for temp.causal.agencyJune McEnroe 2020-07-10Add The Broken KingdomsJune McEnroe 2020-07-08Add facebook and twitter to title user-agentJune McEnroe 2020-06-30Tweak causal.agency for mostly no reasonJune McEnroe 2020-06-30Add Ancillary JusticeJune McEnroe 2020-06-26Add password non-manager to planJune McEnroe 2020-06-26Tweak TF2 sensitivities once moreJune McEnroe 2020-06-19Add note about litterbox bot useJune McEnroe 2020-06-19Publish "IRC suite"June McEnroe 2020-06-17Add errors to link.shJune McEnroe