dns service is not running
when i check dsmasq.service : root@aml:~# sudo service dnsmasq status Unit dnsmasq.service could not be found.
I checked log file but i don't have more information about the problem
In V4 of Pi-Hole, dnsmasq code is included in pihole-FTL and dnsmasq no longer runs as a separate process. The debug log will show dnsmasq as "inactive" or "failed", this is normal.
However, your debug log shows that pihole-FTL is also not running - it should be running on ports 53 and 4711.
*** [ DIAGNOSING ]: Ports in use
*:22 sshd (IPv4)
*:22 sshd (IPv6)
*:80 lighttpd (IPv4)
*:80 lighttpd (IPv6)
This causes the DNS resolution errors shown in your debug log:
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve adserverec.adtechus.com via localhost (127.0.0.1)
[✗] Failed to resolve adserverec.adtechus.com via Pi-hole (192.168.1.35)
[✓] doubleclick.com is 172.217.18.206 via a remote, public DNS server (8.8.8.8)
What are the outputs of the following commands run from the terminal on the Pi-Hole host:
_root@aml:~# sudo service pihole-FTL status_
_● pihole-FTL.service - LSB: pihole-FTL daemon_
_ Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)_
_ Active: active (exited) since Tue 2018-10-23 21:16:15 UTC; 1min 50s ago_
_ Docs: man:systemd-sysv-generator(8)_
_ Process: 1729 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)_
_ Tasks: 0 (limit: 4915)_
_ CGroup: /system.slice/pihole-FTL.service_
_Oct 23 21:16:13 aml pihole-FTL[1729]: Not running_
_Oct 23 21:16:13 aml pihole-FTL[1729]: chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory_
_Oct 23 21:16:13 aml pihole-FTL[1729]: Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)_
_Oct 23 21:16:13 aml pihole-FTL[1729]: The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file_
_Oct 23 21:16:13 aml pihole-FTL[1729]: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /etc/resolvconf/run/resolv.conf_
_Oct 23 21:16:13 aml su[1827]: Successful su for pihole by root_
_Oct 23 21:16:13 aml su[1827]: + ??? root:pihole_
_Oct 23 21:16:13 aml su[1827]: pam_unix(su:session): session opened for user pihole by (uid=0)_
_Oct 23 21:16:15 aml pihole-FTL[1729]: dnsmasq: failed to create listening socket for port 53: Permission denied_
_Oct 23 21:16:15 aml systemd[1]: Started LSB: pihole-FTL daemon._
cat /var/log/pihole-FTL.log
_root@aml:~# cat /var/log/pihole-FTL.log_
_[2018-10-23 15:44:24.140] ########## FTL started! ##########_
_[2018-10-23 15:44:24.140] FTL branch:_
_[2018-10-23 15:44:24.140] FTL version: v4.0_
_[2018-10-23 15:44:24.140] FTL commit: 8493df4_
_[2018-10-23 15:44:24.140] FTL date: 2018-08-05 13:40:30 -0700_
_[2018-10-23 15:44:24.140] FTL user: pihole_
_[2018-10-23 15:44:24.140] Starting config file parsing (/etc/pihole/pihole-FTL.conf)_
_[2018-10-23 15:44:24.140] SOCKET_LISTENING: only local_
_[2018-10-23 15:44:24.140] AAAA_QUERY_ANALYSIS: Show AAAA queries_
_[2018-10-23 15:44:24.140] MAXDBDAYS: max age for stored queries is 365 days_
_[2018-10-23 15:44:24.140] RESOLVE_IPV6: Resolve IPv6 addresses_
_[2018-10-23 15:44:24.140] RESOLVE_IPV4: Resolve IPv4 addresses_
_[2018-10-23 15:44:24.140] DBINTERVAL: saving to DB file every minute_
_[2018-10-23 15:44:24.140] DBFILE: Using /etc/pihole/pihole-FTL.db_
_[2018-10-23 15:44:24.140] MAXLOGAGE: Importing up to 24.0 hours of log data_
_[2018-10-23 15:44:24.140] PRIVACYLEVEL: Set to 0_
_[2018-10-23 15:44:24.140] IGNORE_LOCALHOST: Show queries from localhost_
_[2018-10-23 15:44:24.140] BLOCKINGMODE: Null IPs for blocked domains_
_[2018-10-23 15:44:24.140] REGEX_DEBUGMODE: Inactive_
_[2018-10-23 15:44:24.140] Finished config file parsing_
_[2018-10-23 15:44:24.141] INFO: No whitelist file found_
_[2018-10-23 15:44:24.141] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)_
_[2018-10-23 15:44:24.141] db_init() - Cannot open database (14): unable to open database file_
_[2018-10-23 15:44:24.141] Creating new (empty) database_
_[2018-10-23 15:44:24.353] Database successfully initialized_
_[2018-10-23 15:44:24.353] Imported 0 queries from the long-term database_
_[2018-10-23 15:44:24.354] -> Total DNS queries: 0_
_[2018-10-23 15:44:24.354] -> Cached DNS queries: 0_
_[2018-10-23 15:44:24.354] -> Forwarded DNS queries: 0_
_[2018-10-23 15:44:24.354] -> Exactly blocked DNS queries: 0_
_[2018-10-23 15:44:24.354] -> Unknown DNS queries: 0_
_[2018-10-23 15:44:24.354] -> Unique domains: 0_
_[2018-10-23 15:44:24.354] -> Unique clients: 0_
_[2018-10-23 15:44:24.354] -> Known forward destinations: 0_
_[2018-10-23 15:44:24.354] Successfully accessed setupVars.conf_
_[2018-10-23 15:49:38.368] ########## FTL started! ##########_
_[2018-10-23 15:49:38.368] FTL branch:_
_[2018-10-23 15:49:38.368] FTL version: v4.0_
_[2018-10-23 15:49:38.368] FTL commit: 8493df4_
_[2018-10-23 15:49:38.369] FTL date: 2018-08-05 13:40:30 -0700_
_[2018-10-23 15:49:38.369] FTL user: pihole_
_[2018-10-23 15:49:38.369] Starting config file parsing (/etc/pihole/pihole-FTL.conf)_
_[2018-10-23 15:49:38.369] SOCKET_LISTENING: only local_
_[2018-10-23 15:49:38.369] AAAA_QUERY_ANALYSIS: Show AAAA queries_
_[2018-10-23 15:49:38.369] MAXDBDAYS: max age for stored queries is 365 days_
_[2018-10-23 15:49:38.369] RESOLVE_IPV6: Resolve IPv6 addresses_
_[2018-10-23 15:49:38.369] RESOLVE_IPV4: Resolve IPv4 addresses_
_[2018-10-23 15:49:38.369] DBINTERVAL: saving to DB file every minute_
_[2018-10-23 15:49:38.369] DBFILE: Using /etc/pihole/pihole-FTL.db_
_[2018-10-23 15:49:38.369] MAXLOGAGE: Importing up to 24.0 hours of log data_
_[2018-10-23 15:49:38.369] PRIVACYLEVEL: Set to 0_
_[2018-10-23 15:49:38.369] IGNORE_LOCALHOST: Show queries from localhost_
_[2018-10-23 15:49:38.369] BLOCKINGMODE: Null IPs for blocked domains_
_[2018-10-23 15:49:38.369] REGEX_DEBUGMODE: Inactive_
_[2018-10-23 15:49:38.369] Finished config file parsing_
_[2018-10-23 15:49:38.369] INFO: No whitelist file found_
_[2018-10-23 15:49:38.369] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)_
_[2018-10-23 15:49:38.371] Database successfully initialized_
_[2018-10-23 15:49:38.372] Imported 0 queries from the long-term database_
_[2018-10-23 15:49:38.372] -> Total DNS queries: 0_
_[2018-10-23 15:49:38.372] -> Cached DNS queries: 0_
_[2018-10-23 15:49:38.372] -> Forwarded DNS queries: 0_
_[2018-10-23 15:49:38.372] -> Exactly blocked DNS queries: 0_
_[2018-10-23 15:49:38.372] -> Unknown DNS queries: 0_
_[2018-10-23 15:49:38.372] -> Unique domains: 0_
_[2018-10-23 15:49:38.372] -> Unique clients: 0_
_[2018-10-23 15:49:38.372] -> Known forward destinations: 0_
_[2018-10-23 15:49:38.372] Successfully accessed setupVars.conf_
_[2018-10-23 15:56:38.345] ########## FTL started! ##########_
_[2018-10-23 15:56:38.345] FTL branch:_
_[2018-10-23 15:56:38.345] FTL version: v4.0_
_[2018-10-23 15:56:38.345] FTL commit: 8493df4_
_[2018-10-23 15:56:38.345] FTL date: 2018-08-05 13:40:30 -0700_
_[2018-10-23 15:56:38.345] FTL user: pihole_
_[2018-10-23 15:56:38.349] Starting config file parsing (/etc/pihole/pihole-FTL.conf)_
_[2018-10-23 15:56:38.350] SOCKET_LISTENING: only local_
_[2018-10-23 15:56:38.350] AAAA_QUERY_ANALYSIS: Show AAAA queries_
_[2018-10-23 15:56:38.350] MAXDBDAYS: max age for stored queries is 365 days_
_[2018-10-23 15:56:38.350] RESOLVE_IPV6: Resolve IPv6 addresses_
_[2018-10-23 15:56:38.350] RESOLVE_IPV4: Resolve IPv4 addresses_
_[2018-10-23 15:56:38.350] DBINTERVAL: saving to DB file every minute_
_[2018-10-23 15:56:38.350] DBFILE: Using /etc/pihole/pihole-FTL.db_
_[2018-10-23 15:56:38.350] MAXLOGAGE: Importing up to 24.0 hours of log data_
_[2018-10-23 15:56:38.350] PRIVACYLEVEL: Set to 0_
_[2018-10-23 15:56:38.350] IGNORE_LOCALHOST: Show queries from localhost_
_[2018-10-23 15:56:38.350] BLOCKINGMODE: Null IPs for blocked domains_
_[2018-10-23 15:56:38.350] REGEX_DEBUGMODE: Inactive_
_[2018-10-23 15:56:38.350] Finished config file parsing_
_[2018-10-23 15:56:38.351] INFO: No whitelist file found_
_[2018-10-23 15:56:38.351] Compiled 0 Regex filters and -1 whitelisted domains in 0.3 msec (0 errors)_
_[2018-10-23 15:56:38.412] Database successfully initialized_
_[2018-10-23 15:56:38.414] Imported 0 queries from the long-term database_
_[2018-10-23 15:56:38.414] -> Total DNS queries: 0_
_[2018-10-23 15:56:38.414] -> Cached DNS queries: 0_
_[2018-10-23 15:56:38.414] -> Forwarded DNS queries: 0_
_[2018-10-23 15:56:38.414] -> Exactly blocked DNS queries: 0_
_[2018-10-23 15:56:38.414] -> Unknown DNS queries: 0_
_[2018-10-23 15:56:38.414] -> Unique domains: 0_
_[2018-10-23 15:56:38.414] -> Unique clients: 0_
_[2018-10-23 15:56:38.414] -> Known forward destinations: 0_
_[2018-10-23 15:56:38.414] Successfully accessed setupVars.conf_
_[2018-10-23 21:16:15.390] ########## FTL started! ##########_
_[2018-10-23 21:16:15.390] FTL branch:_
_[2018-10-23 21:16:15.390] FTL version: v4.0_
_[2018-10-23 21:16:15.390] FTL commit: 8493df4_
_[2018-10-23 21:16:15.390] FTL date: 2018-08-05 13:40:30 -0700_
_[2018-10-23 21:16:15.391] FTL user: pihole_
_[2018-10-23 21:16:15.395] Starting config file parsing (/etc/pihole/pihole-FTL.conf)_
_[2018-10-23 21:16:15.395] SOCKET_LISTENING: only local_
_[2018-10-23 21:16:15.396] AAAA_QUERY_ANALYSIS: Show AAAA queries_
_[2018-10-23 21:16:15.396] MAXDBDAYS: max age for stored queries is 365 days_
_[2018-10-23 21:16:15.396] RESOLVE_IPV6: Resolve IPv6 addresses_
_[2018-10-23 21:16:15.396] RESOLVE_IPV4: Resolve IPv4 addresses_
_[2018-10-23 21:16:15.396] DBINTERVAL: saving to DB file every minute_
_[2018-10-23 21:16:15.396] DBFILE: Using /etc/pihole/pihole-FTL.db_
_[2018-10-23 21:16:15.396] MAXLOGAGE: Importing up to 24.0 hours of log data_
_[2018-10-23 21:16:15.396] PRIVACYLEVEL: Set to 0_
_[2018-10-23 21:16:15.396] IGNORE_LOCALHOST: Show queries from localhost_
_[2018-10-23 21:16:15.396] BLOCKINGMODE: Null IPs for blocked domains_
_[2018-10-23 21:16:15.396] REGEX_DEBUGMODE: Inactive_
_[2018-10-23 21:16:15.396] Finished config file parsing_
_[2018-10-23 21:16:15.397] INFO: No whitelist file found_
_[2018-10-23 21:16:15.397] Compiled 0 Regex filters and -1 whitelisted domains in 0.4 msec (0 errors)_
_[2018-10-23 21:16:15.449] Database successfully initialized_
_[2018-10-23 21:16:15.450] Imported 0 queries from the long-term database_
_[2018-10-23 21:16:15.451] -> Total DNS queries: 0_
_[2018-10-23 21:16:15.451] -> Cached DNS queries: 0_
_[2018-10-23 21:16:15.451] -> Forwarded DNS queries: 0_
_[2018-10-23 21:16:15.451] -> Exactly blocked DNS queries: 0_
_[2018-10-23 21:16:15.451] -> Unknown DNS queries: 0_
_[2018-10-23 21:16:15.451] -> Unique domains: 0_
_[2018-10-23 21:16:15.451] -> Unique clients: 0_
_[2018-10-23 21:16:15.451] -> Known forward destinations: 0_
_[2018-10-23 21:16:15.451] Successfully accessed setupVars.conf_