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
19-02-08 16:10:44 -0500'>2019-02-08Use set for parent in hiJune McEnroe 2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe 2019-02-08Match only the basename in hiJune McEnroe 2019-02-07Add mdoc syntax to hiJune McEnroe 2019-02-07Support multi-line C macros in hiJune McEnroe 2019-02-07Detect .mk files as makeJune McEnroe 2019-02-07Add make syntax to hiJune McEnroe 2019-02-07Add IRC output to hiJune McEnroe 2019-02-07Improve C syntax accuracy and add Format classJune McEnroe 2019-02-07Factor out hi checkJune McEnroe 2019-02-07Add Escape class to hiJune McEnroe 2019-02-07Add Todo class and parent syntax constraintJune McEnroe