summary refs log tree commit diff
path: root/bin/gdns
blob: 9433ba004fd4e965d9a8d359f329d022e1f8cbcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
pan title='2022-03-24 18:13:06 -0400'>2022-03-24Skip matches with ident chars on either sideJune McEnroe 2022-03-24Add The Invisible Life of Addie LaRueJune McEnroe 2022-03-22Source ~/.profile.local if it existsJune McEnroe 2022-03-18Publish "Addendum 2021"June McEnroe 2022-03-16Remove wcwidth portJune McEnroe 2022-03-16Remove -j4 from ./PlanJune McEnroe 2022-03-15Rewrite Linux install.sh for DebianJune McEnroe 2022-03-15Remove dashJune McEnroe