Installed Pi-hole but No DNS Resolution (Ubuntu 18.04.1)

ubuntu

#1

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

Expected Behaviour:

Able to ping www.google.com from Ubuntu 18.4.

Actual Behaviour:

Unable to resolve any DNS names but able to perfectly ping 8.8.8.8 & 8.8.4.4.

root@pizza:~# pihole uninstall

  [?] Are you sure you would like to remove Pi-hole? [y/N] y
  [✓] Root user check
  [i] Existing PHP installation detected : PHP version 7.2.7-0ubuntu0.18.04.2
  [i] Be sure to confirm if any dependencies should not be removed
  [i] The following dependencies may have been added by the Pi-hole install:
    apt-utils dialog debconf dhcpcd5 git iproute2 whiptail bc cron curl dnsutils iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data resolvconf lighttpd php7.2-common php7.2-cgi php7.2-sqlite3
  [?] Do you wish to go through each dependency for removal? (Choosing No will leave all dependencies installed) [Y/n] Y

  [?] Do you wish to remove apt-utils from your system? [Y/N] Y
  [i] Removing apt-utils...

root@pizza:~#

Debug Token:

root@pizza1:~# cat /var/log/pihole_debug-sanitized.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] 2018-09-12:23:27:00 debug log has been initialized.

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

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

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

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v4.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)

*** [ DIAGNOSING ]: dnsmasq version
[i] 2.79

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

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

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

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

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

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

[✓] IPv6 address(es) bound to the eno1 interface:
   fe80::94de:5c1a:33ba:8939 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.1.1
   * Pinging 192.168.1.1...
[✓] Gateway responded.

*** [ DIAGNOSING ]: Ports in use
*:111 rpcbind (IPv4)
*:111 rpcbind (IPv6)
*:80 lighttpd (IPv4)
*:80 lighttpd (IPv6)
*:22 sshd (IPv4)
*:8181 python (IPv4)

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve wmedia.rotator.hadj7.adjuggler.net via localhost (127.0.0.1)
[✗] Failed to resolve wmedia.rotator.hadj7.adjuggler.net via Pi-hole (192.168.1.201)
[✓] doubleclick.com is 108.177.122.113 via a remote, public DNS server (8.8.8.8)

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

*** [ DIAGNOSING ]: Setup variables
    PIHOLE_INTERFACE=eno1
    IPV4_ADDRESS=192.168.1.201/24
    IPV6_ADDRESS=
    QUERY_LOGGING=true
    INSTALL_WEB_SERVER=true
    INSTALL_WEB_INTERFACE=true
    LIGHTTPD_ENABLED=true
    TEMPERATUREUNIT=F
    WEBUIBOXEDLAYOUT=boxed
    DNSMASQ_LISTENING=single
    PIHOLE_DNS_1=8.8.8.8
    PIHOLE_DNS_2=8.8.4.4
    DNS_FQDN_REQUIRED=true
    DNS_BOGUS_PRIV=true
    DNSSEC=false
    CONDITIONAL_FORWARDING=false

*** [ 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
-rw-r--r-- 1 root root 3046249 Sep  9 03:44 /etc/pihole/gravity.list
   -----head of gravity.list------
   0.0.0.0
   0.r.msn.com
   0.start.bz
   000.0x1f4b0.com

   -----tail of gravity.list------
   zzz.clickbank.net
   zzzezeroe.fr
   zzzpooeaz-france.com
   zzzrtrcm2.com

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

-rw-r--r-- 1 root root 381 Aug 25 15:41 /etc/pihole/adlists.list
   https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
   https://mirror1.malwaredomains.com/files/justdomains
   http://sysctl.org/cameleon/hosts
   https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
   https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
   https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
   https://hosts-file.net/ad_servers.txt

-rw-r--r-- 1 root root 91 Sep  6 12:39 /etc/pihole/blacklist.txt
   spectrum.s3.amazonaws.com
   kindle-time.amazon.com
   dns.msftncsi.com
   ro20.ru
   graph.oculus.com

-rw-r--r-- 1 root root 43 Sep  9 03:44 /etc/pihole/local.list
   192.168.1.201 pizza1
   192.168.1.201 pi.hole

-rw-r--r-- 1 root root 238 Aug 25 15:42 /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
   }

-rw-r--r-- 1 root root 0 Sep  6 12:36 /etc/pihole/whitelist.txt

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

-rw-r--r-- 1 root root 1533 Sep 11 21:16 /etc/dnsmasq.d/01-pihole.conf
   addn-hosts=/etc/pihole/gravity.list
   addn-hosts=/etc/pihole/black.list
   addn-hosts=/etc/pihole/local.list
   localise-queries
   no-resolv
   cache-size=10000
   log-queries=extra
   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
   interface=eno1

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

-rw-r--r-- 1 root root 3027 Aug 25 15:42 /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" )
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   include_shell "/usr/share/lighttpd/create-mime.assign.pl"
   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 1496 Aug 25 15:42 /etc/cron.d/pihole
   44 3   * * 7   root    PATH="$PATH:/usr/local/bin/" pihole updateGravity
   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
   57 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 4199 Sep 12 23:19 /var/log/lighttpd/error.log
   2018-09-10 06:25:02: (server.c.1534) logfiles cycled UID = 0 PID = 8757
   2018-09-10 10:59:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  dns_get_record(): A temporary server error occurred. in /var/www/html/pihole/index.php on line 193
   2018-09-10 10:59:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 194
   2018-09-10 10:59:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  dns_get_record(): A temporary server error occurred. in /var/www/html/pihole/index.php on line 193
   2018-09-10 10:59:15: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 194
   2018-09-10 11:18:25: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
   2018-09-10 11:19:01: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 72
   2018-09-10 11:19:18: (server.c.1828) server stopped by UID = 0 PID = 1
   2018-09-10 12:11:54: (log.c.217) server started
   2018-09-11 00:12:13: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  dns_get_record(): A temporary server error occurred. in /var/www/html/pihole/index.php on line 193
   2018-09-11 00:12:13: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 194
   2018-09-11 05:20:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  dns_get_record(): A temporary server error occurred. in /var/www/html/pihole/index.php on line 193
   2018-09-11 05:20:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 194
   2018-09-11 15:22:04: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  dns_get_record(): A temporary server error occurred. in /var/www/html/pihole/index.php on line 193
   2018-09-11 15:22:04: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 194
   2018-09-11 20:44:38: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
   2018-09-11 20:46:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
   2018-09-11 20:55:56: (server.c.1828) server stopped by UID = 0 PID = 1
   2018-09-11 20:56:28: (log.c.217) server started
   2018-09-11 21:09:38: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
   2018-09-11 21:10:36: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
   2018-09-11 21:12:48: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
   2018-09-11 21:16:37: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  unlink(../custom_disable_timer): No such file or directory in /var/www/html/admin/api.php on line 47
   2018-09-11 23:24:31: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/pihole/index.php on line 10
   2018-09-12 08:24:43: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning:  dns_get_record(): A temporary server error occurred. in /var/www/html/pihole/index.php on line 193

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

