Pihole + Unbound - SERVFAIL for all queries

Hi guys, how are u?

I installed Pi-Hoe and Unbound to create my own DNS server but I'm getting some errors and I don't know what else to do.

First I installed unbound and test it, everething was working. I ran DIG ( dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5335 and dig sigok.verteiltesysteme.net @127.0.0.1 -p 5335) the first give me SERVFAIL (as expected) and the second NOERROR (as expected too). After this I installed Pi-hole and set the DNS as 127.0.0.1 with port 5335 (as shown at pihole documentation). But after this nothing works.

When I look at the queries log in pi-hole web admin all of them return with SERVFAIL.

I'm running pihole and unbound at my raspberry pi 4 model b 4GB.

Now if i try to run dig again it only shows me connection timed out; no servers could be reached

Here's my config:

server:
    # If no logfile is specified, syslog is used
    logfile: "/var/log/unbound/unbound.log"
    verbosity: 5

    interface: 127.0.0.1
    port: 5335
    do-ip4: yes
    do-udp: yes
    do-tcp: yes

    # May be set to yes if you have IPv6 connectivity
    do-ip6: no

    # You want to leave this to no unless you have *native* IPv6. With 6to4 and
    # Terredo tunnels your web browser should favor IPv4 for the same reasons
    prefer-ip6: no

    # Use this only when you downloaded the list of primary root servers!
    # If you use the default dns-root-data package, unbound will find it automatically
    #root-hints: "/var/lib/unbound/root.hints"

    # Trust glue only if it is within the server's authority
    harden-glue: yes

    # Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
    harden-dnssec-stripped: yes

    # Don't use Capitalization randomization as it known to cause DNSSEC issues sometimes
    # see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
    use-caps-for-id: no

    # Reduce EDNS reassembly buffer size.
    # IP fragmentation is unreliable on the Internet today, and can cause
    # transmission failures when large DNS messages are sent via UDP. Even
    # when fragmentation does work, it may not be secure; it is theoretically
    # possible to spoof parts of a fragmented DNS message, without easy
    # detection at the receiving end. Recently, there was an excellent study
    # >>> Defragmenting DNS - Determining the optimal maximum UDP response size for DNS <<<
    # by Axel Koolhaas, and Tjeerd Slokker (https://indico.dns-oarc.net/event/36/contributions/776/)
    # in collaboration with NLnet Labs explored DNS using real world data from the
    # the RIPE Atlas probes and the researchers suggested different values for
    # IPv4 and IPv6 and in different scenarios. They advise that servers should
    # be configured to limit DNS messages sent over UDP to a size that will not
    # trigger fragmentation on typical network links. DNS servers can switch
    # from UDP to TCP when a DNS response is too big to fit in this limited
    # buffer size. This value has also been suggested in DNS Flag Day 2020.
    edns-buffer-size: 1232

    # Perform prefetching of close to expired message cache entries
    # This only applies to domains that have been frequently queried
    prefetch: yes

    # One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
    num-threads: 5

    # Ensure kernel buffer is large enough to not lose messages in traffic spikes
    so-rcvbuf: 1m

    # Ensure privacy of local IP ranges
    private-address: 192.168.0.0/16
    private-address: 169.254.0.0/16
    private-address: 172.16.0.0/12
    private-address: 10.0.0.0/8
    private-address: fd00::/8
    private-address: fe80::/10

My resolv.conf file:

# Generated by resolvconf
domain Dlink
nameserver 127.0.0.1

And my debug log:

This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.

The intent of this script is to allow users to self-diagnose their installations.  This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected.  Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development.

NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers can access your data via the given token. We have taken these extra steps to secure your data and will work to further reduce any personal information gathered.

*** [ INITIALIZING ]
[i] 2022-08-29:02:41:27 debug log has been initialized.
[i] System has been running for 0 days, 2 hours, 9 minutes

*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...

*** [ DIAGNOSING ]: Core version
[i] Core: v5.11.4 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Remotes: origin     https://github.com/pi-hole/pi-hole.git (fetch)
             origin     https://github.com/pi-hole/pi-hole.git (push)
[i] Branch: master
[i] Commit: v5.11.4-0-gaefbe1f

*** [ DIAGNOSING ]: Web version
[i] Web: v5.13 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Remotes: origin     https://github.com/pi-hole/AdminLTE.git (fetch)
             origin     https://github.com/pi-hole/AdminLTE.git (push)
[i] Branch: master
[i] Commit: v5.13-0-g1714b08

*** [ DIAGNOSING ]: FTL version
[βœ“] FTL: v5.16.3

*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.59

*** [ DIAGNOSING ]: php version
[i] 7.4.30

*** [ DIAGNOSING ]: Operating system
[i] dig return code:  10
[i] dig response:  dig: couldn't get address for 'ns1.pi-hole.net': failure
[βœ—] Distro:  Debian
[βœ—] Error: Debian is not a supported distro (https://docs.pi-hole.net/main/prerequisites/)

*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected

*** [ DIAGNOSING ]: FirewallD
[i] Firewalld service inactive

*** [ DIAGNOSING ]: Processor
[βœ“] aarch64

*** [ DIAGNOSING ]: Disk usage
   Sist. Arq.      Tam. Usado Disp. Uso% Montado em
   /dev/root        29G  1,8G   26G   7% /
   devtmpfs        1,7G     0  1,7G   0% /dev
   tmpfs           1,9G  1,2M  1,9G   1% /dev/shm
   tmpfs           759M  884K  759M   1% /run
   tmpfs           5,0M  4,0K  5,0M   1% /run/lock
   /dev/mmcblk0p1  253M   31M  222M  12% /boot
   tmpfs           380M     0  380M   0% /run/user/1000
   tmpfs           380M     0  380M   0% /run/user/999

*** [ DIAGNOSING ]: Network interfaces and addresses
   1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
       link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
       inet 127.0.0.1/8 scope host lo
          valid_lft forever preferred_lft forever
       inet6 ::1/128 scope host
          valid_lft forever preferred_lft forever
   2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
       link/ether e4:5f:01:64:ad:8e brd ff:ff:ff:ff:ff:ff
       inet 10.15.0.53/24 brd 10.15.0.255 scope global noprefixroute eth0
          valid_lft forever preferred_lft forever
       inet6 fd01::6e7b:14e8:e850:af70/64 scope global dynamic mngtmpaddr noprefixroute
          valid_lft 294sec preferred_lft 294sec
       inet6 fe80::b848:bedc:b6b5:7b01/64 scope link
          valid_lft forever preferred_lft forever
   3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
       link/ether e4:5f:01:64:ad:8f brd ff:ff:ff:ff:ff:ff

*** [ DIAGNOSING ]: Network routing table
   default via 10.15.0.5 dev eth0 src 10.15.0.53 metric 202
   10.15.0.0/24 dev eth0 proto dhcp scope link src 10.15.0.53 metric 202

*** [ DIAGNOSING ]: Networking
[βœ“] IPv4 address(es) bound to the eth0 interface:
    10.15.0.53/24

[βœ“] IPv6 address(es) bound to the eth0 interface:
    fd01::6e7b:14e8:e850:af70/64
    fe80::b848:bedc:b6b5:7b01/64

[i] Default IPv4 gateway: 10.15.0.5
   * Pinging 10.15.0.5...
[βœ“] Gateway responded.

*** [ DIAGNOSING ]: Ports in use
    udp:0.0.0.0:33862 is in use by pihole-FTL
    udp:0.0.0.0:56443 is in use by pihole-FTL
    udp:127.0.0.1:5335 is in use by unbound
    udp:127.0.0.1:5335 is in use by unbound
    udp:127.0.0.1:5335 is in use by unbound
    udp:127.0.0.1:5335 is in use by unbound
    udp:127.0.0.1:5335 is in use by unbound
    udp:0.0.0.0:5353 is in use by avahi-daemon
    udp:0.0.0.0:60732 is in use by pihole-FTL
    udp:0.0.0.0:58709 is in use by avahi-daemon
    udp:0.0.0.0:40574 is in use by pihole-FTL
    udp:0.0.0.0:38651 is in use by pihole-FTL
    udp:0.0.0.0:55163 is in use by pihole-FTL
    udp:0.0.0.0:38819 is in use by pihole-FTL
    udp:0.0.0.0:49070 is in use by pihole-FTL
[βœ“] udp:0.0.0.0:53 is in use by pihole-FTL
    udp:0.0.0.0:67 is in use by pihole-FTL
    udp:0.0.0.0:68 is in use by dhcpcd
    udp:0.0.0.0:51398 is in use by pihole-FTL
    udp:0.0.0.0:59842 is in use by pihole-FTL
    udp:0.0.0.0:43518 is in use by pihole-FTL
    udp:0.0.0.0:37883 is in use by pihole-FTL
    udp:*:5353 is in use by avahi-daemon
[βœ“] udp:*:53 is in use by pihole-FTL
    udp:*:546 is in use by dhcpcd
    udp:*:35473 is in use by avahi-daemon
    tcp:0.0.0.0:22 is in use by sshd
[βœ“] tcp:0.0.0.0:53 is in use by pihole-FTL
[βœ“] tcp:0.0.0.0:80 is in use by lighttpd
    tcp:127.0.0.1:8953 is in use by unbound
[βœ“] tcp:127.0.0.1:4711 is in use by pihole-FTL
    tcp:127.0.0.1:5335 is in use by unbound
    tcp:127.0.0.1:5335 is in use by unbound
    tcp:127.0.0.1:5335 is in use by unbound
    tcp:127.0.0.1:5335 is in use by unbound
    tcp:127.0.0.1:5335 is in use by unbound
    tcp:*:22 is in use by sshd
[βœ“] tcp:*:53 is in use by pihole-FTL
[βœ“] tcp:*:80 is in use by lighttpd
[βœ“] tcp:[::1]:4711 is in use by pihole-FTL

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[βœ“] www.friendlystorewyo.com is 0.0.0.0 on lo (127.0.0.1)
[βœ“] www.friendlystorewyo.com is 0.0.0.0 on eth0 (10.15.0.53)
[βœ“] No IPv4 address available on wlan0
[βœ“] doubleclick.com is 64.233.161.138 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
[βœ“] archswimming.com is :: on lo (::1)
[βœ“] archswimming.com is :: on eth0 (fd01::6e7b:14e8:e850:af70)
[βœ“] archswimming.com is :: on eth0 (fe80::b848:bedc:b6b5:7b01)
[βœ“] No IPv6 address available on wlan0
[βœ—] Failed to resolve doubleclick.com via a remote, public DNS server (2001:4860:4860::8888)

*** [ DIAGNOSING ]: Discovering active DHCP servers (takes 10 seconds)
   Scanning all your interfaces for DHCP servers
   Timeout: 10 seconds

   * Received 310 bytes from eth0:10.15.0.53
     Offered IP address: 10.15.0.54
     Server IP address: 10.15.0.53
     Relay-agent IP address: N/A
     BOOTP server: (empty)
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 10.15.0.53
      lease-time: 86400 ( 1d )
      renewal-time: 43200 ( 12h )
      rebinding-time: 75600 ( 21h )
      netmask: 255.255.255.0
      broadcast: 10.15.0.255
      dns-server: 10.15.0.53
      domain-name: "lan"
      hostname: "raspberrypi"
      router: 10.15.0.5
      --- end of options ---

   DHCP packets received on interface wlan0: 0DHCP packets received on interface lo: 0

   DHCP packets received on interface eth0: 1

*** [ DIAGNOSING ]: Pi-hole processes
[βœ“] lighttpd daemon is active
[βœ“] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Pi-hole-FTL full status
   ● pihole-FTL.service - LSB: pihole-FTL daemon
     Loaded: loaded (/etc/init.d/pihole-FTL; generated)
     Active: active (exited) since Mon 2022-08-29 02:12:13 -03; 29min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 27549 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
        CPU: 42ms

ago 29 02:12:13 raspberrypi systemd[1]: Starting LSB: pihole-FTL daemon...
ago 29 02:12:13 raspberrypi pihole-FTL[27549]: Not running
ago 29 02:12:13 raspberrypi su[27568]: (to pihole) root on none
ago 29 02:12:13 raspberrypi su[27568]: pam_unix(su:session): session opened for user pihole(uid=999) by (uid=0)
ago 29 02:12:13 raspberrypi su[27568]: pam_unix(su:session): session closed for user pihole
ago 29 02:12:13 raspberrypi systemd[1]: Started LSB: pihole-FTL daemon.

*** [ DIAGNOSING ]: Setup variables
    PIHOLE_INTERFACE=eth0
    QUERY_LOGGING=true
    INSTALL_WEB_SERVER=true
    INSTALL_WEB_INTERFACE=true
    LIGHTTPD_ENABLED=true
    CACHE_SIZE=10000
    DNS_FQDN_REQUIRED=true
    DNS_BOGUS_PRIV=true
    DNSMASQ_LISTENING=local
    BLOCKING_ENABLED=true
    DNSSEC=false
    REV_SERVER=false
    DHCP_ACTIVE=true
    DHCP_START=10.15.0.50
    DHCP_END=10.15.0.150
    DHCP_ROUTER=10.15.0.5
    DHCP_LEASETIME=24
    PIHOLE_DOMAIN=lan
    DHCP_IPv6=false
    DHCP_rapid_commit=false
    REV_SERVER_CIDR=10.15.0.0/16
    REV_SERVER_TARGET=10.15.0.53
    REV_SERVER_DOMAIN=local
    PIHOLE_DNS_1=127.0.0.1#5335

*** [ DIAGNOSING ]: Dashboard and block page
[βœ—] Block page X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Content-type: text/html; charset=UTF-8
Expires: Mon, 29 Aug 2022 05:42:02 GMT
Cache-Control: max-age=0
Date: Mon, 29 Aug 2022 05:42:02 GMT
Server: lighttpd/1.4.59

[βœ“] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!

*** [ DIAGNOSING ]: Gravity Database
-rw-rw-r-- 1 pihole pihole 9,7M ago 29 01:00 /etc/pihole/gravity.db

*** [ DIAGNOSING ]: Info table
   property              value
   --------------------  ----------------------------------------
   version               15
   updated               1661745650
   gravity_count         136942
   Last gravity run finished at: seg 29 ago 2022 01:00:50 -03

   ----- First 10 Gravity Domains -----
   localhost.localdomain
   eu1.clevertap-prod.com
   wizhumpgyros.com
   coccyxwickimp.com
   webmail-who-int.000webhostapp.com
   010sec.com
   01mspmd5yalky8.com
   0byv9mgbn0.com
   ns6.0pendns.org
   dns.0pengl.com


*** [ DIAGNOSING ]: Groups
   id    enabled  name                                                date_added           date_modified        description
   ----  -------  --------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   0           1  Default                                             2022-08-29 01:00:47  2022-08-29 01:00:47  The default group

*** [ DIAGNOSING ]: Domainlist (0/1 = exact white-/blacklist, 2/3 = regex white-/blacklist)

*** [ DIAGNOSING ]: Clients

*** [ DIAGNOSING ]: Adlists
   id     enabled  group_ids     address                                                                                               date_added           date_modified        comment

   -----  -------  ------------  ----------------------------------------------------------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   1            1  0             https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts                                      2022-08-29 01:00:47  2022-08-29 01:00:47  Migrated from /etc/pihole/adlists.list

*** [ DIAGNOSING ]: contents of /etc/pihole

-rw-r--r-- 1 root root 0 ago 29 01:00 /etc/pihole/custom.list

-rw-r--r-- 1 root root 65 ago 29 01:00 /etc/pihole/local.list

-rw-r--r-- 1 root root 241 ago 29 01:00 /etc/pihole/logrotate
   /var/log/pihole/pihole.log {
        su root root
        daily
        copytruncate
        rotate 5
        compress
        delaycompress
        notifempty
        nomail
   }
   /var/log/pihole/FTL.log {
        su root root
        weekly
        copytruncate
        rotate 3
        compress
        delaycompress
        notifempty
        nomail
   }

-rw-rw-r-- 1 pihole root 146 ago 29 02:12 /etc/pihole/pihole-FTL.conf
   PRIVACYLEVEL=0
   RATE_LIMIT=1000/60

*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d

-rw-r--r-- 1 root root 1,5K ago 29 02:12 /etc/dnsmasq.d/01-pihole.conf
   addn-hosts=/etc/pihole/local.list
   addn-hosts=/etc/pihole/custom.list
   localise-queries
   no-resolv
   cache-size=10000
   log-queries
   log-facility=/var/log/pihole/pihole.log
   log-async
   dhcp-name-match=set:hostname-ignore,wpad
   dhcp-name-match=set:hostname-ignore,localhost
   dhcp-ignore-names=tag:hostname-ignore
   server=127.0.0.1#5335
   domain-needed
   expand-hosts
   bogus-priv
   local-service

-rw-r--r-- 1 root root 488 ago 29 02:12 /etc/dnsmasq.d/02-pihole-dhcp.conf
   dhcp-authoritative
   dhcp-range=10.15.0.50,10.15.0.150,24h
   dhcp-option=option:router,10.15.0.5
   dhcp-leasefile=/etc/pihole/dhcp.leases
   domain=lan
   local=/lan/

-rw-r--r-- 1 root root 51 ago 29 01:04 /etc/dnsmasq.d/04-pihole-static-dhcp.conf
   dhcp-host=E4:5F:01:64:AD:8E,10.15.0.53,raspberrypi

-rw-r--r-- 1 root root 2,2K ago 29 01:00 /etc/dnsmasq.d/06-rfc6761.conf
   server=/test/
   server=/localhost/
   server=/invalid/
   server=/bind/
   server=/onion/

*** [ DIAGNOSING ]: contents of /etc/lighttpd

-rw-r--r-- 1 root root 0 ago 29 01:00 /etc/lighttpd/external.conf

-rw-r--r-- 1 root root 3,9K ago 29 01:00 /etc/lighttpd/lighttpd.conf
   server.modules = (
       "mod_access",
       "mod_accesslog",
       "mod_auth",
       "mod_expire",
       "mod_redirect",
       "mod_setenv",
       "mod_rewrite"
   )
   server.document-root        = "/var/www/html"
   server.error-handler-404    = "/pihole/index.php"
   server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
   server.errorlog             = "/var/log/lighttpd/error-pihole.log"
   server.pid-file             = "/run/lighttpd.pid"
   server.username             = "www-data"
   server.groupname            = "www-data"
   server.port                 = 80
   accesslog.filename          = "/var/log/lighttpd/access-pihole.log"
   accesslog.format            = "%{%s}t|%V|%r|%s|%b"
   server.stream-response-body = 1
   index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
   url.access-deny             = ( "~", ".inc", ".md", ".yml", ".ini" )
   static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
   mimetype.assign = (
       ".ico"   => "image/x-icon",
       ".jpeg"  => "image/jpeg",
       ".jpg"   => "image/jpeg",
       ".png"   => "image/png",
       ".svg"   => "image/svg+xml",
       ".css"   => "text/css; charset=utf-8",
       ".html"  => "text/html; charset=utf-8",
       ".js"    => "text/javascript; charset=utf-8",
       ".json"  => "application/json; charset=utf-8",
       ".map"   => "application/json; charset=utf-8",
       ".txt"   => "text/plain; charset=utf-8",
       ".eot"   => "application/vnd.ms-fontobject",
       ".otf"   => "font/otf",
       ".ttc"   => "font/collection",
       ".ttf"   => "font/ttf",
       ".woff"  => "font/woff",
       ".woff2" => "font/woff2"
   )
   include_shell "cat external.conf 2>/dev/null"
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
' 2>/dev/null"
   $HTTP["url"] =~ "^/admin/" {
       setenv.add-response-header = (
           "X-Pi-hole" => "The Pi-hole Web interface is working!",
           "X-Frame-Options" => "DENY"
       )
   }
   $HTTP["url"] =~ "^/admin/\.(.*)" {
       url.access-deny = ("")
   }
   $HTTP["url"] =~ "/(teleporter|api_token)\.php$" {
       $HTTP["referer"] =~ "/admin/settings\.php" {
           setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
       }
   }
   expire.url = ( "" => "access plus 0 seconds" )

*** [ DIAGNOSING ]: contents of /etc/cron.d

-rw-r--r-- 1 root root 1,8K ago 29 01:00 /etc/cron.d/pihole
   44 4   * * 7   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole/pihole_updateGravity.log || cat /var/log/pihole/pihole_updateGravity.log
   00 00   * * *   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole flush once quiet
   @reboot root /usr/sbin/logrotate --state /var/lib/logrotate/pihole /etc/pihole/logrotate
   */10 *  * * *   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker local
   38 16  * * *   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker remote
   @reboot root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker remote reboot

*** [ DIAGNOSING ]: contents of /var/log/lighttpd

-rw-r--r-- 1 www-data www-data 69 ago 29 01:00 /var/log/lighttpd/error-pihole.log
   -----head of error-pihole.log------
   2022-08-29 01:00:43: server.c.1513) server started (lighttpd/1.4.59)

   -----tail of error-pihole.log------
   2022-08-29 01:00:43: server.c.1513) server started (lighttpd/1.4.59)

*** [ DIAGNOSING ]: contents of /var/log/pihole

-rw-r--r-- 1 pihole pihole 62K ago 29 02:41 /var/log/pihole/FTL.log
   -----head of FTL.log------
   [2022-08-29 01:00:46.697 21248M] Using log file /var/log/pihole/FTL.log
   [2022-08-29 01:00:46.697 21248M] ########## FTL started on raspberrypi! ##########
   [2022-08-29 01:00:46.697 21248M] FTL branch: master
   [2022-08-29 01:00:46.697 21248M] FTL version: v5.16.3
   [2022-08-29 01:00:46.697 21248M] FTL commit: 832b8c9
   [2022-08-29 01:00:46.697 21248M] FTL date: 2022-08-21 08:38:10 +0200
   [2022-08-29 01:00:46.697 21248M] FTL user: pihole
   [2022-08-29 01:00:46.697 21248M] Compiled for aarch64 (compiled on CI) using aarch64-linux-gnu-gcc (Debian 6.3.0-18) 6.3.0 20170516
   [2022-08-29 01:00:46.697 21248M] Creating mutex
   [2022-08-29 01:00:46.697 21248M] Creating mutex
   [2022-08-29 01:00:46.698 21248M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2022-08-29 01:00:46.698 21248M]    SOCKET_LISTENING: only local
   [2022-08-29 01:00:46.698 21248M]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2022-08-29 01:00:46.698 21248M]    MAXDBDAYS: max age for stored queries is 365 days
   [2022-08-29 01:00:46.698 21248M]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2022-08-29 01:00:46.698 21248M]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2022-08-29 01:00:46.698 21248M]    DBINTERVAL: saving to DB file every minute
   [2022-08-29 01:00:46.698 21248M]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2022-08-29 01:00:46.698 21248M]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2022-08-29 01:00:46.698 21248M]    PRIVACYLEVEL: Set to 0
   [2022-08-29 01:00:46.698 21248M]    IGNORE_LOCALHOST: Show queries from localhost
   [2022-08-29 01:00:46.699 21248M]    BLOCKINGMODE: Null IPs for blocked domains
   [2022-08-29 01:00:46.699 21248M]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
   [2022-08-29 01:00:46.699 21248M]    DBIMPORT: Importing history from database
   [2022-08-29 01:00:46.699 21248M]    PIDFILE: Using /run/pihole-FTL.pid
   [2022-08-29 01:00:46.699 21248M]    PORTFILE: Using /run/pihole-FTL.port
   [2022-08-29 01:00:46.699 21248M]    SOCKETFILE: Using /run/pihole/FTL.sock
   [2022-08-29 01:00:46.699 21248M]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2022-08-29 01:00:46.699 21248M]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2022-08-29 01:00:46.699 21248M]    GRAVITYDB: Using /etc/pihole/gravity.db
   [2022-08-29 01:00:46.699 21248M]    PARSE_ARP_CACHE: Active
   [2022-08-29 01:00:46.699 21248M]    CNAME_DEEP_INSPECT: Active
   [2022-08-29 01:00:46.699 21248M]    DELAY_STARTUP: No delay requested.
   [2022-08-29 01:00:46.699 21248M]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
   [2022-08-29 01:00:46.699 21248M]    NICE: Set process niceness to -10 (default)

   -----tail of FTL.log------
   [2022-08-29 02:12:13.126 27570M] Database version is 12
   [2022-08-29 02:12:13.126 27570M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 712.7KB used, 2.0GB total, FTL uses 700.8KB)
   [2022-08-29 02:12:13.126 27570M] Imported 0 alias-clients
   [2022-08-29 02:12:13.126 27570M] Database successfully initialized
   [2022-08-29 02:12:13.143 27570M] New upstream server: 8.8.8.8:53 (0/512)
   [2022-08-29 02:12:13.144 27570M] New upstream server: 127.0.0.1:5335 (1/512)
   [2022-08-29 02:12:13.153 27570M] New upstream server: 10.15.0.5:53 (2/512)
   [2022-08-29 02:12:13.174 27570M] Resizing "FTL-queries" from 229376 to (8192 * 56) == 458752 (/dev/shm: 753.7KB used, 2.0GB total, FTL uses 741.7KB)
   [2022-08-29 02:12:13.192 27570M] Imported 6873 queries from the long-term database
   [2022-08-29 02:12:13.193 27570M]  -> Total DNS queries: 6873
   [2022-08-29 02:12:13.193 27570M]  -> Cached DNS queries: 29
   [2022-08-29 02:12:13.193 27570M]  -> Forwarded DNS queries: 6825
   [2022-08-29 02:12:13.193 27570M]  -> Blocked DNS queries: 8
   [2022-08-29 02:12:13.193 27570M]  -> Unknown DNS queries: 0
   [2022-08-29 02:12:13.193 27570M]  -> Unique domains: 108
   [2022-08-29 02:12:13.193 27570M]  -> Unique clients: 7
   [2022-08-29 02:12:13.193 27570M]  -> Known forward destinations: 3
   [2022-08-29 02:12:13.193 27570M] Successfully accessed setupVars.conf
   [2022-08-29 02:12:13.194 27570M] listening on 0.0.0.0 port 53
   [2022-08-29 02:12:13.194 27570M] listening on :: port 53
   [2022-08-29 02:12:13.197 27572M] PID of FTL process: 27572
   [2022-08-29 02:12:13.198 27572M] Listening on port 4711 for incoming IPv4 telnet connections
   [2022-08-29 02:12:13.198 27572M] Listening on port 4711 for incoming IPv6 telnet connections
   [2022-08-29 02:12:13.199 27572M] Listening on port 4711 for incoming socket telnet connections
   [2022-08-29 02:12:13.200 27572M] INFO: FTL is running as user pihole (UID 999)
   [2022-08-29 02:12:13.200 27572M] Reloading DNS cache
   [2022-08-29 02:12:13.302 27572/T27588] Compiled 0 whitelist and 0 blacklist regex filters for 7 clients in 0.6 msec
   [2022-08-29 02:12:13.302 27572/T27588] Blocking status is enabled
   [2022-08-29 02:13:57.712 27572M] WARNING in dnsmasq core: no address range available for DHCP request via lo
   [2022-08-29 02:13:57.729 27572M] WARNING in dnsmasq core: not using configured address 10.15.0.53 because it is in use by the server or relay
   [2022-08-29 02:14:01.053 27572M] WARNING in dnsmasq core: DHCP packet received on wlan0 which has no address
   [2022-08-29 02:21:47.287 27572M] Resizing "FTL-queries" from 458752 to (12288 * 56) == 688128 (/dev/shm: 983.0KB used, 2.0GB total, FTL uses 971.1KB)
   [2022-08-29 02:41:52.027 27572M] WARNING in dnsmasq core: no address range available for DHCP request via lo
   [2022-08-29 02:41:52.049 27572M] WARNING in dnsmasq core: not using configured address 10.15.0.53 because it is in use by the server or relay
   [2022-08-29 02:41:55.389 27572M] WARNING in dnsmasq core: DHCP packet received on wlan0 which has no address

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 84K ago 29 02:12 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 244 ago 29 02:12 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 4,0K ago 29 02:12 /dev/shm/FTL-dns-cache
-rw------- 1 pihole pihole 12K ago 29 02:12 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 104 ago 29 02:12 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 8,0K ago 29 02:12 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 4,0K ago 29 02:12 /dev/shm/FTL-per-client-regex
-rw------- 1 pihole pihole 672K ago 29 02:40 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 ago 29 02:12 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 80K ago 29 02:12 /dev/shm/FTL-strings
-rw------- 1 pihole pihole 308K ago 29 02:12 /dev/shm/FTL-upstreams

*** [ DIAGNOSING ]: contents of /etc

-rw-r--r-- 1 root root 24 ago 29 01:00 /etc/dnsmasq.conf
   conf-dir=/etc/dnsmasq.d

-rw-r--r-- 1 root root 60 ago 29 02:24 /etc/resolv.conf
   domain Dlink
   nameserver 127.0.0.1

*** [ DIAGNOSING ]: Pi-hole diagnosis messages
   count   last timestamp       type                  message                                                       blob1                 blob2                 blob3                 blob4                 blob5
   ------  -------------------  --------------------  ------------------------------------------------------------  --------------------  --------------------  --------------------  --------------------  --------------------
   2       2022-08-29 02:41:55  DNSMASQ_WARN          DHCP packet received on wlan0 which has no address


   2       2022-08-29 02:41:52  DNSMASQ_WARN          no address range available for DHCP request via lo


   2       2022-08-29 02:41:52  DNSMASQ_WARN          not using configured address 10.15.0.53 because it is in use

                                                       by the server or relay


*** [ DIAGNOSING ]: Locale
    LANG=pt_BR.UTF-8

*** [ DIAGNOSING ]: Pi-hole log
-rw-r----- 1 pihole pihole 2,8M ago 29 02:42 /var/log/pihole/pihole.log
   -----head of pihole.log------
   Aug 29 01:00:47 dnsmasq[21250]: started, version pi-hole-2.87test8 cachesize 10000
   Aug 29 01:00:47 dnsmasq[21250]: DNS service limited to local subnets
   Aug 29 01:00:47 dnsmasq[21250]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n IDN DHCP DHCPv6 Lua TFTP no-conntrack ipset no-nftset auth cryptohash DNSSEC loop-detect inotify dumpfile
   Aug 29 01:00:47 dnsmasq[21250]: using nameserver 8.8.8.8#53
   Aug 29 01:00:47 dnsmasq[21250]: using nameserver 8.8.4.4#53
   Aug 29 01:00:47 dnsmasq[21250]: using only locally-known addresses for onion
   Aug 29 01:00:47 dnsmasq[21250]: using only locally-known addresses for bind
   Aug 29 01:00:47 dnsmasq[21250]: using only locally-known addresses for invalid
   Aug 29 01:00:47 dnsmasq[21250]: using only locally-known addresses for localhost
   Aug 29 01:00:47 dnsmasq[21250]: using only locally-known addresses for test
   Aug 29 01:00:47 dnsmasq[21250]: read /etc/hosts - 5 addresses
   Aug 29 01:00:47 dnsmasq[21250]: read /etc/pihole/custom.list - 0 addresses
   Aug 29 01:00:47 dnsmasq[21250]: failed to load names from /etc/pihole/local.list: Arquivo ou diretΓ³rio inexistente
   Aug 29 01:00:51 dnsmasq[21250]: read /etc/hosts - 5 addresses
   Aug 29 01:00:51 dnsmasq[21250]: read /etc/pihole/custom.list - 0 addresses
   Aug 29 01:00:51 dnsmasq[21250]: read /etc/pihole/local.list - 0 addresses
   Aug 29 01:02:07 dnsmasq[21250]: query[A] 0.debian.pool.ntp.org from 127.0.0.1
   Aug 29 01:02:07 dnsmasq[21250]: forwarded 0.debian.pool.ntp.org to 8.8.8.8
   Aug 29 01:02:07 dnsmasq[21250]: forwarded 0.debian.pool.ntp.org to 8.8.4.4
   Aug 29 01:02:07 dnsmasq[21250]: query[AAAA] 0.debian.pool.ntp.org from 127.0.0.1

   -----tail of pihole.log------
   Aug 29 02:41:49 dnsmasq[27572]: gravity blocked archswimming.com is ::
   Aug 29 02:41:49 dnsmasq[27572]: query[AAAA] archswimming.com from fe80::b848:bedc:b6b5:7b01
   Aug 29 02:41:49 dnsmasq[27572]: gravity blocked archswimming.com is ::
   Aug 29 02:41:52 dnsmasq-dhcp[27572]: no address range available for DHCP request via lo
   Aug 29 02:41:52 dnsmasq-dhcp[27572]: not using configured address 10.15.0.53 because it is in use by the server or relay
   Aug 29 02:41:52 dnsmasq[27572]: query[A] 2.debian.pool.ntp.org from 127.0.0.1
   Aug 29 02:41:52 dnsmasq[27572]: forwarded 2.debian.pool.ntp.org to 127.0.0.1#5335
   Aug 29 02:41:52 dnsmasq[27572]: query[AAAA] 2.debian.pool.ntp.org from 127.0.0.1
   Aug 29 02:41:52 dnsmasq[27572]: forwarded 2.debian.pool.ntp.org to 127.0.0.1#5335
   Aug 29 02:41:55 dnsmasq-dhcp[27572]: DHCPDISCOVER(eth0) e4:5f:01:64:ad:8e
   Aug 29 02:41:55 dnsmasq-dhcp[27572]: DHCPOFFER(eth0) 10.15.0.54 e4:5f:01:64:ad:8e
   Aug 29 02:41:55 dnsmasq-dhcp[27572]: DHCP packet received on wlan0 which has no address
   Aug 29 02:41:57 dnsmasq[27572]: query[A] 2.debian.pool.ntp.org.Dlink from 127.0.0.1
   Aug 29 02:41:57 dnsmasq[27572]: forwarded 2.debian.pool.ntp.org.Dlink to 127.0.0.1#5335
   Aug 29 02:41:57 dnsmasq[27572]: query[AAAA] 2.debian.pool.ntp.org.Dlink from 127.0.0.1
   Aug 29 02:41:57 dnsmasq[27572]: forwarded 2.debian.pool.ntp.org.Dlink to 127.0.0.1#5335
   Aug 29 02:42:02 dnsmasq[27572]: query[A] 2.debian.pool.ntp.org.Dlink from 127.0.0.1
   Aug 29 02:42:02 dnsmasq[27572]: forwarded 2.debian.pool.ntp.org.Dlink to 127.0.0.1#5335
   Aug 29 02:42:02 dnsmasq[27572]: query[AAAA] 2.debian.pool.ntp.org.Dlink from 127.0.0.1
   Aug 29 02:42:02 dnsmasq[27572]: forwarded 2.debian.pool.ntp.org.Dlink to 127.0.0.1#5335


