# DNS not running, FTL down

**URL:** https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004
**Category:** Help
**Created:** [September 5, 2020, 8:38am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004 "2020-09-05T08:38:23Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 8:38am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/1 "2020-09-05T08:38:23Z")

</div>

#### 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](https://discourse.pi-hole.net/c/bugs-problems-issues/community-help/36) category._

## Expected Behaviour:

\_[Replace this text with what you think should be happening. Please include as much detail as possible including, but not limited to:  
-Buster  
-Rpi3

## Actual Behaviour:

DNS service not running. FTL on web interface is down.

## Debug Token:

There was an error uploading your debug log.

---

<div class="post-metadata">

### Author: ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)
#### Post date: [September 5, 2020, 9:02am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/2 "2020-09-05T09:02:28Z")

</div>

Your description is a bit brief.  
Does that relate to first time install, an upgrade or an issue manifesting for a long running Pi-hole installation?

You may retry uploading a debug log by explictly providing a DNS server.

Temporarily reset the nameserver on the Pi to bypass Pi-Hole DNS:

```auto
sudo nano /etc/resolv.conf

```

Edit the `nameserver` line to `nameserver 9.9.9.9` or your preferred third party DNS service, save and exit.

Run

```auto
pihole -d

```

and upload the debug log.

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 9:20am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/3 "2020-09-05T09:20:57Z")

</div>

It is an issue running in a pihole for the last year.

I have uploaded the debug log.

[https://tricorder.pi-hole.net/4j1fh7lj14](https://tricorder.pi-hole.net/4j1fh7lj14)

Thank you.

---

<div class="post-metadata">

### Author: ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)
#### Post date: [September 5, 2020, 9:50am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/4 "2020-09-05T09:50:36Z")

</div>

> **From your debug log, it would seem your Pi-hole has IPv4 connectivity, but fails to bind the DNS port 53. In consequence, it fails to receive and resolve any DNS queries: (click for log excerpt details)**
>
> ```auto
> *** [DIAGNOSING]: Networking
> [✓] IPv4 address(es) bound to the eth0 interface:
> 192.168.1.6/24 matches the IP found in /etc/pihole/setupVars.conf
> 
> [i] Default IPv4 gateway: 192.168.1.1
> * Pinging 192.168.1.1...
> [✓] Gateway responded.
> 
> *** [DIAGNOSING]: Ports in use
> 127.0.0.1:45975 cloudflare (IPv4)
> 127.0.0.1:5053 cloudflare (IPv4)
> *:5900 vncserver- (IPv6)
> *:5900 vncserver- (IPv4)
> *:22 sshd (IPv4)
> *:22 sshd (IPv6)
> [80] is in use by lighttpd
> [80] is in use by lighttpd
> 
> *** [DIAGNOSING]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
> [✗] Failed to resolve hasznaltgumivetel.hu via localhost (127.0.0.1)
> [✗] Failed to resolve hasznaltgumivetel.hu via Pi-hole (192.168.1.6)
> [✓] doubleclick.com is 216.58.192.206 via a remote, public DNS server (8.8.8.8)
> 
> ```

Let's see what processes are grabbbing ports on your system.  
Run on your Pi-hole machine, what's the output of:

```auto
sudo ss -tulpn

```

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 10:10am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/5 "2020-09-05T10:10:42Z")

</div>

Thank you.

Here is the output -

```auto
$ sudo ss -tulpn
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port                                                                               
udp UNCONN 0 0 0.0.0.0:55965 0.0.0.0:* users:(("avahi-daemon",pid=357,fd=14))                                      
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:* users:(("avahi-daemon",pid=357,fd=12))                                      
udp UNCONN 0 0 127.0.0.1:5053 0.0.0.0:* users:(("cloudflared",pid=465,fd=5))                                        
udp UNCONN 0 0 0.0.0.0:68 0.0.0.0:* users:(("dhcpcd",pid=428,fd=10))                                            
udp UNCONN 0 0 *:5353 *:* users:(("avahi-daemon",pid=357,fd=13))                                      
udp UNCONN 0 0 *:52118 *:* users:(("avahi-daemon",pid=357,fd=15))                                      
tcp LISTEN 0 4096 127.0.0.1:5053 0.0.0.0:* users:(("cloudflared",pid=465,fd=6))                                        
tcp LISTEN 0 5 0.0.0.0:5900 0.0.0.0:* users:(("vncserver-x11-c",pid=501,fd=11))                                   
tcp LISTEN 0 1024 0.0.0.0:80 0.0.0.0:* users:(("lighttpd",pid=559,fd=4))                                           
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=526,fd=3))                                               
tcp LISTEN 0 4096 127.0.0.1:45975 0.0.0.0:* users:(("cloudflared",pid=465,fd=3))                                        
tcp LISTEN 0 5 [::]:5900 [::]:* users:(("vncserver-x11-c",pid=501,fd=10))                                   
tcp LISTEN 0 1024 [::]:80 [::]:* users:(("lighttpd",pid=559,fd=5))                                           
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=526,fd=4))

```

---

<div class="post-metadata">

### Author: ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)
#### Post date: [September 5, 2020, 10:42am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/6 "2020-09-05T10:42:15Z")

</div>

(_You can format your output for readability by using the_`</>` Preformatted text _menu option. I've just done that for your above command output._😉 )

Port 53 is not taken, neither by Pi-hole nor any other process.

Try restarting Pi-hole:

```auto
pihole restartdns

```

Check for any startup errors afterwards:

```auto
sudo systemctl status --full --no-pager pihole-FTL.service

```

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 10:49am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/7 "2020-09-05T10:49:10Z")

</div>

Here is output after restarting pi-hole

```auto

sudo systemctl status --full --no-pager pihole-FTL.service
● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated)
   Active: active (exited) since Sat 2020-09-05 05:46:51 CDT; 1min 47s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5215 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Sep 05 05:45:50 kidsraspberrypi systemd[1]: Starting LSB: pihole-FTL daemon...
Sep 05 05:45:50 kidsraspberrypi pihole-FTL[5215]: Not running
Sep 05 05:45:51 kidsraspberrypi su[5233]: (to pihole) root on none
Sep 05 05:45:51 kidsraspberrypi su[5233]: pam_unix(su:session): session opened for user pihole by (uid=0)
Sep 05 05:46:49 kidsraspberrypi pihole-FTL[5215]: FTL started!
Sep 05 05:46:51 kidsraspberrypi systemd[1]: Started LSB: pihole-FTL daemon.

```

BTW per the web interface FTL is still down.

---

<div class="post-metadata">

### Author: ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)
#### Post date: [September 5, 2020, 11:16am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/8 "2020-09-05T11:16:57Z")

</div>

That looks like a normal startup without any errors.

Did Pi-hole bind to port 53 this time?

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 11:21am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/9 "2020-09-05T11:21:53Z")

