unbound install error?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
naddel81
Posts: 54
Joined: Sun Jul 21, 2019 12:54 pm

Re: unbound install error?

Post by naddel81 »

cannot see a DNS at all here:

Image
User avatar
Joulinar
Posts: 3215
Joined: Sat Nov 16, 2019 12:49 am

Re: unbound install error?

Post by Joulinar »

your network devices are not using PiHole if there are no other clients, except the Test-PC, showing up
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 54
Joined: Sun Jul 21, 2019 12:54 pm

Re: unbound install error?

Post by naddel81 »

only test-pc is active at the moment. but there is no DNS shown in queries.
naddel81
Posts: 54
Joined: Sun Jul 21, 2019 12:54 pm

Re: unbound install error?

Post by naddel81 »

there is no other DNS in my router than pihole:

Image

so devices only have that option.
User avatar
Joulinar
Posts: 3215
Joined: Sat Nov 16, 2019 12:49 am

Re: unbound install error?

Post by Joulinar »

in this case you fritz.box should be showing up inside PiHole. But this dosn't seems to be se case. At least you would need to check in PiHole if your fritz.box is logged as a client.

Another option is to distribute PiHole DNS server together with DHCP server settings. This can be done network settings inside your fritz.box

for IPv4

picture.png

for IPv6

picture1.png

This way, all clients should show up individually on PiHole and not combined as fritz.box. It will allow more detailed settings per client if needed.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 54
Joined: Sun Jul 21, 2019 12:54 pm

Re: unbound install error?

Post by naddel81 »

DNS of pihole ist already set in v4 and V6. See Attachments. Dunno whats wrong Here.
Attachments
Screenshot_2021-01-12-21-26-28-838_com.teamviewer.teamviewer.market.mobile.jpg
Screenshot_2021-01-12-21-27-39-520_com.teamviewer.teamviewer.market.mobile.jpg
User avatar
Joulinar
Posts: 3215
Joined: Sat Nov 16, 2019 12:49 am

Re: unbound install error?

Post by Joulinar »

did you checked on your clients what DNS settings are?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
neo-2020
Posts: 5
Joined: Sun Jan 10, 2021 5:49 pm

Re: unbound install error?

Post by neo-2020 »

Hello members.
I also had very big problems installing Unbound.
Error 1: When installing Unbound, the same error as naddel81
There was an error in /etc/unbound/unbound.conf.d/dietpi.conf

Code: Select all

    access-control: 0.0.0.0/0 refuse
    access-control: 127.0.0.1 allow
    access-control: 192.168.1
192.168.4.0/24 allow

    private-address: 192.168.0.0/16
"192.168.4.0/24 allow" wrongly set
Solution: deleted or set # and the install was successful.
The same as from Joulinar

Error 2: I couldn't resolve dig pi-hole.net @ 127.0.0.1 -p 5335

Code: Select all

; << >> DiG 9.11.5-P4-5.1 + deb10u1-Raspbian << >> pi-hole.net @ 127.0.0.1 -p 5335
;; global options: + cmd
;; connection timed out; no servers could be reached
Solution:
sudo iptables -A INPUT -i lo -j ACCEPT
sudo iptables -A OUTPUT -o lo -j ACCEPT
reboot

My question:
1: must comment out in /etc/systemd/resolved.conf # DNSSEC = allow-downgrade and replace allow-downgrade with off?
2: does /etc/resolv.conf nameserver have to be changed to 127.0.0.1?
3: systemctl status dhcpcd.service is inactive (dead), is that correct?
4: systemctl status unbound-resolvconf.service is inactive (dead), is that correct?
5: how to update from /var/lib/unbound/root.hints. Once in six months? about cromjob? or is that already automated by dietpi?
6: Which other settings have to be set in order to use Unbound correctly?

I am still skeptical, will watch the function for the next few days, but it seems to work.

Many Thanks!
naddel81
Posts: 54
Joined: Sun Jul 21, 2019 12:54 pm

Re: unbound install error?

Post by naddel81 »

thanks for your help.
one more thing: which upstream DNS does unbound relate to? where does it get its DNS data from? and is an adblocker pre-configured in dietpi's config for unbound?
User avatar
Joulinar
Posts: 3215
Joined: Sat Nov 16, 2019 12:49 am

Re: unbound install error?

Post by Joulinar »

Hi,

Unbound is using global root DNS server. Adblocking is done by PiHole. Basically it's as follow

Code: Select all

Client > PiHole > Unbound > global root DNS
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply