diff --git a/install.sh b/install.sh index af7dcfc..1f55d9c 100644 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/other-files/dnsmasq/dnsmasq.conf b/other-files/dnsmasq/dnsmasq.conf new file mode 100644 index 0000000..3d077b1 --- /dev/null +++ b/other-files/dnsmasq/dnsmasq.conf @@ -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