</div>

here is the output

```auto

sudo ss -tulpn
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port                                                                               
udp UNCONN 0 0 0.0.0.0:55965 0.0.0.0:* users:(("avahi-daemon",pid=357,fd=14))                                      
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:* users:(("avahi-daemon",pid=357,fd=12))                                      
udp UNCONN 0 0 127.0.0.1:5053 0.0.0.0:* users:(("cloudflared",pid=465,fd=5))                                        
udp UNCONN 0 0 0.0.0.0:68 0.0.0.0:* users:(("dhcpcd",pid=428,fd=10))                                            
udp UNCONN 0 0 *:5353 *:* users:(("avahi-daemon",pid=357,fd=13))                                      
udp UNCONN 0 0 *:52118 *:* users:(("avahi-daemon",pid=357,fd=15))                                      
tcp LISTEN 0 4096 127.0.0.1:5053 0.0.0.0:* users:(("cloudflared",pid=465,fd=6))                                        
tcp LISTEN 0 5 0.0.0.0:5900 0.0.0.0:* users:(("vncserver-x11-c",pid=501,fd=11))                                   
tcp LISTEN 0 1024 0.0.0.0:80 0.0.0.0:* users:(("lighttpd",pid=559,fd=4))                                           
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=526,fd=3))                                               
tcp LISTEN 0 4096 127.0.0.1:45975 0.0.0.0:* users:(("cloudflared",pid=465,fd=3))                                        
tcp LISTEN 0 5 [::]:5900 [::]:* users:(("vncserver-x11-c",pid=501,fd=10))                                   
tcp LISTEN 0 1024 [::]:80 [::]:* users:(("lighttpd",pid=559,fd=5))                                           
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=526,fd=4))

```

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 11:24am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/10 "2020-09-05T11:24:10Z")

</div>

I have uploaded another debug log as well.

[https://tricorder.pi-hole.net/1b6pd3cacw](https://tricorder.pi-hole.net/1b6pd3cacw)

The Web interface says DNS not running, FTL still down

---

<div class="post-metadata">

### Author: ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)
#### Post date: [September 5, 2020, 11:45am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/11 "2020-09-05T11:45:36Z")

</div>

The new debug log just looks the same as your first.  
It's probably worth noting that content of `pihole-FTL.log` has changed, while `pihole.log` just stayed the same.  
This is coherent with Pi-hole starting up and logging normally, but not processing and logging any queries.

Let's check if _`pihole-FTL`_ is running at all:

```auto
ps -e | grep "PID\|pihole"

```

And also check _`dnsmasq`_ configuration for possible syntax errors:

```auto
pihole-FTL dnsmasq-test

```

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 11:52am UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/12 "2020-09-05T11:52:34Z")

</div>

~ $ ps -e | grep "PID|pihole"  
PID TTY TIME CMD

pihole-FTL dnsmasq-test  
dnsmasq: syntax check OK.

---

<div class="post-metadata">

### Author: ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)
#### Post date: [September 5, 2020, 12:09pm UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/13 "2020-09-05T12:09:21Z")

</div>

