This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# The script automatically changed DNS servers advertised by DHCP based on Pi-hole DNS Server status. | |
# https://gist.github.com/flexoid/fb2cc01b3ff3ac19659269a9c4c9ae2d | |
TARGET=192.168.20.112 # Pi-hole | |
FALLBACK=8.8.8.8,8.8.4.4 | |
function set_fallback_dns() { | |
echo $(date) |