[✗] DNS service is NOT running

Hi, I tried an installation through DietPi Launcher and also tried standard installation as outlined in Github. However, both times I get "[✗] DNS service is NOT running." I have unbound installed and changed to 127.0.0.1#5335 DNS in Pi-hole settings.

Currently, I have Pi-hole installed the standard way.

Expected Behaviour:

Installation completes with DNS server not running

Actual Behaviour:

DNS is not running, Pihole not blocking

Debug Token:

https://tricorder.pi-hole.net/8STjFuCg/)

From your debug log:

[2022-01-27 11:30:10.178 7050M] FATAL ERROR in dnsmasq core: bad option at line 1 of /etc/dnsmasq.d/99-edns.conf

This is the line in the file, and it is not a valid dnsmasq configuration:

dig pi-hole.net @127.0.0.1 -p 5335

root@Pi-hole:/etc/dnsmasq.d# cat 99-edns.conf 
edns-packet-max=1232

I followed this guide to add unbound unbound - Pi-hole documentation
However, DNS service hasn't been working right since installation as I got this message at the end of installation:
[✗] DNS service is NOT running

Sorry, that was my mistake. I did a command and pasted the wrong content into the file. I corrected this but that didn't fix the DNS service.

Please generate a new debug log and post the new token.

Here it is:
https://tricorder.pi-hole.net/FVBVWGne/

You have multiple DHCP servers, and each is offering a different DNS. Only one of the three DNS servers is Pi-hole.

*** [ DIAGNOSING ]: Discovering active DHCP servers (takes 10 seconds)
   Scanning all your interfaces for DHCP servers
   Timeout: 10 seconds
   
   * Received 548 bytes from eth0:192.168.1.1
     Offered IP address: 192.168.1.57
     Server IP address: N/A
     Relay-agent IP address: N/A
     BOOTP server: (empty)
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 192.168.1.1
      lease-time: 86400 ( 1d )
      netmask: 255.255.255.0
      router: 192.168.1.1
      dns-server: 192.168.1.1
      --- end of options ---
    
   * Received 300 bytes from eth0:192.168.1.37
     Offered IP address: 192.168.1.115
     Server IP address: 192.168.1.37
     Relay-agent IP address: N/A
     BOOTP server: (empty)
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 192.168.1.37
      lease-time: 600 ( 10m )
      netmask: 255.255.255.0
      router: 192.168.1.1
      dns-server: 192.168.1.2
      dns-server: 192.168.1.3
      domain-name: "ubuntu.com"
      --- end of options ---
*** [ DIAGNOSING ]: Setup variables
   ...
    PIHOLE_INTERFACE=eth0
    IPV4_ADDRESS=192.168.1.2/24

Please restart FTL with the following command - sudo service pihole-FTL restart

Then post all the lines from /var/log/pihole-FTL.log starting with the following line at the time you restarted FTL:

[2022-01-27 11:54:32.057 15577M] Shutting down...

1 Like

Thank you so much! I was surprised to see that indeed I still have a DHCP server on my Ubuntu server even though I uninstalled. I found the solution to correctly uninstall the DHCP server here

The weird thing is that package manager tells " ```
Note, selecting 'isc-dhcp-server' instead of 'dhcp3-server' even though I did "apt install dhcp3-server". I didn't read that when I issued the command. Found that out in help forum.


DNS service is working now :) 

PS: I feel sorry I wasted time here but without you I might have found out the problem much later. I appreciate your quick reply.

========================================================================

root@Pi-hole:/Pi-hole# cat /var/log/pihole-FTL.log 

