No response when dns query gets forwarded

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

Operating System : Ubuntu 16.04
Hardware: VM running in a freenas host
dns requests should be forwarded successfully and come back to the pi-hole server

Actual Behaviour:

dns request are forwarded, but no reponse is returned, i get the following log in pihole.log :

Jul 12 12:07:01 dnsmasq[5378]: query[A] google.com from 192.168.0.5
Jul 12 12:07:01 dnsmasq[5378]: forwarded google.com to 8.8.4.4
Jul 12 12:07:01 dnsmasq[5378]: forwarded google.com to 8.8.8.8
Jul 12 12:07:01 dnsmasq[5378]: query[type=65479] google.com from 192.168.0.5
Jul 12 12:07:01 dnsmasq[5378]: forwarded google.com to 8.8.4.4
Jul 12 12:07:01 dnsmasq[5378]: forwarded google.com to 8.8.8.8

I'm also seeing this line in diagnostics :

[✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)

Debug Token:

https://tricorder.pi-hole.net/av1arzx2cq

Thanks in advance

Here is the output when I generate 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] 2020-07-12:12:58:31 debug log has been initialized.

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

*** [ DIAGNOSING ]: Core version
[i] Core: v5.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v5.0-0-g4d25f69

*** [ DIAGNOSING ]: Web version
[i] Web: v5.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v5.0-0-gb86e4a3

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v5.0

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

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

*** [ DIAGNOSING ]: Operating system
[✓] Ubuntu 16.04.6 LTS

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

*** [ DIAGNOSING ]: Processor
[i] x86_64

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the enp0s4 interface:
   192.168.0.43/24 matches the IP found in /etc/pihole/setupVars.conf

[✓] IPv6 address(es) bound to the enp0s4 interface:
   fe80::2a0:98ff:fe50:e366 does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)

   ^ Please note that you may have more than one IP address listed.
   As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.

   The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.

[i] Default IPv4 gateway: 192.168.0.1
   * Pinging 192.168.0.1...
[✓] Gateway responded.