-rw-r--r-- 1 pihole pihole 3940 Sep 12 23:19 /var/log/pihole-FTL.log
   -----head of pihole-FTL.log------
   [2018-09-12 22:47:49.793] ########## FTL started! ##########
   [2018-09-12 22:47:49.793] FTL branch:
   [2018-09-12 22:47:49.793] FTL version: v4.0
   [2018-09-12 22:47:49.793] FTL commit: 8493df4
   [2018-09-12 22:47:49.793] FTL date: 2018-08-05 13:40:30 -0700
   [2018-09-12 22:47:49.793] FTL user: pihole
   [2018-09-12 22:47:49.794] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2018-09-12 22:47:49.794]    SOCKET_LISTENING: only local
   [2018-09-12 22:47:49.794]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2018-09-12 22:47:49.794]    MAXDBDAYS: max age for stored queries is 365 days
   [2018-09-12 22:47:49.794]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2018-09-12 22:47:49.794]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2018-09-12 22:47:49.794]    DBINTERVAL: saving to DB file every minute
   [2018-09-12 22:47:49.794]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2018-09-12 22:47:49.794]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2018-09-12 22:47:49.794]    PRIVACYLEVEL: Set to 0
   [2018-09-12 22:47:49.794]    IGNORE_LOCALHOST: Show queries from localhost
   [2018-09-12 22:47:49.794]    BLOCKINGMODE: Null IPs for blocked domains
   [2018-09-12 22:47:49.794]    REGEX_DEBUGMODE: Inactive
   [2018-09-12 22:47:49.794] Finished config file parsing
   [2018-09-12 22:47:49.794] Compiled 0 Regex filters and 0 whitelisted domains in 0.0 msec (0 errors)
   [2018-09-12 22:47:49.869] Database successfully initialized
   [2018-09-12 22:47:49.870] Imported 0 queries from the long-term database
   [2018-09-12 22:47:49.870]  -> Total DNS queries: 0
   [2018-09-12 22:47:49.870]  -> Cached DNS queries: 0
   [2018-09-12 22:47:49.870]  -> Forwarded DNS queries: 0
   [2018-09-12 22:47:49.870]  -> Exactly blocked DNS queries: 0
   [2018-09-12 22:47:49.870]  -> Unknown DNS queries: 0
   [2018-09-12 22:47:49.870]  -> Unique domains: 0
   [2018-09-12 22:47:49.870]  -> Unique clients: 0
   [2018-09-12 22:47:49.870]  -> Known forward destinations: 0
   [2018-09-12 22:47:49.870] Successfully accessed setupVars.conf
   [2018-09-12 23:19:09.977] ########## FTL started! ##########
   [2018-09-12 23:19:09.978] FTL branch:
   [2018-09-12 23:19:09.978] FTL version: v4.0

   -----tail of pihole-FTL.log------
   [2018-09-12 22:47:49.870]  -> Unique clients: 0
   [2018-09-12 22:47:49.870]  -> Known forward destinations: 0
   [2018-09-12 22:47:49.870] Successfully accessed setupVars.conf
   [2018-09-12 23:19:09.977] ########## FTL started! ##########
   [2018-09-12 23:19:09.978] FTL branch:
   [2018-09-12 23:19:09.978] FTL version: v4.0
   [2018-09-12 23:19:09.978] FTL commit: 8493df4
   [2018-09-12 23:19:09.978] FTL date: 2018-08-05 13:40:30 -0700
   [2018-09-12 23:19:09.978] FTL user: pihole
   [2018-09-12 23:19:09.978] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2018-09-12 23:19:09.978]    SOCKET_LISTENING: only local
   [2018-09-12 23:19:09.978]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2018-09-12 23:19:09.978]    MAXDBDAYS: max age for stored queries is 365 days
   [2018-09-12 23:19:09.978]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2018-09-12 23:19:09.978]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2018-09-12 23:19:09.978]    DBINTERVAL: saving to DB file every minute
   [2018-09-12 23:19:09.978]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2018-09-12 23:19:09.978]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2018-09-12 23:19:09.978]    PRIVACYLEVEL: Set to 0
   [2018-09-12 23:19:09.978]    IGNORE_LOCALHOST: Show queries from localhost
   [2018-09-12 23:19:09.978]    BLOCKINGMODE: Null IPs for blocked domains
   [2018-09-12 23:19:09.978]    REGEX_DEBUGMODE: Inactive
   [2018-09-12 23:19:09.978] Finished config file parsing
   [2018-09-12 23:19:09.978] Compiled 0 Regex filters and 0 whitelisted domains in 0.0 msec (0 errors)
   [2018-09-12 23:19:09.978] Database successfully initialized
   [2018-09-12 23:19:09.979] Imported 0 queries from the long-term database
   [2018-09-12 23:19:09.979]  -> Total DNS queries: 0
   [2018-09-12 23:19:09.979]  -> Cached DNS queries: 0
   [2018-09-12 23:19:09.979]  -> Forwarded DNS queries: 0
   [2018-09-12 23:19:09.979]  -> Exactly blocked DNS queries: 0
   [2018-09-12 23:19:09.979]  -> Unknown DNS queries: 0
   [2018-09-12 23:19:09.979]  -> Unique domains: 0
   [2018-09-12 23:19:09.979]  -> Unique clients: 0
   [2018-09-12 23:19:09.979]  -> Known forward destinations: 0
   [2018-09-12 23:19:09.979] Successfully accessed setupVars.conf

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

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 0 Sep 12 23:19 /var/log/pihole.log
   -----head of pihole.log------

DNS resolution is not available (Ubuntu 18.04.1)
DNS resolution is not available (Ubuntu 18.04.1)
#2

What is the output of these commands?

sudo service pihole-FTL restart
sudo service pihole-FTL status

#3

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