Dns service is not running - Help

Expected Behaviour:

Hello,
I did a clean (fresh) install in my raspberry pi 4B with the Latest Raspbian (Buster) and Repetier Server image for PI. I have Downloaded the latest image from this site: Raspberry Pi Image - Repetier-Server and use PI Imager. After that i did the pihole installation but the dns service is not running as you can see on the attached image.
Despite being an image (OS) on their website (repetier-server), the image is running the latest raspbian version based on debian buster. I send an image attached with the operating system, using the command "cat /etc/os-release", so you can check.
Can you help me with that? Thanks in advance.

Debug Token:
https://tricorder.pi-hole.net/qyarmxidh0

The Pi-hole log only confirms that pihole-FTL is not running. Let's see what else is on port 53 and other ports used by Pi-hole. The OS you are using is not supported, and there may be other processes running or missing dependencies.

Please post the complete output of this command from the Pi terminal:

sudo netstat -nltup | grep 'Proto\|:53 \|:5053 \|:5353 \|:5335 \|:8953 \|:67 \|:80 \|:471'

Thans jfb. I send an image attached

Run the following and post the output of the second of the two commands. Please copy/paste the text output instead of posting an image if you can do so.

sudo service pihole-FTL start

sudo service pihole-FTL status

Ah sorry jfb. Please check if it is okay like that:

● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated)
   Active: active (exited) since Thu 2020-10-08 17:43:23 UTC; 57min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 654 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Oct 08 17:43:22 Repetier-Server systemd[1]: Starting LSB: pihole-FTL daemon...
Oct 08 17:43:22 Repetier-Server pihole-FTL[654]: Not running
Oct 08 17:43:22 Repetier-Server su[703]: (to pihole) root on none
Oct 08 17:43:22 Repetier-Server su[703]: pam_unix(su:session): session opened for user pihole by (u
Oct 08 17:43:23 Repetier-Server pihole-FTL[654]: dnsmasq: cannot read /etc/dnsmasq.d/hotspot.conf:
Oct 08 17:43:23 Repetier-Server su[703]: pam_unix(su:session): session closed for user pihole
Oct 08 17:43:23 Repetier-Server systemd[1]: Started LSB: pihole-FTL daemon.

You have a problem in this configuration file. I assume this file is something installed by the Repetier Server software. When pihole-FTL can't properly load the configuration files, it won't launch. You can confirm this with the following command:

pihole-FTL dnsmasq-test

Please post the contents of that configuration file:

cat /etc/dnsmasq.d/hotspot.conf

with pihole-FTL dnsmasq-test:
dnsmasq: cannot read /etc/dnsmasq.d/hotspot.conf: Permission denied

and with cat /etc/dnsmasq.d/hotspot.conf:
cat: /etc/dnsmasq.d/hotspot.conf: Permission denied

Let's check the permissions in the folder:

ls -lha /etc/dnsmasq.d

And also run

sudo cat /etc/dnsmasq.d/hotspot.conf

with ls -lha /etc/dnsmasq.d:

total 28K
drwxr-xr-x   2 root root 4.0K Oct  8 17:37 .
drwxr-xr-x 110 root root  12K Oct  8 17:42 ..
-rw-r--r--   1 root root 1.4K Oct  8 17:37 01-pihole.conf
-rw-r-----   1 root root   68 Aug 14 07:50 hotspot.conf
-rw-r--r--   1 root root  211 Feb  5  2019 README

and with sudo cat /etc/dnsmasq.d/hotspot.conf:

interface=wlan0
dhcp-range=10.10.10.2,10.10.10.50,255.255.255.0,24h

As a troubleshooting step, I would move that configuration file out of /etc/dnsmasq.d (don't rename it and leave it in place - it will still be read) and then restart FTL and see if the problem clears.

I'm also curious what is in the README file - that is not a Pi-hole file.

Sorry jbf but could you tell me the steps to follow with the commands. I'm sorry but I'm not an expert :slightly_frowning_face:

on the README file:

All files in this directory will be read by dnsmasq as

configuration files, except if their names end in

".dpkg-dist",".dpkg-old" or ".dpkg-new"

This can be changed by editing /etc/default/dnsmasq

This will put the file in the /etc/pihole directory (perhaps not the best location to hold it, but I don't know how your directories are configured with your OS distribution).

sudo mv /etc/dnsmasq.d/hotspot.conf /etc/pihole/hotspot.conf

sudo service pihole-FTL start

Thanks. I did that but it seems that dns service is not running

What are the outputs of

pihole-FTL dnsmasq-test

sudo service pihole-FTL status

dnsmasq: syntax check OK.

and

● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated)
   Active: active (exited) since Thu 2020-10-08 19:01:50 UTC; 1h 7min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 661 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Oct 08 19:01:49 Repetier-Server systemd[1]: Starting LSB: pihole-FTL daemon...
Oct 08 19:01:49 Repetier-Server pihole-FTL[661]: Not running
Oct 08 19:01:50 Repetier-Server su[711]: (to pihole) root on none
Oct 08 19:01:50 Repetier-Server su[711]: pam_unix(su:session): session opened for user pihole by (u
Oct 08 19:01:50 Repetier-Server pihole-FTL[661]: dnsmasq: cannot read /etc/dnsmasq.d/hotspot.conf:
Oct 08 19:01:50 Repetier-Server su[711]: pam_unix(su:session): session closed for user pihole
Oct 08 19:01:50 Repetier-Server systemd[1]: Started LSB: pihole-FTL daemon.

Output of the following please - this will show all non-commented lines in the dnsmasq directory (and subdirectories):

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

/etc/dnsmasq.conf:conf-dir=/etc/dnsmasq.d
/etc/dnsmasq.conf.old:conf-dir=/etc/dnsmasq.d
/etc/dnsmasq.d/01-pihole.conf:addn-hosts=/etc/pihole/local.list
/etc/dnsmasq.d/01-pihole.conf:addn-hosts=/etc/pihole/custom.list
/etc/dnsmasq.d/01-pihole.conf:localise-queries
/etc/dnsmasq.d/01-pihole.conf:no-resolv
/etc/dnsmasq.d/01-pihole.conf:cache-size=10000
/etc/dnsmasq.d/01-pihole.conf:log-queries
/etc/dnsmasq.d/01-pihole.conf:log-facility=/var/log/pihole.log
/etc/dnsmasq.d/01-pihole.conf:local-ttl=2
/etc/dnsmasq.d/01-pihole.conf:log-async
/etc/dnsmasq.d/01-pihole.conf:server=8.8.8.8
/etc/dnsmasq.d/01-pihole.conf:server=8.8.4.4
/etc/dnsmasq.d/01-pihole.conf:interface=eth0
/etc/dnsmasq.d/01-pihole.conf:server=/use-application-dns.net/

pihole status

and new debug token please.

[✗] DNS service is NOT running

and debug token:
https://tricorder.pi-hole.net/p702fsmmg3