*** [ DIAGNOSING ]: Ports in use
[80] is in use by lighttpd
[80] is in use by lighttpd
[53] is in use by pihole-FTL
[53] is in use by pihole-FTL
[4711] is in use by pihole-FTL
[4711] is in use by pihole-FTL
*:22 sshd (IPv4)
*:22 sshd (IPv6)

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] tfiytdiytdiytfdiytfitfd.000webhostapp.com is 0.0.0.0 via localhost (127.0.0.1)
[✓] tfiytdiytdiytfdiytfitfd.000webhostapp.com is 0.0.0.0 via Pi-hole (192.168.0.43)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Pi-hole processes
[✓] lighttpd daemon is active
[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Setup variables
    DHCP_START=192.168.0.2
    DHCP_END=192.168.0.254
    DHCP_ROUTER=192.168.0.1
    DHCP_LEASETIME=24
    PIHOLE_DOMAIN=lan
    DHCP_IPv6=true
    DHCP_rapid_commit=true
    BLOCKING_ENABLED=true
    DHCP_ACTIVE=false
    DNSMASQ_LISTENING=all
    DNS_FQDN_REQUIRED=true
    DNS_BOGUS_PRIV=true
    DNSSEC=false
    CONDITIONAL_FORWARDING=false
    PIHOLE_INTERFACE=enp0s4
    IPV4_ADDRESS=192.168.0.43/24
    IPV6_ADDRESS=
    PIHOLE_DNS_1=8.8.8.8
    PIHOLE_DNS_2=8.8.4.4
    QUERY_LOGGING=true
    INSTALL_WEB_SERVER=true
    INSTALL_WEB_INTERFACE=true
    LIGHTTPD_ENABLED=true

*** [ DIAGNOSING ]: Dashboard and block page
[✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
[✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!

*** [ DIAGNOSING ]: Gravity List and Database
-rw-rw-r-- 1 pihole pihole 5221376 Jul 12 11:36 /etc/pihole/gravity.db

*** [ DIAGNOSING ]: Info table
   property              value                                   
   --------------------  ----------------------------------------
   version               12                                      
   updated               1594578972                              
   gravity_count         84466                                   
   Last gravity run finished at: Sun Jul 12 11:36:12 PDT 2020

   ----- First 10 Gravity Domains -----
   localhost.localdomain
   01mspmd5yalky8.com
   0byv9mgbn0.com
   analytics.247sports.com
   www.analytics.247sports.com
   2no.co
   www.2no.co
   logitechlogitechglobal.112.2o7.net
   www.logitechlogitechglobal.112.2o7.net
   30-day-change.com


*** [ DIAGNOSING ]: Groups
   id    enabled  name                                                date_added           date_modified        description                                       
   ----  -------  --------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   0           1  Default                                             2020-07-12 10:19:57  2020-07-12 10:19:57  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                                      2020-07-12 10:19:57  2020-07-12 10:19:57  Migrated from /etc/pihole/adlists.list            
   2           1  0             https://mirror1.malwaredomains.com/files/justdomains                                                  2020-07-12 10:19:57  2020-07-12 10:19:57  Migrated from /etc/pihole/adlists.list            
   3           1  0             https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt                                      2020-07-12 10:19:57  2020-07-12 10:19:57  Migrated from /etc/pihole/adlists.list            
   4           1  0             https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt                                            2020-07-12 10:19:57  2020-07-12 10:19:57  Migrated from /etc/pihole/adlists.list            

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

-rw-r--r-- 1 root root 41 Jul 12 11:36 /etc/pihole/local.list
   192.168.0.43 pihole
   192.168.0.43 pi.hole

-rw-r--r-- 1 root root 238 Jul 12 11:36 /etc/pihole/logrotate
   /var/log/pihole.log {
   	su root syslog
   	daily
   	copytruncate
   	rotate 5
   	compress
   	delaycompress
   	notifempty
   	nomail
   }
   /var/log/pihole-FTL.log {
   	su root syslog
   	weekly
   	copytruncate
   	rotate 3
   	compress
   	delaycompress
   	notifempty
   	nomail
   }

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

-rw-r--r-- 1 root root 1424 Jul 12 11:36 /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.log
   local-ttl=2
   log-async
   server=8.8.8.8
   server=8.8.4.4
   domain-needed
   bogus-priv
   except-interface=nonexisting
   server=/use-application-dns.net/

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

-rw-r--r-- 1 root root 3499 Jul 12 11:36 /etc/lighttpd/lighttpd.conf
   server.modules = (
   	"mod_access",
   	"mod_accesslog",
   	"mod_auth",
   	"mod_expire",
   	"mod_compress",
   	"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.log"
   server.pid-file             = "/var/run/lighttpd.pid"
   server.username             = "www-data"
   server.groupname            = "www-data"
   server.port                 = 80
   accesslog.filename          = "/var/log/lighttpd/access.log"
   accesslog.format            = "%{%s}t|%V|%r|%s|%b"
   index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
   url.access-deny             = ( "~", ".inc", ".md", ".yml", ".ini" )
   static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
   compress.cache-dir          = "/var/cache/lighttpd/compress/"
   compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
   mimetype.assign   = ( ".png"  => "image/png",
                         ".jpg"  => "image/jpeg",
                         ".jpeg" => "image/jpeg",
                         ".html" => "text/html",
                         ".css" => "text/css; charset=utf-8",
                         ".js" => "application/javascript",
                         ".json" => "application/json",
                         ".txt"  => "text/plain",
                         ".svg"  => "image/svg+xml" )
   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"] =~ ".ttf$" {
           
           setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
       }
   }
   $HTTP["url"] =~ "^/admin/\.(.*)" {
        url.access-deny = ("")
   }
   include_shell "cat external.conf 2>/dev/null"

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

-rw-r--r-- 1 root root 1703 Jul 12 11:36 /etc/cron.d/pihole
   5 4   * * 7   root    PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
   00 00   * * *   root    PATH="$PATH:/usr/local/bin/" pihole flush once quiet
   @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
   */10 *  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker local
   46 12  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
   @reboot root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot

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

-rw-r--r-- 1 www-data www-data 5185 Jul 12 12:58 /var/log/lighttpd/error.log
   2020-07-12 10:19:45: (log.c.164) server started 
   2020-07-12 10:19:54: (server.c.1558) server stopped by UID = 0 PID = 1 
   2020-07-12 10:19:55: (log.c.164) server started 
   2020-07-12 10:25:05: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 10:25:05: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
   2020-07-12 10:26:19: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  fopen(/etc/pihole/custom.list): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/customdns.php on line 33
   2020-07-12 10:33:48: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 10:33:48: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
   2020-07-12 11:07:50: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  fopen(/etc/pihole/custom.list): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/customdns.php on line 33
   2020-07-12 11:30:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 11:30:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
   2020-07-12 11:30:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 11:30:20: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
   2020-07-12 11:32:04: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 11:32:04: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
   2020-07-12 11:32:04: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 11:32:04: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
   2020-07-12 11:34:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 11:34:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
   2020-07-12 11:34:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 11:34:57: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
   2020-07-12 11:36:07: (server.c.1558) server stopped by UID = 0 PID = 1 
   2020-07-12 11:36:08: (log.c.164) server started 
   2020-07-12 11:54:06: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
   2020-07-12 11:54:06: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206

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

-rw-r--r-- 1 pihole pihole 33005 Jul 12 11:37 /var/log/pihole-FTL.log
   -----head of pihole-FTL.log------
   [2020-07-12 10:19:55.802 26588] Using log file /var/log/pihole-FTL.log
   [2020-07-12 10:19:55.802 26588] ########## FTL started! ##########
   [2020-07-12 10:19:55.802 26588] FTL branch: master
   [2020-07-12 10:19:55.802 26588] FTL version: v5.0
   [2020-07-12 10:19:55.802 26588] FTL commit: 3d7c095
   [2020-07-12 10:19:55.802 26588] FTL date: 2020-05-10 18:58:38 +0100
   [2020-07-12 10:19:55.802 26588] FTL user: pihole
   [2020-07-12 10:19:55.802 26588] Compiled for x86_64 (compiled on CI) using gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
   [2020-07-12 10:19:55.802 26588] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2020-07-12 10:19:55.802 26588]    SOCKET_LISTENING: only local
   [2020-07-12 10:19:55.802 26588]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2020-07-12 10:19:55.802 26588]    MAXDBDAYS: max age for stored queries is 365 days
   [2020-07-12 10:19:55.802 26588]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2020-07-12 10:19:55.802 26588]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2020-07-12 10:19:55.802 26588]    DBINTERVAL: saving to DB file every minute
   [2020-07-12 10:19:55.802 26588]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2020-07-12 10:19:55.802 26588]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2020-07-12 10:19:55.802 26588]    PRIVACYLEVEL: Set to 0
   [2020-07-12 10:19:55.802 26588]    IGNORE_LOCALHOST: Show queries from localhost
   [2020-07-12 10:19:55.802 26588]    BLOCKINGMODE: Null IPs for blocked domains
   [2020-07-12 10:19:55.802 26588]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
   [2020-07-12 10:19:55.802 26588]    DBIMPORT: Importing history from database
   [2020-07-12 10:19:55.802 26588]    PIDFILE: Using /var/run/pihole-FTL.pid
   [2020-07-12 10:19:55.802 26588]    PORTFILE: Using /var/run/pihole-FTL.port
   [2020-07-12 10:19:55.802 26588]    SOCKETFILE: Using /var/run/pihole/FTL.sock
   [2020-07-12 10:19:55.802 26588]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2020-07-12 10:19:55.802 26588]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2020-07-12 10:19:55.802 26588]    GRAVITYDB: Using /etc/pihole/gravity.db
   [2020-07-12 10:19:55.802 26588]    PARSE_ARP_CACHE: Active
   [2020-07-12 10:19:55.802 26588]    CNAME_DEEP_INSPECT: Active
   [2020-07-12 10:19:55.802 26588]    DELAY_STARTUP: No delay requested.
   [2020-07-12 10:19:55.802 26588]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
   [2020-07-12 10:19:55.802 26588] Finished config file parsing
   [2020-07-12 10:19:55.802 26588] No database file found, creating new (empty) database
   [2020-07-12 10:19:57.123 26588] Database version is 3

   -----tail of pihole-FTL.log------
   [2020-07-12 11:36:08.538 5376]    DELAY_STARTUP: No delay requested.
   [2020-07-12 11:36:08.538 5376]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
   [2020-07-12 11:36:08.538 5376] Finished config file parsing
   [2020-07-12 11:36:08.538 5376] Database version is 5
   [2020-07-12 11:36:08.539 5376] Database successfully initialized
   [2020-07-12 11:36:08.539 5376] New upstream server: 8.8.4.4 (0/128)
   [2020-07-12 11:36:08.542 5376] Resizing "/FTL-queries" from 262144 to 524288
   [2020-07-12 11:36:08.542 5376] Resizing "/FTL-strings" from 4096 to 8192
   [2020-07-12 11:36:08.546 5376] Resizing "/FTL-queries" from 524288 to 786432
   [2020-07-12 11:36:08.548 5376] Imported 9588 queries from the long-term database
   [2020-07-12 11:36:08.548 5376]  -> Total DNS queries: 9588
   [2020-07-12 11:36:08.548 5376]  -> Cached DNS queries: 16
   [2020-07-12 11:36:08.548 5376]  -> Forwarded DNS queries: 9418
   [2020-07-12 11:36:08.548 5376]  -> Blocked DNS queries: 154
   [2020-07-12 11:36:08.548 5376]  -> Unknown DNS queries: 0
   [2020-07-12 11:36:08.548 5376]  -> Unique domains: 255
   [2020-07-12 11:36:08.548 5376]  -> Unique clients: 6
   [2020-07-12 11:36:08.548 5376]  -> Known forward destinations: 1
   [2020-07-12 11:36:08.548 5376] Successfully accessed setupVars.conf
   [2020-07-12 11:36:08.549 5378] PID of FTL process: 5378
   [2020-07-12 11:36:08.549 5378] Listening on port 4711 for incoming IPv4 telnet connections
   [2020-07-12 11:36:08.550 5378] Listening on port 4711 for incoming IPv6 telnet connections
   [2020-07-12 11:36:08.550 5378] Listening on Unix socket
   [2020-07-12 11:36:08.550 5378] Reloading DNS cache
   [2020-07-12 11:36:08.550 5378] Blocking status is enabled
   [2020-07-12 11:36:08.553 5378] INFO: No regex blacklist entries found
   [2020-07-12 11:36:08.554 5378] INFO: No regex whitelist entries found
   [2020-07-12 11:36:08.554 5378] Compiled 0 whitelist and 0 blacklist regex filters in 0.6 msec
   [2020-07-12 11:36:12.480 5378] Reloading DNS cache
   [2020-07-12 11:36:12.480 5378] Blocking status is enabled
   [2020-07-12 11:36:12.480 5378] SQLite3 message: file unlinked while open: /etc/pihole/gravity.db (28)
   [2020-07-12 11:36:12.481 5378] INFO: No regex blacklist entries found
   [2020-07-12 11:36:12.482 5378] INFO: No regex whitelist entries found
   [2020-07-12 11:36:12.482 5378] Compiled 0 whitelist and 0 blacklist regex filters in 0.6 msec
   [2020-07-12 11:37:09.953 5378] New upstream server: 8.8.8.8 (1/128)

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 20480 Jul 12 11:36 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 124 Jul 12 11:36 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 4096 Jul 12 11:36 /dev/shm/FTL-dns-cache
-rw------- 1 pihole pihole 98304 Jul 12 11:36 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 48 Jul 12 11:36 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 12288 Jul 12 11:36 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 4096 Jul 12 11:36 /dev/shm/FTL-per-client-regex
-rw------- 1 pihole pihole 786432 Jul 12 11:36 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Jul 12 11:36 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 8192 Jul 12 11:36 /dev/shm/FTL-strings
-rw------- 1 pihole pihole 4096 Jul 12 11:36 /dev/shm/FTL-upstreams

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

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 2663559 Jul 12 12:58 /var/log/pihole.log
   -----head of pihole.log------
   Jul 12 10:19:57 dnsmasq[26590]: started, version pi-hole-2.81 cachesize 10000
   Jul 12 10:19:57 dnsmasq[26590]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify dumpfile
   Jul 12 10:19:57 dnsmasq[26590]: using only locally-known addresses for domain use-application-dns.net
   Jul 12 10:19:57 dnsmasq[26590]: using nameserver 8.8.4.4#53
   Jul 12 10:19:57 dnsmasq[26590]: using nameserver 8.8.8.8#53
   Jul 12 10:19:57 dnsmasq[26590]: read /etc/hosts - 5 addresses
   Jul 12 10:19:57 dnsmasq[26590]: failed to load names from /etc/pihole/custom.list: No such file or directory
   Jul 12 10:19:57 dnsmasq[26590]: failed to load names from /etc/pihole/local.list: No such file or directory
   Jul 12 10:20:00 dnsmasq[26590]: read /etc/hosts - 5 addresses
   Jul 12 10:20:00 dnsmasq[26590]: failed to load names from /etc/pihole/custom.list: No such file or directory
   Jul 12 10:20:00 dnsmasq[26590]: read /etc/pihole/local.list - 2 addresses
   Jul 12 10:20:00 dnsmasq[26590]: read /etc/hosts - 5 addresses
   Jul 12 10:20:00 dnsmasq[26590]: failed to load names from /etc/pihole/custom.list: No such file or directory
   Jul 12 10:20:00 dnsmasq[26590]: read /etc/pihole/local.list - 2 addresses
   Jul 12 10:42:22 dnsmasq[26590]: exiting on receipt of SIGTERM
   Jul 12 10:42:22 dnsmasq[28744]: started, version pi-hole-2.81 cachesize 10000
   Jul 12 10:42:22 dnsmasq[28744]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify dumpfile
   Jul 12 10:42:22 dnsmasq-dhcp[28744]: DHCP, IP range 192.168.0.2 -- 192.168.0.254, lease time 1d
   Jul 12 10:42:22 dnsmasq[28744]: using only locally-known addresses for domain use-application-dns.net
   Jul 12 10:42:22 dnsmasq[28744]: using nameserver 8.8.4.4#53


********************************************
********************************************
[✓] ** FINISHED DEBUGGING! **

    * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
    * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
    * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.

    * Log will NOT be uploaded to tricorder.

Do you have any firewall rules preventing pihole from accessing 8.8.8.8 on port 53?

That got me thinking, i went on the pi-hole and tried to run this :

simon@pihole:~$ dig @8.8.8.8 google.com

; <<>> DiG 9.10.3-P4-Ubuntu <<>> @8.8.8.8 google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

when I run the same thing but asking my router (the default gateway), I get this :

simon@pihole:~$ dig google.com

; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58248
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		16	IN	A	172.217.14.238

;; Query time: 4 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sun Jul 12 13:17:39 PDT 2020
;; MSG SIZE  rcvd: 55

So it looks, like can't query other dns servers than my router.

Went on my router and it looks like dns query on port 53 were blocked both ways. I disabled that rule and now everything works perfectly. Thank you!

1 Like

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