Skip to content

Instantly share code, notes, and snippets.

@diyism
Last active March 4, 2022 21:19
Show Gist options
  • Save diyism/7568381 to your computer and use it in GitHub Desktop.
Save diyism/7568381 to your computer and use it in GitHub Desktop.
replace dnsmasq-base with unbound
#remove dnsmasq-base without removing network-manager, don't use "apt-get remove"
#but apt-get will be held, so need no do this line
sudo dpkg --remove --force-all dnsmasq-base
#kill dnsmasq to release the port 53
sudo kill -SIGHUP $(cat /var/run/dnsmasq/dnsmasq.pid)
#confirm /etc/resolv.conf is:
nameserver 127.0.0.1
sudo gedit /etc/NetworkManager/NetworkManager.conf
#replace:
dns=dnsmasq
#with:
dns=unbound
sudo apt-get install unbound
sudo gedit /etc/unbound/unbound.conf:
server:
#auto-trust-anchor-file: "/var/lib/unbound/root.key"
tcp-upstream: yes
forward-zone:
name: "."
forward-addr: 8.8.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment