Wiki page unbound changed with summary [deleted sudo to be consistent with other tutorials] by Dan

This commit is contained in:
ORG_User 2024-05-12 00:04:14 +02:00
parent ff6ea085cd
commit b905a19caa

View file

@ -5,13 +5,13 @@
===== Package =====
<code>
sudo pacman -S unbound expat
pacman -S unbound expat
</code>
===== Configuration =====
<code>
sudo nano /etc/unbound/unbound.conf
nano /etc/unbound/unbound.conf
</code>
<code>
server:
@ -75,8 +75,9 @@ curl --output /etc/unbound/root.hints https://www.internic.net/domain/named.cach
</code>
<code>
sudo nano /etc/systemd/system/roothints.service
nano /etc/systemd/system/roothints.service
</code>
<code>
[Unit]
Description=Update root hints for unbound
@ -87,8 +88,9 @@ ExecStart=/usr/bin/curl -o /etc/unbound/root.hints https://www.internic.net/doma
</code>
<code>
sudo nano /etc/systemd/system/roothints.timer
nano /etc/systemd/system/roothints.timer
</code>
<code>
[Unit]
Description=Run root.hints monthly
@ -104,20 +106,21 @@ WantedBy=timers.target
===== Start =====
<code>
sudo systemctl enable --now unbound.service roothints.timer
systemctl enable --now unbound.service roothints.timer
</code>
===== Local DNS via NetworkManager =====
<code>
sudo nano /etc/NetworkManager/conf.d/dns-servers.conf
nano /etc/NetworkManager/conf.d/dns-servers.conf
</code>
<code>
[global-dns-domain-*]
servers=127.0.0.1
</code>
<code>
sudo systemctl restart NetworkManager.service
systemctl restart NetworkManager.service
</code>
===== DNSCrypt proxy =====