Added dnsmasq
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
5b3cbc4cbd
commit
0e3be2cb83
12
install.sh
12
install.sh
@ -30,7 +30,7 @@ BREW_TOOLS=(
|
|||||||
kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship
|
kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship
|
||||||
tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault stats
|
tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault stats
|
||||||
tabby vale lastpass-cli jless macchina tz vmware-tanzu/carvel/kapp viddy
|
tabby vale lastpass-cli jless macchina tz vmware-tanzu/carvel/kapp viddy
|
||||||
homeassistant-cli
|
homeassistant-cli act dnsmasq
|
||||||
)
|
)
|
||||||
CARGO_TOOLS=( bottom )
|
CARGO_TOOLS=( bottom )
|
||||||
NODE_TOOLS=( git-split-diffs )
|
NODE_TOOLS=( git-split-diffs )
|
||||||
@ -120,6 +120,16 @@ case "${OSTYPE}" in
|
|||||||
ln -sfn ${f} ${dst}
|
ln -sfn ${f} ${dst}
|
||||||
printf " ✅\n"
|
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
|
esac
|
||||||
|
|
||||||
|
9
other-files/dnsmasq/dnsmasq.conf
Normal file
9
other-files/dnsmasq/dnsmasq.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user