Remaining static ip adress from an uninstalled test pi-hole on debian pc


#1

Before I bought my own raspberry pi on which I installed pi-hole, I first installed it on my debian pc as a test. a static ip address 192.168.2.101 was assigned. that I uninstalled after I got the pi. now that I use the raspberry pi as pi-hole and dhcp server, I have assigned the pc the ip 192.168.2.222 in the dns settings. if i look in the debian network settings there is also 192.168.2.222 assigned. nevertheless in the pi-hole admin interface (on the pi) everything for this pc is still logged under 192.168.2.101. if i ping 192.168.2.101 and 192.168.2.222 I reach both. This is weird… how can i delete this configuration for 192.168.2.101?
I hope I could explain it understandably.


#2

You uninstalled Pi-hole from the debian machine, but can still reach the web interface on that machine? Which IP address does pi.hole resolve to? You many need to manually uninstall lighttpd.


#3

When I type the static ip of the old pi-hole into my browser a place holder page shows up: “You should replace this page with your own web pages as soon as possible. This is a placeholder page installed by the Debian release of the Lighttpd server package.”

Which IP address does pi.hole resolve to?

To the current (right) one.

You many need to manually uninstall lighttpd.

Did that but nothing changed.


#4

That page is probably being served by a different web server (perhaps you also have apache installed?). It is just a file, so you can either ignore it or delete the file (located in /var/www/html/).


#5

ok i deleted that and the placeholder page is gone. but the pihole still loggs my pc under the static ip adress.


#6

What is the issue? You have a web server running on the Debian machine which correctly responds on its IP address, and you have a Pi-hole set up on a Raspberry Pi.


#8

If there is a static IP still assigned within the Debian PC, you would need to release it at that client. The Pi-Hole DHCP can assign an IP, but if the client has a static IP already, the client may end up with two.


#9

But how do i fix that?


#10

Edit /etc/dhcpcd.conf on the Debian PC and remove the static IP information on that interface. After you remove this, reboot the device and it should get the IP from the DHCP server.


#11

Thank you that helped!