Added dnsmasq

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
master
Marcus Noble 2 months ago
parent 5b3cbc4cbd
commit 0e3be2cb83
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
  1. 12
      install.sh
  2. 9
      other-files/dnsmasq/dnsmasq.conf

@ -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

@ -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
Loading…
Cancel
Save