# does Pi-hole can affect the devices connected to the dietpi?

**URL:** https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413
**Category:** General Discussion
**Created:** [11 March 2022 12:23 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413 "2022-03-11T12:23:38Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![ghezzia](https://dietpi.com/forum/user_avatar/dietpi.com/ghezzia/32/1932_2.png) [@ghezzia](https://dietpi.com/forum/u/ghezzia)
#### Post date: [16 March 2022 08:36 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/21 "2022-03-16T08:36:29Z")

</div>

again thank you for the really well done networking guide 😉

> [@](#):
>
> If your router can’t handle DDNS, you just can use dietpi-ddns. My router could do it but I don’t use it, I use the ddns-service of DietPi and it works just fine.

OK looking at my dietpi-ddns, looks like I’ve already done this:

```plaintext
    Provider : [No-IP] │
│ Domains : [mydomain.ddns.net] │
│ Username : [myemail@gmail.com] │
│ Password : [************] │
│ Timespan : [10 minutes]

```

And reading what you wrote this is fine, but my question is: what happens if the dietpi is down and I’m using just this setting? I guess I can’t reach just [mydomain.ddns.net](http://mydomain.ddns.net), but all the other devices (such as a security camera) can be reached. Isn’t it?

> [@](#):
>
> TLDR:  
> When you use a DDNS service, your public IP and your domain is stored on the DNS root name servers, which you contact automatically with every request you make.

I understand this, in my case the DNS root name server is No-ip. Is this correct?

Now, back to my pi-hole situation.

> [@](#):
>
> And now the special case:  
> When you now call your own domain from your own network, where your device is running in, it would be a unnecessary rundabout way to contact the central DNS servers, which will send you your own public IP and then you make a connection from your LAN into the internet back to your public IP.  
> Then it comes in handy to make a DNS entry in Pihole: You link your domain with the LOCAL IP of your device, so you don’t have to leave your LAN. Your browser then makes a request to PiHole, and PiHole has an entry for your domain and gives back the LAN IP of the device and not your public IP, like the central DNS name servers would do.

I don’t remember why (I’m quite sure there is a why 😉 ) When I was trying to reach the domain from my own network (with the old router), with the community we workaround in this way:  
see this post [[Solved]How to connect outside of dietpi network - #50 by Joulinar](https://dietpi.com/forum/t/solved-how-to-connect-outside-of-dietpi-network/6041/50) and this one [[Solved]How to connect outside of dietpi network - #57 by Joulinar](https://dietpi.com/forum/t/solved-how-to-connect-outside-of-dietpi-network/6041/57)

> [@](#):
>
> Imagine between step 2 and 3 sits your Pihole. When your pihole has an entry for the requested domain, it goes straight to step 7. if not, it goes to step 3. (This is only valid when you call your domain from inside your network)  
> When I call your domain, or every other person, we all have to contact the DNS root name servers, to get your IP.

This situation sounds good because, I think, this speeds up the internal connection. But, what if dietpi is down? does this mean all the devices connected to the router are unreachable?

So the final question now is: How can I check if going back to the easiest situation (i.e. just dietpi-ddns) without using pi-hole as a “DNS Resolver”, will work?

Siome last informations about my actual router that can, maybe, help:  
In the configuration, I can see and change if every single device has DHCP or dedicated IP; I have a remote control panel where I can activate “HTTP: 8080 and HTTPS: 8181” to a single device, or range of IP’s addresses or to all the devices; I have a “port triggering” for which I ignore the function; I have a DMZ which is actually active and settled on the Dietpi address; I also have set (as suggested) the DHCP interval with a single IP address, the Dietpi ones.

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [16 March 2022 12:33 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/22 "2022-03-16T12:33:34Z")

</div>

It should be only a problem when your IP changes while your DietPi is offline, because then the new IP can’t be announced to [no-ip.com](http://no-ip.com)  
Your old public IP is still stored there and your Domain still points to it, no matter if your Dietpi is reachable or not.  
And yes, your IP gets transmitted to the name servers of [no-ip.com](http://no-ip.com) and is requested from there.

If your DietPi acts as your DHPC server then your devices shouldn be reachable, if you establish your network connection when Dietpi is not running. When you establish the connection and then turn off your DietPi you should be fine, because then your devices already got an IP adress assigned.  
A walkaround for this would be to assign your devices static IPs, so they don’t need to get one assigned from your DHCP server.

And you could deactive Pihole and let your router do the DNS resolving and everything should be fine.

And for your last question:  
I don’t think a DMZ is necessary and could also make problems, but I don’t know much about using DMZ.

I don’t understand the thing with the DHCP interval, because I thought DietPi now handles your DHCP? So DHCP should be deactivated in your router.

If you shut down your DietPi regularly, the easiest solution would be to let your router handle DNS and DHCP, because it’s always online and reachable.

---

<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: [16 March 2022 12:45 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/23 "2022-03-16T12:45:09Z")

</div>

I guess the whole confusion is coming from the fact that the original Vodafone router was not able to handle traffic inside the network correctly. Means ghezzia was not able to reach Owncloud from inside the network using DDNS name. Therefore we created the ugly workaround to use PiHole to exclude the Vodafone router from DNS resolution and traffic routing. This way, PiHole was returning a local IP (custom DNS entry) instead of the global WAN IP. Means no routing on the Vodafone router needed as the access would be local only. Furthermore it was needed to setup DHCP on PiHole to allow all LAN clients to get correct DNS server assignment. Unfortunately again a missing feature on the Vodafone router to allow custom DNS settings. Even more worse, it was not possible to disable DHCP server functionality completely on the Vodafone router. The workaround we found (on internet) was to reduce DHCP range on the Vodafone router down to a singel IP address. The one PiHole server is using.

Now, with the new router, you could try the original setup again. Usually having the router acting as DNS/DHCP server is quite a common scenario and the router should be able to handle the request correctly.

How to deal with your NoIP address update is a different topic and should be excluded for now. Usually modern router support setting DDNS.

---

<div class="post-metadata">

### Author: ![ghezzia](https://dietpi.com/forum/user_avatar/dietpi.com/ghezzia/32/1932_2.png) [@ghezzia](https://dietpi.com/forum/u/ghezzia)
#### Post date: [16 March 2022 14:18 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/24 "2022-03-16T14:18:33Z")

</div>

> [@](#):
>
> I guess the whole confusion is coming from the fact that the original Vodafone router was not able to handle traffic inside the network correctly.

I told there was a why 🙂

> [@](#):
>
> Now, with the new router, you could try the original setup again. Usually having the router acting as DNS/DHCP server is quite a common scenario and the router should be able to handle the request correctly.

Ok looking at this post [[Solved]How to connect outside of dietpi network - #50 by Joulinar](https://dietpi.com/forum/t/solved-how-to-connect-outside-of-dietpi-network/6041/50) to test it, is it enough I disable the DHCP in pi-hole and re-open the range from .2 to .254 in my router?  
I asked just because I’m wondering if this can disable something in the network

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [16 March 2022 20:51 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/25 "2022-03-16T20:51:48Z")

</div>

It depends on the IP of your router, it shouldn’t be in the DHCP range. So your routers IP has to be .1, when your DHCP range is .2 to .254.

And all of the IPs of your devices may change, so don’t wonder if you can’t connect via the “old” IPs, e.g. when you use SSH or similiar stuff.  
If you assigned some static IPs to some devices, they also shouldn’t be in the DHCP range.

---

<div class="post-metadata">

### Author: ![ghezzia](https://dietpi.com/forum/user_avatar/dietpi.com/ghezzia/32/1932_2.png) [@ghezzia](https://dietpi.com/forum/u/ghezzia)
#### Post date: [16 March 2022 21:21 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/26 "2022-03-16T21:21:28Z")

</div>

> [@](#):
>
> It depends on the IP of your router, it shouldn’t be in the DHCP range. So your routers IP has to be .1, when your DHCP range is .2 to .254.

I confirm my router is 192.168.1.1 so the range .2 to .254 is the right one

> [@](#):
>
> If you assigned some static IPs to some devices, they also shouldn’t be in the DHCP range.

This is not clear to me. My dietpi is 192.168.1.15. should I move it out of the .2 . 254 range?

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [16 March 2022 21:24 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/27 "2022-03-16T21:24:18Z")

</div>

Of course it makes sense to apply the previous reserved or static IPs on the router again for the same devices (if it can set reserved IPs via DHCP).

It btw depends on the router whether it has issues with static IPs in the DHCP range. In my case, I use mostly static IPs, but additionally apply them as reserved IPs in the router. This works very well so that the router does not assign those IPs to any other device but would assign it to the intended device, if I switch it from static IP back to DHCP, also e.g. when setting up a fresh OS on it or so.

---

<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: [16 March 2022 22:32 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/28 "2022-03-16T22:32:07Z")

</div>

easiest would be

1. give STATIC IP .15 to PiHole device
2. disable DHCP within PiHole interface
3. set DHCP range on router .20-.200
4. ensure port forwarding 80/443 is still pointing to your DietPi device
5. restart a compute inside your network that you like to use for testing to assign new DHCP/DNS settings
6. check if your can access your private cloud from inside the network using DDNS name

---

<div class="post-metadata">

### Author: ![ghezzia](https://dietpi.com/forum/user_avatar/dietpi.com/ghezzia/32/1932_2.png) [@ghezzia](https://dietpi.com/forum/u/ghezzia)
#### Post date: [17 March 2022 13:17 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/29 "2022-03-17T13:17:39Z")

</div>

I followed the steps indicated but a strange thing (do you remember I’m the strange things man 🙂 ) happens.  
From inside my network, I can reach the Dietpi through SSH (using [mydomain.ddns.net](http://mydomain.ddns.net)) but, through the browser, I can’t reach either owncloud or pi-hole because it says it’s taking too long to connect to the site… If I’m outside my network looks like it works.

---

<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: [17 March 2022 14:43 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/30 "2022-03-17T14:43:21Z")

</div>

can you try to reach owncloud by using your external IP like

```nohighlight
https://<external.ip>/owncloud

```

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [17 March 2022 14:45 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/31 "2022-03-17T14:45:35Z")

</div>

So it’s reachable on port 22 (SSH) but not on 80/443 for HTTP/HTTPS… which sounds like a problem with your webserver.  
Is lighttpd running?  
What happens if you try to reach owncloud from inside your network via the local IP of 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: [17 March 2022 14:59 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/32 "2022-03-17T14:59:00Z")

</div>

if he could reach it from external, Webserver seems to be running fine.

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [17 March 2022 15:20 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/33 "2022-03-17T15:20:10Z")

</div>

Oh yes, I didn’t read right, again 🙄

---

<div class="post-metadata">

### Author: ![ghezzia](https://dietpi.com/forum/user_avatar/dietpi.com/ghezzia/32/1932_2.png) [@ghezzia](https://dietpi.com/forum/u/ghezzia)
#### Post date: [17 March 2022 20:25 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/34 "2022-03-17T20:25:09Z")

</div>

> [@](#):
>
> can you try to reach owncloud by using your external IP like
> 
> ```plaintext
> https://<external.ip>/owncloud
> 
> ```

I’m sorry but I don’t understand how to try this. If you mean to reach the owncloud using [mydomain.ddns.net/owncloud](http://mydomain.ddns.net/owncloud), it works if I’m outside my network but it doesn’t if I’m in.  
What is the external IP?

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [18 March 2022 00:36 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/35 "2022-03-18T00:36:55Z")

</div>

It’s your public IP, where your domain points to.  
You can look it up in your router, normally, or use some service like [https://ifconfig.me/](https://ifconfig.me/) to see it.

---

<div class="post-metadata">

### Author: ![ghezzia](https://dietpi.com/forum/user_avatar/dietpi.com/ghezzia/32/1932_2.png) [@ghezzia](https://dietpi.com/forum/u/ghezzia)
#### Post date: [18 March 2022 07:35 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/36 "2022-03-18T07:35:29Z")

</div>

Yes ok I found it. And I confirm the behavior is still the same. Outside the network, it reaches owncloud, even if it asks to insert the IP in the trusted domain, and inside the network, it takes too long and shows me the error page.

---

<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: [18 March 2022 10:57 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/37 "2022-03-18T10:57:00Z")

</div>

ok looks like the new router has the same stupid behaviour as the first one. Theoretically you could give it a try to contact your customer support who provide the router and ask for a solution on how to access a your domain from inside your network. Or you are getting yourself clear that you probably need to run PiHole 24/7 😉

---

<div class="post-metadata">

### Author: ![ghezzia](https://dietpi.com/forum/user_avatar/dietpi.com/ghezzia/32/1932_2.png) [@ghezzia](https://dietpi.com/forum/u/ghezzia)
#### Post date: [18 March 2022 14:02 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/38 "2022-03-18T14:02:17Z")

</div>

Another strange thing… Until some minutes ago from inside my network I was able to enter the dietpi with the terminal using [mydomain.ddns.net](http://mydomain.ddns.net).  
Now I can’t do it anymore. I can access it just using the dietpi local IP…  
Before this happens I disable the DMZ in my router (just to understand if this was the problem) and, when I realized I wasn’t able to access it with [mydomain.ddns.net](http://mydomain.ddns.net) anymore, I enable again the DMZ. Despite this, I can enter it only with the local IP.  
Now, using mydomain it shows me this error:

```nohighlight
ssh: connect to host mydomain.ddns.net port 22: Operation timed out

[Processo completato]

```

Does this make sense?

---

<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: [18 March 2022 14:06 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/39 "2022-03-18T14:06:52Z")

</div>

ahmm your DietPi device is located Inside a DMZ? Why?

---

<div class="post-metadata">

### Author: ![ghezzia](https://dietpi.com/forum/user_avatar/dietpi.com/ghezzia/32/1932_2.png) [@ghezzia](https://dietpi.com/forum/u/ghezzia)
#### Post date: [18 March 2022 14:44 UTC](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413/40 "2022-03-18T14:44:17Z")

</div>

no, is not located there.  
I don’t know why but when I change the router I activated also the DMZ in the new one. Maybe because this was the only method to point the ddns to the dietpi.

Anyway now I’ve disabled the DMZ.

The problem is still the same… 😢

[Previous page](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413.md?page=1)

[Next page](https://dietpi.com/forum/t/does-pi-hole-can-affect-the-devices-connected-to-the-dietpi/6413.md?page=3)
