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:08:47 +02:00
parent b9b69c2611
commit 9ea358caf7

View file

@ -5,14 +5,15 @@
===== Pakete ===== ===== Pakete =====
<code> <code>
sudo pacman -S unbound expat pacman -S unbound expat
</code> </code>
===== Konfiguration ===== ===== Konfiguration =====
<code> <code>
sudo nano /etc/unbound/unbound.conf nano /etc/unbound/unbound.conf
</code> </code>
<code> <code>
server: server:
# If no logfile is specified, syslog is used # If no logfile is specified, syslog is used
@ -75,8 +76,9 @@ curl --output /etc/unbound/root.hints https://www.internic.net/domain/named.cach
</code> </code>
<code> <code>
sudo nano /etc/systemd/system/roothints.service nano /etc/systemd/system/roothints.service
</code> </code>
<code> <code>
[Unit] [Unit]
Description=Update root hints for unbound Description=Update root hints for unbound
@ -87,8 +89,9 @@ ExecStart=/usr/bin/curl -o /etc/unbound/root.hints https://www.internic.net/doma
</code> </code>
<code> <code>
sudo nano /etc/systemd/system/roothints.timer nano /etc/systemd/system/roothints.timer
</code> </code>
<code> <code>
[Unit] [Unit]
Description=Run root.hints monthly Description=Run root.hints monthly
@ -104,20 +107,22 @@ WantedBy=timers.target
===== Start ===== ===== Start =====
<code> <code>
sudo systemctl enable --now unbound.service roothints.timer systemctl enable --now unbound.service roothints.timer
</code> </code>
===== Lokales DNS über NetworkManager ===== ===== Lokales DNS über NetworkManager =====
<code> <code>
sudo nano /etc/NetworkManager/conf.d/dns-servers.conf nano /etc/NetworkManager/conf.d/dns-servers.conf
</code> </code>
<code> <code>
[global-dns-domain-*] [global-dns-domain-*]
servers=127.0.0.1 servers=127.0.0.1
</code> </code>
<code> <code>
sudo systemctl restart NetworkManager.service systemctl restart NetworkManager.service
</code> </code>
===== DNSCrypt proxy ===== ===== DNSCrypt proxy =====