# Dietpi not connected

**URL:** <https://dietpi.com/forum/t/dietpi-not-connected/3901>\
**Category:** Troubleshooting\
**Created:** [4 March 2020 18:58 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901 "2020-03-04T18:58:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thor](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Thor](https://dietpi.com/forum/u/Thor)\
**Post date:** [4 March 2020 18:58 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/1 "2020-03-04T18:58:48Z")

</div>

Hello,  
I wanted to update pi-hole with “pihole -up”. Unfortunately it got stuck during the update and I had to restart manually. Now I get the following error message:

 ![111.PNG](https://dietpi.com/forum/uploads/default/original/2X/6/6ea8a48dbf28f05baa7aacfb4e5cab12cf1e120b.png)  
I tried “dietpi-update,” but here’s what I get:

```plaintext
root@DietPi:~# dietpi-update

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for available DietPi update

[INFO] DietPi-Update | Checking mirror: https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi/server_version-6
curl: (6) Could not resolve host: raw.githubusercontent.com
[INFO] DietPi-Update | No response from: https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi/server_version-6 ()
[INFO] DietPi-Update | Checking mirror: https://dietpi.com/downloads/dietpi-update_mirror/master/server_version-6
curl: (6) Could not resolve host: dietpi.com
[INFO] DietPi-Update | No response from: https://dietpi.com/downloads/dietpi-update_mirror/master/server_version-6 ()
[FAILED] DietPi-Update | Unable to access any update server. Please check your network connection, then rerun dietpi-update.
If this error persists, please report at: https://github.com/MichaIng/DietPi/issues

```

With “dietpi-software” I get the same message as above.

There is another emby server installed and just pi-hole, but neither of them has access to the Internet, it seems. In the pi-hole dashboard, Status says “unknown”. This also does not start.  
What else could I try?

Sorry for my bad English

Many greetings

Edit:  
In DietPi-Config by Ethernet-Details i get this:

> Ethernet Details: │  
> │ Usage : Sent = N/A | Recieved = N/A │  
> │ Address : IP = 192.168.178.30 | Mask = 255.255.255.0 | Gateway = 192.168.178.1 | DNS = 127.0.0.1

Is the DNS right here? I think not…

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [4 March 2020 19:42 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/2 "2020-03-04T19:42:04Z")

</div>

Hi,

If you use PiHole as DNS Server in the same device, 127.0.0.1 is correct setting.

It seems your PiHole is not working anymore after you restarted your system. Pls can you run the following to check if PiHole is working.

```nohighlight
pihole status
systemctl status pihole-FTL.service

```

As long as PiHole is off, you are not able to connect to the internet as DNS resolution is now working.

---

<div class="post-metadata">

**Author:** ![Thor](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Thor](https://dietpi.com/forum/u/Thor)\
**Post date:** [4 March 2020 19:48 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/3 "2020-03-04T19:48:06Z")

</div>

Hi, this is what i get:

```nohighlight
root@DietPi:~# pihole status
root@DietPi:~# systemctl status pihole-FTL.service
● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
   Active: active (running) since Wed 2020-03-04 20:45:42 CET; 1min 33s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 587 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
    Tasks: 7 (limit: 4915)
   CGroup: /system.slice/pihole-FTL.service
           └─687 /usr/bin/pihole-FTL

Mär 04 20:45:42 DietPi su[678]: + ??? root:pihole
Mär 04 20:45:42 DietPi su[678]: pam_unix(su:session): session opened for user pihole by (uid=0)
Mär 04 20:45:42 DietPi pihole-FTL[587]: FTL started!
Mär 04 20:45:42 DietPi dnsmasq[687]: started, version pi-hole-2.80 cachesize 150
Mär 04 20:45:42 DietPi dnsmasq[687]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Mär 04 20:45:42 DietPi dnsmasq[687]: reading /etc/resolv.conf
Mär 04 20:45:42 DietPi dnsmasq[687]: ignoring nameserver 127.0.0.1 - local interface
Mär 04 20:45:42 DietPi su[678]: pam_unix(su:session): session closed for user pihole
Mär 04 20:45:42 DietPi systemd[1]: Started LSB: pihole-FTL daemon.
Mär 04 20:45:42 DietPi dnsmasq[687]: read /etc/hosts - 5 addresses

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [4 March 2020 19:55 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/4 "2020-03-04T19:55:58Z")

</div>

But pihole status did not give anything back?

---

<div class="post-metadata">

**Author:** ![Thor](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Thor](https://dietpi.com/forum/u/Thor)\
**Post date:** [4 March 2020 19:58 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/5 "2020-03-04T19:58:04Z")

</div>

No:

> root@DietPi:~# pihole status  
> root@DietPi:~#

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [4 March 2020 20:00 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/6 "2020-03-04T20:00:51Z")

</div>

And if you do a restart of PiHole

```nohighlight
pihole restartdns

```

---

<div class="post-metadata">

**Author:** ![Thor](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Thor](https://dietpi.com/forum/u/Thor)\
**Post date:** [4 March 2020 20:01 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/7 "2020-03-04T20:01:52Z")

</div>

The same, nothing 🙄

> root@DietPi:~# pihole restartdns  
> root@DietPi:~#

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [4 March 2020 20:04 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/8 "2020-03-04T20:04:29Z")

</div>

Your PiHole seems to be broken and would need to be repaired.

```nohighlight
pihole -r

```

---

<div class="post-metadata">

**Author:** ![Thor](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Thor](https://dietpi.com/forum/u/Thor)\
**Post date:** [4 March 2020 20:08 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/9 "2020-03-04T20:08:13Z")

</div>

> root@DietPi:~# pihole -r  
> root@DietPi:~#

There´s nothing 😢

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [4 March 2020 20:09 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/10 "2020-03-04T20:09:56Z")

</div>

Ok will write something later the evening. Right now I’m not at home. PiHole would need to be reinstalled completely.

---

<div class="post-metadata">

**Author:** ![Thor](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Thor](https://dietpi.com/forum/u/Thor)\
**Post date:** [4 March 2020 20:11 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/11 "2020-03-04T20:11:15Z")

</div>

Ok, can i reinstall it via ssh?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [4 March 2020 20:15 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/12 "2020-03-04T20:15:33Z")

</div>

Yep but first we need to switch DNS setting from local 127.0.0.1 to a public one like 1.1.1.1 or 8.8.8.8 to be able to download the new PiHole software.

---

<div class="post-metadata">

**Author:** ![Thor](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Thor](https://dietpi.com/forum/u/Thor)\
**Post date:** [4 March 2020 20:27 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/13 "2020-03-04T20:27:22Z")

</div>

Ok, i changed in sudo nano /etc/network/interfaces  
the dns-namservers from 1.1.1.1. 1.0.0.1. to 8.8.8.8.

```nohighlight
# Please modify network settings via: dietpi-config
# Or create your own drop-ins in: /etc/network/interfaces.d/

# Drop-in configs
source interfaces.d/*

# Local
auto lo
iface lo inet loopback

# Ethernet
allow-hotplug eth0
iface eth0 inet static
address 192.168.178.30
netmask 255.255.255.0
gateway 192.168.178.1
dns-nameservers 8.8.8.8.

# WiFi
#allow-hotplug wlan0
iface wlan0 inet dhcp
address 0.0.0.0
netmask 0.0.0.0
gateway 0.0.0.0
#dns-nameservers 0.0.0.0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

```

Then i restart, but this doesn´t help. When I log in via ssh i get in the Header this:

```nohighlight
 DietPi v6.28.0 : 21:22 - Mi 04.03.2020
 ─────────────────────────────────────────────────────
 - Device model : RPi 3 Model B+ (armv7l)
 - CPU temp : 39'C : 102'F (Cool runnings)
 - LAN IP : 192.168.178.30 (eth0)
curl: (6) Could not resolve host: dietpi.com
 ────────────────────────────────────────────────

```

If you can’t make it today, it’s no problem. It’s late here too 🙂

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [4 March 2020 22:13 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/14 "2020-03-04T22:13:20Z")

</div>

you have a config error on your /etc/network/interfaces. One single DOT to much at the end of the DNS Server config 🕶

```nohighlight
dns-nameservers 8.8.8.8.

```

ok pls try to stop and disable pihole-FTL.service first

```nohighlight
systemctl stop pihole-FTL.service
systemctl disable pihole-FTL.service

```

Once done, do the following

1. dietpi-config
2. got to 7 : Network Options: Adapters
3. got to Ethernet
4. set Change Mode : [STATIC]
5. set Static DNS : [1.1.1.1 1.0.0.1]
6. Apply
7. exit dietpi-config
8. on console check if DNS Server is now 1.1.1.1 \> nslookup [google.de](http://google.de)
9. reboot your system
10. once done lets reinstall PiHole \> dietpi-software reinstall 93

---

<div class="post-metadata">

**Author:** ![Thor](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Thor](https://dietpi.com/forum/u/Thor)\
**Post date:** [5 March 2020 18:47 UTC](https://dietpi.com/forum/t/dietpi-not-connected/3901/15 "2020-03-05T18:47:48Z")

</div>

Hey Joulinar,  
thanks a lot, that worked out great. I was able to reinstall pi-hole and now pi-hole runs very well again.

many thanks a lot 🕶
