Can't Access Internet anymore

Expected Behaviour:

Access internet from the pi

Actual Behaviour:

ping google.com -> Temporary failure in name resolution
ping 8.8.8.8 -> From 192.168.68.108 icmp_seq=1 Destination Host Unreachable

Debug Token:

None

Here's my problem...

Pi-hole worked properly, but after some times, it didn't work anymore.
The pi was still working, but pi-hole was not reachable from the user interface.

I tried pihole -up, but my machine couldn't reach internet anymore (all other machines on my network works, just they now don't pass thru pi-hole).

I tried many things to reconnect the pi to internet, but nothing worked, so I thought that it should be easier to uninstall and reinstall pi-hole.

After succesfully uninstall pi-hole, the problem was still here... I don't see wat's wrong with my configuration

/etc/dhcpcd.conf

interface wlan0
        static ip_address=192.168.68.108/24
        static routers=192.168.0.1
        static domain_name_servers=192.168.0.1

netstat -r is giving

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         192.168.0.1     0.0.0.0         UG        0 0          0 wlan0
192.168.0.1     0.0.0.0         255.255.255.255 UH        0 0          0 wlan0
192.168.68.0    0.0.0.0         255.255.255.0   U         0 0          0 wlan0

The pi is correctly connected with the wifi (I use SSH to work from my mac), the mac has DHCP router 192.168.0.1, and DNS server 192.168.0.1

What else can I search to correct my configuration?

The static IP address is on a different IP range than the router and name servers.

192.168.68.x for the Pi won't talk to 192.168.0.x for the rest of the network.

EDIT: and again beaten by @jfb :wink:

The IP address assigned to Pi-hole 192.168.68.108/24 is in different subnet as the router is in 192.168.0.1/xxx.
Try assign an IP to Pi-hole that is in the same subnet as the router is in eg 192.168.0.2/24 (if 192.168.0.2 is still available).
And when changing IP, you have to tell Pi-hole of the change by running below and select reconfigure:

pihole -r

Test connectivity on a connected PC (Windows/Linux/MacOS) with the nslookup tool in a command/terminal prompt eg:

nslookup pi.hole

nslookup pi.hole 192.168.0.2

Thanks for your input @jfb and @deHakkelaar!
That was it! The IP address was the one I used in my first installation of pi-hole, I used the same in the second installation, and now it isn't anymore in the good IP range???
I suppose something changed on the router side...

So now I was able to connect the internet, and install pi-hole again from scratch, but I can't access the web interface?
My IP is now 192.168.0.108
Il i try http://192.168.0.108:8080/admin I have 404 Not found, it should be the apache server, not lighttpd, because http://192.168.0.108:8080 brings me to the apache2 default page...
Just after installation I modified /etc/lighttpd/lighttpd.conf to use port 8080
in /etc/lighttpd/lighttpd.conf
server.port = 8080
lighttpd is running
sudo service lighttpd status -l

● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset:
   Active: active (running) since Tue 2020-04-28 14:00:29 CEST; 39min ago
  Process: 670 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.con
 Main PID: 938 (lighttpd)
    Tasks: 6 (limit: 2200)
   Memory: 26.7M
   CGroup: /system.slice/lighttpd.service
           ├─ 938 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           ├─ 947 /usr/bin/php-cgi
           ├─1188 /usr/bin/php-cgi
           ├─1189 /usr/bin/php-cgi
           ├─1190 /usr/bin/php-cgi
           └─1191 /usr/bin/php-cgi

Apr 28 14:00:26 piCloud systemd[1]: Starting Lighttpd Daemon...
Apr 28 14:00:29 piCloud systemd[1]: Started Lighttpd Daemon.

And I don't see any errors in /var/log/lighttpd/error.log

2020-04-27 16:33:36: (server.c.1464) server started (lighttpd/1.4.53) 
2020-04-27 16:36:26: (server.c.2059) server stopped by UID = 0 PID = 1 
2020-04-27 16:45:54: (server.c.1464) server started (lighttpd/1.4.53) 
2020-04-28 13:59:59: (server.c.2059) server stopped by UID = 0 PID = 1 
2020-04-28 14:00:29: (server.c.1464) server started (lighttpd/1.4.53) 

What else have I missed?

Don't worry.
I installed again and now I've got the web interface... Thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.