********************************************
********************************************
[βœ“] ** FINISHED DEBUGGING! **

   * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.

[?] Would you like to upload the log? [y/N] y
    * Using curl for transmission.
    * curl failed, contact Pi-hole support for assistance.
    * Error message: curl: (6) Could not resolve host: tricorder.pi-hole.net

[βœ—]  There was an error uploading your debug log.
   * Please try again or contact the Pi-hole team for assistance.
   * A local copy of the debug log can be found at: /var/log/pihole/pihole_debug.log

As you can see I can't even send the debug log.

I disabled the DHCP server on my router and I'm using the Pi-hole as DHCP. I can acces the internet but all queries return with SERVFAIL.

My router ip is 10.15.0.5 and the DHCP range is 10.15.0.50 until 10.15.0.150. The raspberry ip is 10.15.0.53 (static)




What I'am doing wrong?

Please post the output of the following command from the Pi terminal:

sudo grep -v '#\|^$' -R /etc/unbound/unbound.conf*

Here's the output:

pi@raspberrypi:~ $ sudo grep -v '#\|^$' -R /etc/unbound/unbound.conf*
/etc/unbound/unbound.conf:include-toplevel: "/etc/unbound/unbound.conf.d/*.conf"
/etc/unbound/unbound.conf.d/pi-hole.conf:server:
/etc/unbound/unbound.conf.d/pi-hole.conf:    logfile: "/var/log/unbound/unbound.log"
/etc/unbound/unbound.conf.d/pi-hole.conf:    verbosity: 5
/etc/unbound/unbound.conf.d/pi-hole.conf:    interface: 127.0.0.1
/etc/unbound/unbound.conf.d/pi-hole.conf:    port: 5335
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip4: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-udp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-tcp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf:    prefer-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf:    harden-glue: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    harden-dnssec-stripped: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    use-caps-for-id: no
/etc/unbound/unbound.conf.d/pi-hole.conf:    edns-buffer-size: 1232
/etc/unbound/unbound.conf.d/pi-hole.conf:    prefetch: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    num-threads: 5
/etc/unbound/unbound.conf.d/pi-hole.conf:    so-rcvbuf: 1m
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 192.168.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 169.254.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 172.16.0.0/12
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 10.0.0.0/8
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: fd00::/8
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: fe80::/10
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf:server:
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf:    auto-trust-anchor-file: "/var/lib/unbound/root.key"

I tried to reinstall everything again and get the same error. Now if I leave de DNS server as 127.0.0.1#5335 I can't access internet.

Someone knows what to do?

Please provide the output for the following commands:

dig 1.debian.pool.ntp.org
dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5335
timedatectl

Afterwards, make sure that your RPi 4B has correct time and time zone information.

Here's the output for each command. I double checked time and date and they are correct.

dig 1.debian.pool.ntp.org

pi@raspberrypi:~ $ dig 1.debian.pool.ntp.org

; <<>> DiG 9.16.27-Raspbian <<>> 1.debian.pool.ntp.org
;; global options: +cmd
;; connection timed out; no servers could be reached

dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5335

pi@raspberrypi:~ $ dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5335

; <<>> DiG 9.16.27-Raspbian <<>> sigfail.verteiltesysteme.net @127.0.0.1 -p 5335
;; global options: +cmd
;; connection timed out; no servers could be reached

timedatectl

pi@raspberrypi:~ $ timedatectl
               Local time: qua 2022-08-31 12:22:57 -03
           Universal time: qua 2022-08-31 15:22:57 UTC
                 RTC time: n/a
                Time zone: America/Sao_Paulo (-03, -0300)
