Last active
December 5, 2022 04:25
-
-
Save jonaskahn/d000aa5615eea2f6072c7c45fc3e99b3 to your computer and use it in GitHub Desktop.
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/bash | |
sudo apt-get install -yq dnsmasq | |
sudo systemctl disable systemd-resolved.service | |
echo "DNSStubListener=no" | sudo tee --append /etc/systemd/resolved.conf | |
sudo systemctl restart systemd-resolved | |
sudo rm /etc/resolv.conf | |
echo "nameserver 127.0.0.1" | sudo tee /etc/resolv.conf | |
echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf | |
echo ' | |
port=53 | |
resolv-file=/var/run/dnsmasq/resolv.conf | |
bind-interfaces | |
listen-address=127.0.0.1 | |
server=/bssd.vn/127.0.0.1#8600 | |
log-queries | |
log-facility=/var/log/dnsmasq.log | |
' | sudo tee /etc/dnsmasq.d/default | |
sudo systemctl restart dnsmasq |
Domain: bssd.vn
bash -c "$(curl -fsSL https://gist.github.com/tuyendev/d000aa5615eea2f6072c7c45fc3e99b3/raw/15fc7e9312311ad0fc2d175d6862145ccfe9b49f/consul-dns-dnsmasq-setup.sh)"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Domain: consul
bash -c "$(curl -fsSL https://gist.githubusercontent.com/tuyendev/d000aa5615eea2f6072c7c45fc3e99b3/raw/6140bbde65cfd9db2e81b7649663c4bdef68498a/consul-dns-dnsmasq-setup.sh)"