Hi
I installed the latest OSMC on my RPI 3 b+ and also PI-hole (I am also using the Pi-hole as my DHCP server)
I was able to configure Pi-hole and I have internet on my PC and on my phone in the house WiFi. The ads are blocked, so Pi-hole works!
However I have no internet access anymore on the OSMC. I connect with ssh and there’s no reply from ping www.google.com
I will share my settings with you:
PC → PI-hole (with DHCP server enabled) → Router (with google upstream DNS in the WAN settings)
PI-hole 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
This is what I have in /etc/resolv.conf
Generated by dhcpcd from eth0.dhcp
/etc/resolv.conf.head can replace this line
nameserver 127.0.0.1
/etc/resolv.conf.tail can replace this line
My Pi-hole DNS points to the router
https://imgur.com/wJyAiSX
The PI-hole DHCP config looks like this.
https://imgur.com/bGyvrVk
Now on the Router LAN side I point to the Pi-hole
https://imgur.com/juKcanW
I have disabled the router DHCP server and added the Pi-hole IP in the DNS Server: 192.168.1.62
On the Router WAN side I point to the Google DNS
https://imgur.com/C788byt
Pi-hole works as a DHCP server also. The ads are blocked, but the strange part is this. When I restart my OSMC with ‘sudo reboot’ after I connect back I get a result back from the
ping google.com…but only for a few seconds
Can anyone please help me?