System clock synchronized: no
              NTP service: active
          RTC in local TZ: no

I also did DIG through google DNS and got response:

pi@raspberrypi:~ $ dig 1.debian.pool.ntp.org @8.8.8.8

; <<>> DiG 9.16.27-Raspbian <<>> 1.debian.pool.ntp.org @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36996
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;1.debian.pool.ntp.org.         IN      A

;; ANSWER SECTION:
1.debian.pool.ntp.org.  26      IN      A       79.174.188.236
1.debian.pool.ntp.org.  38      IN      A       77.37.138.237
1.debian.pool.ntp.org.  32      IN      A       195.91.239.8
1.debian.pool.ntp.org.  45      IN      A       192.36.143.130

;; Query time: 260 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Aug 31 12:25:34 -03 2022
;; MSG SIZE  rcvd: 114

EDIT: I rebooted the RPI and now when I run

dig 1.debian.pool.ntp.org

I got this response:

pi@raspberrypi:~ $ dig 1.debian.pool.ntp.org

; <<>> DiG 9.16.27-Raspbian <<>> 1.debian.pool.ntp.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51945
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;1.debian.pool.ntp.org.         IN      A

;; ANSWER SECTION:
1.debian.pool.ntp.org.  25      IN      A       194.190.168.1
1.debian.pool.ntp.org.  25      IN      A       217.195.85.20
1.debian.pool.ntp.org.  25      IN      A       5.183.147.2
1.debian.pool.ntp.org.  25      IN      A       62.231.6.98

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Aug 31 13:06:24 -03 2022
;; MSG SIZE  rcvd: 114

But if I try

dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5335

I still got connection timed out error.

Hi again,

I did the pi-hole update today and unbound start to working as expected, however when I config the pihole he stops.

When I look at the web interface I can see some warnings. DNSMASQ say:

Maximum number of concurrent DNS queries reached (max: 150)

I tried to add a new config file at /etc/dnsmasq.d folder but nothing changed.

When I config the pihole to use unbound he stops and all queries return with N/A status.

I don't know if the problem is the config file I create or no.

I just added a config file named lanconfig.conf, but when I configure the pihole the warning change to:

FTL failed to start due to bad option at line 1 of /etc/dnsmasq.d/lanconfig.conf

I put just one option in this file, --dns-forward-max=1000.

I think that if I can change this parameter I can finally use unbound, but I can't find what option I should put inside the config file.

Any thoughts about it?

1 Like

This may have contributed to your issue, and perhaps still does if that hasn't turned 'yes'.

unbound runs with DNSSEC enabled, and that requires accurate timing on your machine. If that isn't available, all DNSSEC validations will fail, and thus all DNS requests - including the one to the time server at 1.debian.pool.ntp.org, and that would prevent your RPi to sync time.

To allow your RPi to resolve time server domain names in order to sync time, you could add a public DNS resolver to your host system.
Currently, it is only using 127.0.0.1 (i.e. Pi-hole, and Pi-hole would then forward to unbound).

In all likelihood, that won't fix your issue.
Whatever misconfiguration leads to your system beig swamped with excessive requests will quickly saturate any amount of available concurrent connections again.

We'd have to find and eliminate the root cause.

As that dig is sent to unbound at port 5335 directly, Pi-hole wasn't involved at all, so that would suggest that your problem lies wih unbound.

The earlier grep that jfb asked you to run intended to reveal potential configuration issues with unbound.

It didn't turn up anything unusual then, but since ypi've altered and reinstalled things on your system, could you please rerun that?

