Make Pi-hole compatible with OSMC


#1

Hi

Can you guys please consider adapting Pi-hole to OSMC? It looks like Pi-hole creates issues between connman and dhcpcd on OSMC.

Please see the discussion here: https://discourse.osmc.tv/t/no-internet-on-osmc-after-installing-pi-hole-also-using-the-pi-hole-as-dhcp-server/72773/2

Thx


#2

The “nslookup” tool is your friend and can run on Linux, Windows or Mac client PC’s:


C:\>nslookup pi-hole.net
Server:  noads.dehakkelaar.nl
Address:  10.0.0.2

Non-authoritative answer:
Name:    pi-hole.net
Address:  206.189.252.21

C:\>nslookup pi-hole.net 10.0.0.1
Server:  router.asus.com
Address:  10.0.0.1

Non-authoritative answer:
Name:    pi-hole.net
Address:  206.189.252.21

C:\>nslookup pi-hole.net 10.0.0.2
Server:  noads.dehakkelaar.nl
Address:  10.0.0.2

Non-authoritative answer:
Name:    pi-hole.net
Address:  206.189.252.21

C:\>nslookup pi-hole.net 1.1.1.1
Server:  1dot1dot1dot1.cloudflare-dns.com
Address:  1.1.1.1

Non-authoritative answer:
Name:    pi-hole.net
Address:  206.189.252.21

C:\>nslookup pi-hole.net 8.8.8.8
Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Non-authoritative answer:
Name:    pi-hole.net
Address:  206.189.252.21

C:\>nslookup pi-hole.net 9.9.9.9
Server:  dns.quad9.net
Address:  9.9.9.9

Non-authoritative answer:
Name:    pi-hole.net
Address:  206.189.252.21

#3

Hi

Thanks for the reply.

You told me I created a loop. Hm…I followed the instruction from this Reddit post https://www.reddit.com/r/pihole/comments/7gghor/question_about_asus_ac56u_dns_settings/dqj7s0i/

The ideea was to use the Pi-hole as the DHCP server, deactivate DHCP in the router and have this config: Device -> pihole -> router -> (Upstream DNS set in the AE).

Like this I could see the stats per device in the Pi-hole config. Is that the preffered config when using Pi-hole also as DHCP server?

So in my case (see https://discourse.osmc.tv/t/no-internet-on-osmc-after-installing-pi-hole-also-using-the-pi-hole-as-dhcp-server/72773)

Can you please tell me where is the mistake?

Pi-hole is on the RPI which also runs OSMC. Its IP is 192.168.1.62 -> this is a static IP (I checked /etc/dhcpcd.conf) and I have this:

interface eth0
static ip_address=192.168.1.62/24
static routers=192.168.1.1
static domain_name_servers=127.0.0.1

What should I have in the PI-hole DNS? https://imgur.com/wJyAiSX
Same for Pi-hole DHCP https://imgur.com/bGyvrVk

Router LAN https://imgur.com/juKcanW
Router WAN https://imgur.com/C788byt

My PC also has a static IP and is configured like this
https://imgur.com/fGB9c4c


#4

Yeah at first I believed you had configured the router to use Pi-hole for upstream DNS resolution and configured Pi-hole to use the router for upstream DNS thus creating a closed loop.
But I was mistaken and corrected my initial posting.

All the screenshots you posted seems to look ok.
Bu what about some nslookup's run on Pi-hole as well as a client PC ?


#5

Thx for the reply and for confirming my setup is correct. A big problem for Pi-hole is the lack of clear examples of how to configure your Router and the Pi-hole in all these scenarios (with DHCP server enabled or disabled)…it takes a while until you figure out this stuff on your own and it’s impossible to imagine that regular users would be able to do it.

Anyhow, enough with that.

When running nslookup pi-hole.net from my PC I get:
Server: Sputnik
Address: 192.168.1.62

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


nslookup pi-hole.net 192.168.1.62
Server: Sputnik
Address: 192.168.1.62

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


nslookup pi-hole.net 192.168.1.1
Server: router.asus.com
Address: 192.168.1.1

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


nslookup pi-hole.net 8.8.8.8
Server: google-public-dns-a.google.com
Address: 8.8.8.8

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


nslookup pi-hole.net 1.1.1.1
Server: 1dot1dot1dot1.cloudflare-dns.com
Address: 1.1.1.1

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


when running nslookup pi-hole.net from my Raspberry Pi (where Pi-hole is installed) I get:
Server: 192.168.1.1
Address: 192.168.1.1#53

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


nslookup pi-hole.net 192.168.1.62
Server: 192.168.1.62
Address: 192.168.1.62#53

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


nslookup pi-hole.net 192.168.1.1
Server: 192.168.1.1
Address: 192.168.1.1#53

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


nslookup pi-hole.net 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21


nslookup pi-hole.net 1.1.1.1
Server: 1.1.1.1
Address: 1.1.1.1#53

Non-authoritative answer:
Name: pi-hole.net
Address: 206.189.252.21

Does this look ok?


#6

Thanks for the comments, we do a lot of helping here and on out other support platforms to help people find the correct configuration for their routers. With so many different types and models it’s almost impossible to write something up that covers each situation. Someone once said though, “The Pi-hole may be free software, but you do have to pay in your own time to set it up.” But we’re here to help, and so are our users that have gone through the same thing. We don’t turn people away that come to us asking for help, everyone is treated the same and treated fairly.


#7

I know and I totally appreciate the effort you guys put. I was just thinking with my mouth open and I hope you understand what I mean. I consider myself quite tech savvy but I still missed the steps required to setup my router to work with pi-hole as a DHCP server. This is something that can be improved if we want to grow this community :smiley:
I can imagine that this is straight forward for network people but for the average user is not.

I really think this is a crucial turn off that should be corrected on the main page and more and better generic examples should be provided that explain the Wan, Lan, DNS, DHCP settings that should be set on the router and how to configure the Pi-hole or the other devices in the network (like my PC). I don’t think there are so many scenarios in the end.

It took me a few days to get the confidence that what I did was correct. And as you can see Pi-hole doesn’t play ball with all the OS’s like Osmc… Which now works for me. But unfortunately I cannot say exactly what I did to solve it. Probably it was the connmanctl command from https://discourse.osmc.tv/t/no-internet-on-osmc-after-installing-pi-hole-also-using-the-pi-hole-as-dhcp-server/72773

Take care and thx for all the help. I am telling all my friends and work colleagues about Pi-hole and its utility


#8

Thanks, we are kind of focused on the specific details and we miss the general explanations of how it all works together. We are doing a lot with the documentation on https://docs.pi-hole.net and if you find the time to write some of what you find down, we’d love to have it!