[2022-01-27 14:38:42.078 12644M]    NAMES_FROM_NETDB: Enabled, trying to get names from network database
[2022-01-27 14:38:42.079 12644M]    EDNS0_ECS: Overwrite client from ECS information
[2022-01-27 14:38:42.079 12644M]    REFRESH_HOSTNAMES: Periodically refreshing IPv4 names
[2022-01-27 14:38:42.079 12644M]    RATE_LIMIT: Rate-limiting client making more than 1000 queries in 60 seconds
[2022-01-27 14:38:42.079 12644M]    REPLY_ADDR4: Automatic interface-dependent detection of address
[2022-01-27 14:38:42.079 12644M]    REPLY_ADDR6: Automatic interface-dependent detection of address
[2022-01-27 14:38:42.079 12644M]    SHOW_DNSSEC: Enabled, showing automatically generated DNSSEC queries
[2022-01-27 14:38:42.079 12644M]    MOZILLA_CANARY: Enabled
[2022-01-27 14:38:42.079 12644M]    PIHOLE_PTR: internal PTR generation enabled (pi.hole)
[2022-01-27 14:38:42.079 12644M]    ADDR2LINE: Enabled
[2022-01-27 14:38:42.079 12644M]    REPLY_WHEN_BUSY: Permit queries when the database is busy
[2022-01-27 14:38:42.079 12644M]    BLOCK_TTL: 2 seconds
[2022-01-27 14:38:42.080 12644M]    BLOCK_ICLOUD_PR: Enabled
[2022-01-27 14:38:42.080 12644M]    CHECK_LOAD: Enabled
[2022-01-27 14:38:42.080 12644M]    CHECK_SHMEM: Warning if shared-memory usage exceeds 90%
[2022-01-27 14:38:42.080 12644M]    CHECK_DISK: Warning if certain disk usage exceeds 90%
[2022-01-27 14:38:42.080 12644M] Finished config file parsing
[2022-01-27 14:38:42.083 12644M] Database version is 9
[2022-01-27 14:38:42.083 12644M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 1.1MB used, 124.9MB total, FTL uses 1.1MB)
[2022-01-27 14:38:42.084 12644M] Imported 0 alias-clients
[2022-01-27 14:38:42.084 12644M] Database successfully initialized
[2022-01-27 14:38:42.100 12644M] New upstream server: 127.0.0.1:5335 (0/256)
[2022-01-27 14:38:42.103 12644M] New upstream server: 192.168.1.1:53 (1/256)
[2022-01-27 14:38:42.106 12644M] Imported 9 queries from the long-term database
[2022-01-27 14:38:42.106 12644M]  -> Total DNS queries: 9
[2022-01-27 14:38:42.106 12644M]  -> Cached DNS queries: 0
[2022-01-27 14:38:42.106 12644M]  -> Forwarded DNS queries: 9
[2022-01-27 14:38:42.106 12644M]  -> Blocked DNS queries: 0
[2022-01-27 14:38:42.107 12644M]  -> Unknown DNS queries: 0
[2022-01-27 14:38:42.107 12644M]  -> Unique domains: 4
[2022-01-27 14:38:42.107 12644M]  -> Unique clients: 3
[2022-01-27 14:38:42.107 12644M]  -> Known forward destinations: 2
[2022-01-27 14:38:42.107 12644M] Successfully accessed setupVars.conf
[2022-01-27 14:38:42.109 12644M] listening on 0.0.0.0 port 53
[2022-01-27 14:38:42.109 12644M] listening on :: port 53
[2022-01-27 14:38:42.117 12646M] PID of FTL process: 12646
[2022-01-27 14:38:42.119 12646M] INFO: FTL is running as user pihole (UID 998)
[2022-01-27 14:38:42.119 12646/T12649] Listening on Unix socket
[2022-01-27 14:38:42.120 12646/T12647] Listening on port 4711 for incoming IPv4 telnet connections
[2022-01-27 14:38:42.120 12646M] Reloading DNS cache
[2022-01-27 14:38:42.121 12646/T12648] Listening on port 4711 for incoming IPv6 telnet connections
[2022-01-27 14:38:42.807 12646M] Blocking status is enabled
[2022-01-27 14:38:43.136 12646/T12650] Compiled 0 whitelist and 0 blacklist regex filters for 4 clients in 2.1 msec
[2022-01-27 14:54:28.512 12646M] Resizing "FTL-dns-cache" from 4096 to (512 * 16) == 8192 (/dev/shm: 1.1MB used, 124.9MB total, FTL uses 1.1MB)
[2022-01-27 14:54:49.423 12646M] Resizing "FTL-dns-cache" from 8192 to (768 * 16) == 12288 (/dev/shm: 1.1MB used, 124.9MB total, FTL uses 1.1MB)
[2022-01-27 14:54:49.817 12646M] Resizing "FTL-domains" from 4096 to (512 * 16) == 8192 (/dev/shm: 1.2MB used, 124.9MB total, FTL uses 1.1MB)
[2022-01-27 14:54:59.372 12646M] Received: Real-time signal 0 (34 -> 0)
[2022-01-27 14:54:59.719 12646/T12650] Compiled 0 whitelist and 0 blacklist regex filters for 10 clients in 1.9 msec
[2022-01-27 14:55:00.942 12646M] Blocking status is enabled
[2022-01-27 14:55:07.588 12646M] Received: Real-time signal 0 (34 -> 0)
[2022-01-27 14:55:08.005 12646/T12650] Compiled 0 whitelist and 0 blacklist regex filters for 10 clients in 1.8 msec
[2022-01-27 14:55:08.023 12646M] Blocking status is enabled
[2022-01-27 14:56:17.012 12646M] Shutting down...
[2022-01-27 14:56:17.285 12646M] Finished final database update (stored 12 queries)
[2022-01-27 14:56:17.286 12646M] Waiting for threads to join
[2022-01-27 14:56:17.286 12646M] Thread telnet-IPv4 (0) is idle, terminating it.
[2022-01-27 14:56:17.287 12646M] Thread telnet-IPv6 (1) is idle, terminating it.
[2022-01-27 14:56:17.287 12646M] Thread telnet-socket (2) is idle, terminating it.
[2022-01-27 14:56:17.288 12646M] Thread database (3) is idle, terminating it.
[2022-01-27 14:56:17.289 12646M] Thread housekeeper (4) is idle, terminating it.
[2022-01-27 14:56:17.289 12646M] Thread DNS client (5) is idle, terminating it.
[2022-01-27 14:56:17.290 12646M] All threads joined
[2022-01-27 14:56:17.294 12646M] ########## FTL terminated after 17m 35s  (code 0)! ##########
[2022-01-27 14:56:18.409 15701M] Using log file /var/log/pihole-FTL.log
[2022-01-27 14:56:18.409 15701M] ########## FTL started on Pi-hole! ##########
[2022-01-27 14:56:18.409 15701M] FTL branch: master
[2022-01-27 14:56:18.409 15701M] FTL version: v5.13
[2022-01-27 14:56:18.409 15701M] FTL commit: b197b69
[2022-01-27 14:56:18.410 15701M] FTL date: 2022-01-05 18:19:34 +0000
[2022-01-27 14:56:18.410 15701M] FTL user: pihole
[2022-01-27 14:56:18.410 15701M] Compiled for armv7hf (compiled on CI) using arm-linux-gnueabihf-gcc (Debian 6.3.0-18) 6.3.0 20170516
[2022-01-27 14:56:18.410 15701M] Creating mutex
[2022-01-27 14:56:18.410 15701M] Creating mutex
[2022-01-27 14:56:18.414 15701M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2022-01-27 14:56:18.414 15701M]    SOCKET_LISTENING: only local
[2022-01-27 14:56:18.414 15701M]    AAAA_QUERY_ANALYSIS: Show AAAA queries
[2022-01-27 14:56:18.415 15701M]    MAXDBDAYS: max age for stored queries is 365 days
[2022-01-27 14:56:18.415 15701M]    RESOLVE_IPV6: Resolve IPv6 addresses
[2022-01-27 14:56:18.415 15701M]    RESOLVE_IPV4: Resolve IPv4 addresses
[2022-01-27 14:56:18.415 15701M]    DBINTERVAL: saving to DB file every minute
[2022-01-27 14:56:18.415 15701M]    DBFILE: Using /etc/pihole/pihole-FTL.db
[2022-01-27 14:56:18.415 15701M]    MAXLOGAGE: Importing up to 24.0 hours of log data
[2022-01-27 14:56:18.415 15701M]    PRIVACYLEVEL: Set to 0
[2022-01-27 14:56:18.415 15701M]    IGNORE_LOCALHOST: Show queries from localhost
[2022-01-27 14:56:18.415 15701M]    BLOCKINGMODE: Null IPs for blocked domains
[2022-01-27 14:56:18.415 15701M]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2022-01-27 14:56:18.416 15701M]    DBIMPORT: Importing history from database
[2022-01-27 14:56:18.416 15701M]    PIDFILE: Using /run/pihole-FTL.pid
[2022-01-27 14:56:18.416 15701M]    PORTFILE: Using /run/pihole-FTL.port
[2022-01-27 14:56:18.416 15701M]    SOCKETFILE: Using /run/pihole/FTL.sock
[2022-01-27 14:56:18.416 15701M]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2022-01-27 14:56:18.416 15701M]    MACVENDORDB: Using /etc/pihole/macvendor.db
[2022-01-27 14:56:18.416 15701M]    GRAVITYDB: Using /etc/pihole/gravity.db
[2022-01-27 14:56:18.416 15701M]    PARSE_ARP_CACHE: Active
[2022-01-27 14:56:18.416 15701M]    CNAME_DEEP_INSPECT: Active
[2022-01-27 14:56:18.416 15701M]    DELAY_STARTUP: No delay requested.
[2022-01-27 14:56:18.417 15701M]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
[2022-01-27 14:56:18.417 15701M]    NICE: Set process niceness to -10 (default)
[2022-01-27 14:56:18.417 15701M]    MAXNETAGE: Removing IP addresses and host names from network table after 365 days
[2022-01-27 14:56:18.417 15701M]    NAMES_FROM_NETDB: Enabled, trying to get names from network database
[2022-01-27 14:56:18.417 15701M]    EDNS0_ECS: Overwrite client from ECS information
[2022-01-27 14:56:18.417 15701M]    REFRESH_HOSTNAMES: Periodically refreshing IPv4 names
[2022-01-27 14:56:18.417 15701M]    RATE_LIMIT: Rate-limiting client making more than 1000 queries in 60 seconds
[2022-01-27 14:56:18.417 15701M]    REPLY_ADDR4: Automatic interface-dependent detection of address
[2022-01-27 14:56:18.417 15701M]    REPLY_ADDR6: Automatic interface-dependent detection of address
[2022-01-27 14:56:18.417 15701M]    SHOW_DNSSEC: Enabled, showing automatically generated DNSSEC queries
[2022-01-27 14:56:18.418 15701M]    MOZILLA_CANARY: Enabled
[2022-01-27 14:56:18.418 15701M]    PIHOLE_PTR: internal PTR generation enabled (pi.hole)
[2022-01-27 14:56:18.418 15701M]    ADDR2LINE: Enabled
[2022-01-27 14:56:18.418 15701M]    REPLY_WHEN_BUSY: Permit queries when the database is busy
[2022-01-27 14:56:18.418 15701M]    BLOCK_TTL: 2 seconds
[2022-01-27 14:56:18.418 15701M]    BLOCK_ICLOUD_PR: Enabled
[2022-01-27 14:56:18.418 15701M]    CHECK_LOAD: Enabled
[2022-01-27 14:56:18.418 15701M]    CHECK_SHMEM: Warning if shared-memory usage exceeds 90%
[2022-01-27 14:56:18.418 15701M]    CHECK_DISK: Warning if certain disk usage exceeds 90%
[2022-01-27 14:56:18.419 15701M] Finished config file parsing
[2022-01-27 14:56:18.421 15701M] Database version is 9
[2022-01-27 14:56:18.422 15701M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 1.1MB used, 124.9MB total, FTL uses 1.1MB)
[2022-01-27 14:56:18.423 15701M] Imported 0 alias-clients
[2022-01-27 14:56:18.423 15701M] Database successfully initialized
[2022-01-27 14:56:18.440 15701M] New upstream server: 127.0.0.1:5335 (0/256)
[2022-01-27 14:56:18.443 15701M] New upstream server: 192.168.1.1:53 (1/256)
[2022-01-27 14:56:18.481 15701M] Imported 1057 queries from the long-term database
[2022-01-27 14:56:18.481 15701M]  -> Total DNS queries: 1057
[2022-01-27 14:56:18.481 15701M]  -> Cached DNS queries: 116
[2022-01-27 14:56:18.482 15701M]  -> Forwarded DNS queries: 634
[2022-01-27 14:56:18.482 15701M]  -> Blocked DNS queries: 289
[2022-01-27 14:56:18.482 15701M]  -> Unknown DNS queries: 0
[2022-01-27 14:56:18.482 15701M]  -> Unique domains: 253
[2022-01-27 14:56:18.482 15701M]  -> Unique clients: 10
[2022-01-27 14:56:18.482 15701M]  -> Known forward destinations: 2
[2022-01-27 14:56:18.482 15701M] Successfully accessed setupVars.conf
[2022-01-27 14:56:18.484 15701M] listening on 0.0.0.0 port 53
[2022-01-27 14:56:18.484 15701M] listening on :: port 53
[2022-01-27 14:56:18.491 15703M] PID of FTL process: 15703
[2022-01-27 14:56:18.494 15703M] INFO: FTL is running as user pihole (UID 998)
[2022-01-27 14:56:18.494 15703/T15704] Listening on port 4711 for incoming IPv4 telnet connections
[2022-01-27 14:56:18.495 15703M] Reloading DNS cache
[2022-01-27 14:56:18.497 15703/T15706] Listening on Unix socket
[2022-01-27 14:56:18.498 15703/T15705] Listening on port 4711 for incoming IPv6 telnet connections
[2022-01-27 14:56:18.507 15703/T15707] Compiled 0 whitelist and 0 blacklist regex filters for 10 clients in 2.0 msec
[2022-01-27 14:56:20.505 15703M] Blocking status is enabled
[2022-01-27 14:56:52.458 15703M] Resizing "FTL-domains" from 4096 to (512 * 16) == 8192 (/dev/shm: 1.1MB used, 124.9MB total, FTL uses 1.1MB)
[2022-01-27 14:57:38.106 15703M] Resizing "FTL-dns-cache" from 4096 to (512 * 16) == 8192 (/dev/shm: 1.1MB used, 124.9MB total, FTL uses 1.1MB)
[2022-01-27 14:57:54.826 15703M] Resizing "FTL-dns-cache" from 8192 to (768 * 16) == 12288 (/dev/shm: 1.2MB used, 124.9MB total, FTL uses 1.1MB)

========================================================================

I couldn't find any error in log, am I good to go?

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