Also, please provide a fresh debug token (which looks similar to https://tricorder.pi-hole.net/a1B2CdEf/).

I run timedatectl again and the sync are enabled.

pi@raspberrypi:~ $ timedatectl
               Local time: sΓ‘b 2022-09-03 12:46:10 -03
           Universal time: sΓ‘b 2022-09-03 15:46:10 UTC
                 RTC time: n/a
                Time zone: America/Sao_Paulo (-03, -0300)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Here's the grep command output:

pi@raspberrypi:~ $ sudo grep -v '#\|^$' -R /etc/unbound/unbound.conf*
/etc/unbound/unbound.conf:include-toplevel: "/etc/unbound/unbound.conf.d/*.conf"
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf:server:
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf:    auto-trust-anchor-file: "/var/lib/unbound/root.key"
/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf:forward-zone:
/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf:  name: "."
/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf:  forward-addr: 10.15.0.53
/etc/unbound/unbound.conf.d/pi-hole.conf:server:
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    logfile: "/var/log/unbound/unbound.log"
/etc/unbound/unbound.conf.d/pi-hole.conf:    verbosity: 5
/etc/unbound/unbound.conf.d/pi-hole.conf:    interface: 127.0.0.1
/etc/unbound/unbound.conf.d/pi-hole.conf:    port: 5335
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip4: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-udp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-tcp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    harden-glue: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    harden-dnssec-stripped: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    use-caps-for-id: no
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    edns-buffer-size: 1232
/etc/unbound/unbound.conf.d/pi-hole.conf:    prefetch: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    num-threads: 5
/etc/unbound/unbound.conf.d/pi-hole.conf:    so-rcvbuf: 5m
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 192.168.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 169.254.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 172.16.0.0/12
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 10.15.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: fd00::/8
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: fe80::/10

And here's the debug log: https://tricorder.pi-hole.net/f1eJS8md/

This is configuring unbound to forward its queries to Pi-hole, effectively closing a DNS loop.

You should remove that file:

  1. Edit file /etc/resolvconf.conf and comment out the last line which should then read:

#unbound_conf=/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf

  1. Delete the unwanted unbound configuration file:

sudo rm /etc/unbound/unbound.conf.d/resolvconf_resolvers.conf

  1. Restart unbound:

sudo service unbound restart

I did this and still not working.

pi@raspberrypi:~ $ grep -v '#\|^$' -R /etc/unbound/unbound.conf*
/etc/unbound/unbound.conf:include-toplevel: "/etc/unbound/unbound.conf.d/*.conf"
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf:server:
/etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf:    auto-trust-anchor-file: "/var/lib/unbound/root.key"
/etc/unbound/unbound.conf.d/pi-hole.conf:server:
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    logfile: "/var/log/unbound/unbound.log"
/etc/unbound/unbound.conf.d/pi-hole.conf:    verbosity: 5
/etc/unbound/unbound.conf.d/pi-hole.conf:    interface: 127.0.0.1
/etc/unbound/unbound.conf.d/pi-hole.conf:    port: 5335
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip4: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-udp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-tcp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    harden-glue: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    harden-dnssec-stripped: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    use-caps-for-id: no
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    edns-buffer-size: 1232
/etc/unbound/unbound.conf.d/pi-hole.conf:    prefetch: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    num-threads: 5
/etc/unbound/unbound.conf.d/pi-hole.conf:    so-rcvbuf: 5m
/etc/unbound/unbound.conf.d/pi-hole.conf:
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 192.168.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 169.254.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 172.16.0.0/12
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 10.15.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: fd00::/8
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: fe80::/10

Now when i try to run dig command again it gives SEVFAIL or Connection timed out:

pi@raspberrypi:~ $ dig pi-hole.net @127.0.0.1 -p 5335

; <<>> DiG 9.16.27-Raspbian <<>> pi-hole.net @127.0.0.1 -p 5335
;; global options: +cmd
;; connection timed out; no servers could be reached

pi@raspberrypi:~ $ dig pi-hole.net @127.0.0.1 -p 5335

; <<>> DiG 9.16.27-Raspbian <<>> pi-hole.net @127.0.0.1 -p 5335
;; global options: +cmd
;; connection timed out; no servers could be reached

pi@raspberrypi:~ $ dig pi-hole.net @127.0.0.1 -p 5335

; <<>> DiG 9.16.27-Raspbian <<>> pi-hole.net @127.0.0.1 -p 5335
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 53760
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;pi-hole.net.                   IN      A

;; Query time: 9 msec
;; SERVER: 127.0.0.1#5335(127.0.0.1)
;; WHEN: Sat Sep 03 14:23:30 -03 2022
;; MSG SIZE  rcvd: 40

pi@raspberrypi:~ $ dig pi-hole.net @127.0.0.1 -p 5335

; <<>> DiG 9.16.27-Raspbian <<>> pi-hole.net @127.0.0.1 -p 5335
;; global options: +cmd
;; connection timed out; no servers could be reached

That again demonstrates that your issue is with unbound.

Your pihole.conf config file for unbound shows some minor deviations from our recommended setup for num-threads: and so-rcvbuf: as well as verbosity:.

Since you also enabled the logfile:, did you verify unbound can write to that file?

What's the output of

tail /var/log/unbound/unbound.log
delv @127.0.0.1 -p 5335 +rtrace +multiline 1.debian.pool.ntp.org

I Increased the verbosity because of the issues, trying to find something that explain what's going on.
The num-threads and so-rcvbuf I increased because of the numbers of devices I have in my home network. I already change to the recommended setup.

The unbound log was huge and impossible to read so I reacreted, but before do that I save a copy.

Here's (part) of the Unbound log:

[1662226625] unbound[542:1] debug: cache memory msg=33040 rrset=33040 infra=6897 val=33196 subnet=41372
[1662226625] unbound[542:1] debug: svcd callbacks end
[1662226625] unbound[542:1] debug: serviced_delete
[1662226625] unbound[542:1] debug: close of port 34737
[1662226625] unbound[542:1] debug: comm_point_close of 42: event_del
[1662226625] unbound[542:1] debug: close fd 42
[1662226636] unbound[542:4] debug: timeout udp
[1662226636] unbound[542:4] debug: svcd callbacks start
[1662226636] unbound[542:4] debug: worker svcd callback for qstate 0xb35f4248
[1662226636] unbound[542:4] debug: mesh_run: start
[1662226636] unbound[542:4] debug: iterator[module 2] operate: extstate:module_wait_reply event:module_event_noreply
[1662226636] unbound[542:4] info: iterator operate: query . NS IN
[1662226636] unbound[542:4] debug: process_response: new external response event
[1662226636] unbound[542:4] debug: iter_handle processing q with state QUERY RESPONSE STATE
[1662226636] unbound[542:4] debug: query response was timeout
[1662226636] unbound[542:4] debug: iter_handle processing q with state QUERY TARGETS STATE
[1662226636] unbound[542:4] info: processQueryTargets: . NS IN
[1662226636] unbound[542:4] debug: processQueryTargets: targetqueries 0, currentqueries 0 sentcount 29
[1662226636] unbound[542:4] info: DelegationPoint<.>: 13 names (0 missing), 13 addrs (13 result, 0 avail) parentNS
[1662226636] unbound[542:4] info:   A.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   B.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   C.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   D.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   E.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   F.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   G.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   H.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   I.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   J.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   K.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   L.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] info:   M.ROOT-SERVERS.NET. * A
[1662226636] unbound[542:4] debug:    ip4 198.41.0.4 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 199.9.14.201 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 192.33.4.12 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 199.7.91.13 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 192.203.230.10 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 192.5.5.241 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 192.112.36.4 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 198.97.190.53 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 192.36.148.17 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 192.58.128.30 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 193.0.14.129 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 199.7.83.42 port 53 (len 16)
[1662226636] unbound[542:4] debug:    ip4 202.12.27.33 port 53 (len 16)
[1662226636] unbound[542:4] debug: servselect ip4 198.97.190.53 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=120000
[1662226636] unbound[542:4] debug: servselect ip4 199.7.83.42 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=12032
[1662226636] unbound[542:4] debug: servselect ip4 192.36.148.17 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=120000
[1662226636] unbound[542:4] debug: servselect ip4 192.203.230.10 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 199.9.14.201 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 199.7.91.13 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 193.0.14.129 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 198.41.0.4 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 192.33.4.12 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 192.58.128.30 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 192.112.36.4 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 192.5.5.241 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: servselect ip4 202.12.27.33 port 53 (len 16)
[1662226636] unbound[542:4] debug:    rtt=24064
[1662226636] unbound[542:4] debug: selrtt 12032
[1662226636] unbound[542:4] info: sending query: . NS IN
[1662226636] unbound[542:4] debug: sending to target: <.> 199.7.83.42#53
[1662226636] unbound[542:4] debug: dnssec status: expected
[1662226636] unbound[542:4] debug: EDNS lookup known=0 vs=0
[1662226636] unbound[542:4] debug: serviced query UDP timeout=12032 msec
[1662226636] unbound[542:4] debug: inserted new pending reply id=3e52
[1662226636] unbound[542:4] debug: opened UDP if=0 port=25625
[1662226636] unbound[542:4] debug: comm point start listening 42 (-1 msec)
[1662226636] unbound[542:4] debug: mesh_run: iterator module exit state is module_wait_reply
[1662226636] unbound[542:4] info: mesh_run: end 4 recursion states (3 with reply, 0 detached), 3 waiting replies, 0 recursion replies sent, 0 replies dropped, 0 states jostled out
[1662226636] unbound[542:4] info: 0pvCD mod2  . NS IN
[1662226636] unbound[542:4] info: 1RDdc mod2 rep pi-hole.net. A IN
[1662226636] unbound[542:4] info: 2RDdc mod2 rep pi-hole.net. A IN
[1662226636] unbound[542:4] info: 3RDdc mod2 rep pi-hole.net. A IN
[1662226636] unbound[542:4] debug: cache memory msg=33040 rrset=33040 infra=6897 val=33196 subnet=41372
[1662226636] unbound[542:4] debug: svcd callbacks end
[1662226636] unbound[542:4] debug: serviced_delete
[1662226636] unbound[542:4] debug: close of port 51404
[1662226636] unbound[542:4] debug: comm_point_close of 40: event_del
[1662226636] unbound[542:4] debug: close fd 40
[1662226637] unbound[542:1] debug: timeout udp
[1662226637] unbound[542:1] debug: svcd callbacks start
[1662226637] unbound[542:1] debug: worker svcd callback for qstate 0xb2cf8250
[1662226637] unbound[542:1] debug: mesh_run: start
[1662226637] unbound[542:1] debug: iterator[module 2] operate: extstate:module_wait_reply event:module_event_noreply
[1662226637] unbound[542:1] info: iterator operate: query . NS IN
[1662226637] unbound[542:1] debug: process_response: new external response event
[1662226637] unbound[542:1] debug: iter_handle processing q with state QUERY RESPONSE STATE
[1662226637] unbound[542:1] debug: query response was timeout
[1662226637] unbound[542:1] debug: iter_handle processing q with state QUERY TARGETS STATE
[1662226637] unbound[542:1] info: processQueryTargets: . NS IN
[1662226637] unbound[542:1] debug: processQueryTargets: targetqueries 0, currentqueries 0 sentcount 18
[1662226637] unbound[542:1] info: DelegationPoint<.>: 13 names (0 missing), 13 addrs (13 result, 0 avail) parentNS
[1662226637] unbound[542:1] info:   A.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   B.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   C.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   D.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   E.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   F.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   G.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   H.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   I.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   J.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   K.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   L.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] info:   M.ROOT-SERVERS.NET. * A
[1662226637] unbound[542:1] debug:    ip4 198.41.0.4 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 199.9.14.201 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 192.33.4.12 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 199.7.91.13 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 192.203.230.10 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 192.5.5.241 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 192.112.36.4 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 198.97.190.53 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 192.36.148.17 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 192.58.128.30 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 193.0.14.129 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 199.7.83.42 port 53 (len 16)
[1662226637] unbound[542:1] debug:    ip4 202.12.27.33 port 53 (len 16)
[1662226637] unbound[542:1] debug: servselect ip4 199.7.83.42 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=120000
[1662226637] unbound[542:1] debug: servselect ip4 192.36.148.17 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=120000
[1662226637] unbound[542:1] debug: servselect ip4 192.203.230.10 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 198.97.190.53 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=120000
[1662226637] unbound[542:1] debug: servselect ip4 193.0.14.129 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 199.9.14.201 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 192.33.4.12 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 199.7.91.13 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 192.58.128.30 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 198.41.0.4 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 192.5.5.241 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 192.112.36.4 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: servselect ip4 202.12.27.33 port 53 (len 16)
[1662226637] unbound[542:1] debug:    rtt=24064
[1662226637] unbound[542:1] debug: selrtt 24064
[1662226637] unbound[542:1] info: sending query: . NS IN
[1662226637] unbound[542:1] debug: sending to target: <.> 192.5.5.241#53
[1662226637] unbound[542:1] debug: dnssec status: expected
[1662226637] unbound[542:1] debug: EDNS lookup known=0 vs=0
[1662226637] unbound[542:1] debug: serviced query UDP timeout=24064 msec
[1662226637] unbound[542:1] debug: inserted new pending reply id=abb1
[1662226637] unbound[542:1] debug: opened UDP if=0 port=43381
[1662226637] unbound[542:1] debug: comm point start listening 40 (-1 msec)
[1662226637] unbound[542:1] debug: mesh_run: iterator module exit state is module_wait_reply
[1662226637] unbound[542:1] info: mesh_run: end 7 recursion states (6 with reply, 0 detached), 6 waiting replies, 6 recursion replies sent, 0 replies dropped, 0 states jostled out
[1662226637] unbound[542:1] info: average recursion processing time 36.039042 sec
[1662226637] unbound[542:1] info: histogram of recursion processing times
[1662226637] unbound[542:1] info: [25%]=24 median[50%]=32 [75%]=48
[1662226637] unbound[542:1] info: lower(secs) upper(secs) recursions
[1662226637] unbound[542:1] info:   16.000000   32.000000 3
[1662226637] unbound[542:1] info:   32.000000   64.000000 3
[1662226637] unbound[542:1] info: 0pvCD mod2  . NS IN
[1662226637] unbound[542:1] info: 1RDdc mod2 rep pi-hole.net. A IN
[1662226637] unbound[542:1] info: 2RDdc mod2 rep pi-hole.net. A IN
[1662226637] unbound[542:1] info: 3RDdc mod2 rep pi-hole.net. A IN
[1662226637] unbound[542:1] info: 4RDdc mod2 rep pi-hole.net. A IN
[1662226637] unbound[542:1] info: 5RDdc mod2 rep pi-hole.net. A IN
[1662226637] unbound[542:1] info: 6RDdc mod2 rep pi-hole.net. A IN
[1662226637] unbound[542:1] debug: cache memory msg=33040 rrset=33040 infra=6897 val=33196 subnet=41372
[1662226637] unbound[542:1] debug: svcd callbacks end
[1662226637] unbound[542:1] debug: serviced_delete
[1662226637] unbound[542:1] debug: close of port 7058
[1662226637] unbound[542:1] debug: comm_point_close of 41: event_del
[1662226637] unbound[542:1] debug: close fd 41
[1662226648] unbound[542:4] debug: timeout udp
[1662226648] unbound[542:4] debug: svcd callbacks start
[1662226648] unbound[542:4] debug: worker svcd callback for qstate 0xb35f4248
[1662226648] unbound[542:4] debug: mesh_run: start
[1662226648] unbound[542:4] debug: iterator[module 2] operate: extstate:module_wait_reply event:module_event_noreply
[1662226648] unbound[542:4] info: iterator operate: query . NS IN
[1662226648] unbound[542:4] debug: process_response: new external response event
[1662226648] unbound[542:4] debug: iter_handle processing q with state QUERY RESPONSE STATE
[1662226648] unbound[542:4] debug: query response was timeout
[1662226648] unbound[542:4] debug: iter_handle processing q with state QUERY TARGETS STATE
[1662226648] unbound[542:4] info: processQueryTargets: . NS IN
[1662226648] unbound[542:4] debug: processQueryTargets: targetqueries 0, currentqueries 0 sentcount 30
[1662226648] unbound[542:4] info: DelegationPoint<.>: 13 names (0 missing), 13 addrs (13 result, 0 avail) parentNS
[1662226648] unbound[542:4] info:   A.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   B.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   C.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   D.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   E.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   F.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   G.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   H.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   I.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   J.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   K.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   L.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] info:   M.ROOT-SERVERS.NET. * A
[1662226648] unbound[542:4] debug:    ip4 198.41.0.4 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 199.9.14.201 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 192.33.4.12 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 199.7.91.13 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 192.203.230.10 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 192.5.5.241 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 192.112.36.4 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 198.97.190.53 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 192.36.148.17 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 192.58.128.30 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 193.0.14.129 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 199.7.83.42 port 53 (len 16)
[1662226648] unbound[542:4] debug:    ip4 202.12.27.33 port 53 (len 16)
[1662226648] unbound[542:4] debug: servselect ip4 199.7.83.42 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=120000
[1662226648] unbound[542:4] debug: servselect ip4 198.97.190.53 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 192.36.148.17 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 192.203.230.10 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 199.9.14.201 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 199.7.91.13 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 193.0.14.129 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 198.41.0.4 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 192.33.4.12 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 192.58.128.30 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 192.112.36.4 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: servselect ip4 192.5.5.241 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=120000
[1662226648] unbound[542:4] debug: servselect ip4 202.12.27.33 port 53 (len 16)
[1662226648] unbound[542:4] debug:    rtt=24064
[1662226648] unbound[542:4] debug: selrtt 24064
[1662226648] unbound[542:4] info: sending query: . NS IN
[1662226648] unbound[542:4] debug: sending to target: <.> 192.112.36.4#53
[1662226648] unbound[542:4] debug: dnssec status: expected
[1662226648] unbound[542:4] debug: EDNS lookup known=0 vs=0
[1662226648] unbound[542:4] debug: serviced query UDP timeout=24064 msec
[1662226648] unbound[542:4] debug: inserted new pending reply id=f16d
[1662226648] unbound[542:4] debug: opened UDP if=0 port=13474
[1662226648] unbound[542:4] debug: comm point start listening 41 (-1 msec)
[1662226648] unbound[542:4] debug: mesh_run: iterator module exit state is module_wait_reply
[1662226648] unbound[542:4] info: mesh_run: end 4 recursion states (3 with reply, 0 detached), 3 waiting replies, 0 recursion replies sent, 0 replies dropped, 0 states jostled out
[1662226648] unbound[542:4] info: 0pvCD mod2  . NS IN
[1662226648] unbound[542:4] info: 1RDdc mod2 rep pi-hole.net. A IN
[1662226648] unbound[542:4] info: 2RDdc mod2 rep pi-hole.net. A IN
[1662226648] unbound[542:4] info: 3RDdc mod2 rep pi-hole.net. A IN
[1662226648] unbound[542:4] debug: cache memory msg=33040 rrset=33040 infra=6897 val=33196 subnet=41372
[1662226648] unbound[542:4] debug: svcd callbacks end
[1662226648] unbound[542:4] debug: serviced_delete
[1662226648] unbound[542:4] debug: close of port 25625
[1662226648] unbound[542:4] debug: comm_point_close of 42: event_del
[1662226648] unbound[542:4] debug: close fd 42

And the delv command:

pi@raspberrypi:~ $ delv @127.0.0.1 -p 5335 +rtrace +multiline 1.debian.pool.ntp.org
;; fetch: 1.debian.pool.ntp.org/A
;; resolution failed: timed out

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.