It seems Pi-hole is indeed not running anymore.

Your recent pihole-FTL.log shows it to have started with the following PID:

```auto
   [2020-09-05 05:46:49.217 5260M] PID of FTL process: 5260

```

`sudo lsof -p 5260` likely won't return anything, as no Pi-hole process seems to be active.

Try checking the service again:

```auto
sudo systemctl status --full --no-pager pihole-FTL.service

```

Also, check the current end of `/var/log/pihole-FTL.log` for any errors that would imply a shutdown of pihole-FTL.

And check for under-voltage situations also:

```auto
dmesg -T | grep -i voltage

```

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 12:13pm UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/14 "2020-09-05T12:13:46Z")

</div>

Before my communication with you, I noticed that I can restart the RPI and every thing would work fine for about 10 min then DNS would stop working and FTL was down.

```auto
sudo lsof -p 5260
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.

```

```auto
$ sudo systemctl status --full --no-pager pihole-FTL.service
● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated)
   Active: active (exited) since Sat 2020-09-05 05:46:51 CDT; 1h 25min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5215 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Sep 05 05:45:50 kidsraspberrypi systemd[1]: Starting LSB: pihole-FTL daemon...
Sep 05 05:45:50 kidsraspberrypi pihole-FTL[5215]: Not running
Sep 05 05:45:51 kidsraspberrypi su[5233]: (to pihole) root on none
Sep 05 05:45:51 kidsraspberrypi su[5233]: pam_unix(su:session): session opened for user pihole by (uid=0)
Sep 05 05:46:49 kidsraspberrypi pihole-FTL[5215]: FTL started!
Sep 05 05:46:51 kidsraspberrypi systemd[1]: Started LSB: pihole-FTL daemon.
pi@kidsraspberrypi:~ $

```

This line of code does not return anything.

pi@kidsraspberrypi:~ $ dmesg -T | grep -i voltage

---

<div class="post-metadata">

### Author: ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)
#### Post date: [September 5, 2020, 12:40pm UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/15 "2020-09-05T12:40:02Z")

</div>

Try running `pihole-FTL` in the foreground `-f` with below and post the output when it stops (or not):

`sudo setcap CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN,CAP_SYS_NICE+eip "$(which pihole-FTL)"; sudo su -s /bin/sh -c "/usr/bin/pihole-FTL -f"`

You would need to kill it again in another SSH session if still running and when finished diagnosing with:

`sudo kill $(pidof pihole-FTL)`

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [September 5, 2020, 1:09pm UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/16 "2020-09-05T13:09:26Z")

</div>

Likely out of memory:

```auto
   [2020-09-05 03:48:46.017 1422M] Resizing "/FTL-queries" from 484671488 to 484900864
   [2020-09-05 03:48:46.036 1422M] Imported 8658199 queries from the long-term database
   [2020-09-05 03:48:46.037 1422M] -> Total DNS queries: 8658199
   [2020-09-05 03:48:46.037 1422M] -> Cached DNS queries: 47
   [2020-09-05 03:48:46.037 1422M] -> Forwarded DNS queries: 8658151
   [2020-09-05 03:48:46.037 1422M] -> Blocked DNS queries: 1
   [2020-09-05 03:48:46.037 1422M] -> Unknown DNS queries: 0
   [2020-09-05 03:48:46.037 1422M] -> Unique domains: 51
   [2020-09-05 03:48:46.037 1422M] -> Unique clients: 10
   [2020-09-05 03:48:46.038 1422M] -> Known forward destinations: 3

```

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 1:12pm UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/17 "2020-09-05T13:12:35Z")

</div>

How do I fix the memory issue. This is a dedicated rpi running just the stock buster version and Pihole.

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [September 5, 2020, 1:14pm UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/18 "2020-09-05T13:14:03Z")

</div>

First, take a look at where 8.6 million DNS requests are coming from. What is the output of these commands from the Pi terminal:

`echo ">top-clients >quit" | nc localhost 4711`

`echo ">top-domains >quit" | nc localhost 4711`

`echo ">top-ads >quit" | nc localhost 4711`

---

<div class="post-metadata">

### Author: ![kidspi](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/7993a0/32.png) [@kidspi](https://discourse.pi-hole.net/u/kidspi)
#### Post date: [September 5, 2020, 1:17pm UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/19 "2020-09-05T13:17:35Z")

</div>

Not sure I am doing this right.

I typed your suggestions into terminal and there appears to be no output.

pi@kidsraspberrypi:~ $ echo "\>top-clients \>quit" | nc localhost 4711  
pi@kidsraspberrypi:~ $ echo "\>top-domains \>quit" | nc localhost 4711  
pi@kidsraspberrypi:~ $ echo "\>top-ads \>quit" | nc localhost 4711

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [September 5, 2020, 1:25pm UTC](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004/20 "2020-09-05T13:25:29Z")

</div>

Restart FTL and run them again.

[Next page](https://discourse.pi-hole.net/t/dns-not-running-ftl-down/38004.md?page=2)
