Added dnsmasq

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-08-15 16:33:30 +01:00
parent 5b3cbc4cbd
commit 0e3be2cb83
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 20 additions and 1 deletions

View File

@ -30,7 +30,7 @@ BREW_TOOLS=(
kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship
tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault stats
tabby vale lastpass-cli jless macchina tz vmware-tanzu/carvel/kapp viddy
homeassistant-cli
homeassistant-cli act dnsmasq
)
CARGO_TOOLS=( bottom )
NODE_TOOLS=( git-split-diffs )
@ -120,6 +120,16 @@ case "${OSTYPE}" in
ln -sfn ${f} ${dst}
printf " ✅\n"
# 2. dnsmasq
f=$(fulllink "./other-files/dnsmasq/dnsmasq.conf")
dst="$(brew --prefix)/etc/dnsmasq.conf"
printf "Copying ${f}=>${dst}"
cp ${f} ${dst}
printf " ✅\n"
printf "Setting DNS server for 'Wi-Fi' interface to use dnsmasq"
sudo networksetup -setdnsservers "Wi-Fi" 127.0.0.1
printf " ✅\n"
;;
esac

View File

@ -0,0 +1,9 @@
server=192.168.1.3
server=192.168.1.4
server=192.168.1.5
server=1.1.1.1
port=53
listen-address=127.0.0.1
bogus-priv
no-resolv
bind-interfaces