The issue I am facing:
I am switching from using ISP's router to using my own with the old router as a bridge so I can force all traffic through the Pi for DNS and DHCP. As expected, the static IP of the Pi-hole is non-functioning as a result.
When I searched online I've read up on two options: one involving commands to edit a file that is far beyond me, and one using "pihole -r". However, the reconfigure command doesn't give me an option to reconfigure my IP, just a statement of what it currently is. It sounds like the command used to have the option, but it was removed, is that right?
I'm hoping someone can give me commands to copy and paste into my SSH to change the static IP from 192.168.1.x to 192.168.0.x, thanks for the help! Details about my system:
I'm running Pi-hole on a Pi 4 Model B with DietPi. And the new router is from tp-link. After I get this resolved, I plan on flashing custom firmware on the router. What I have changed since installing Pi-hole:
I added blacklists and a scripted whitelist. I was using the DHCP function, but disabled it during this process.
Configuration of how a machine acquires its IP address is done through your OS's network configuration.
Specifics would depend on your OS.
Pi-hole's installation does not touch your OS's configuration, with the exception of RaspberryPi OS, where it may write entries to /etc/dhcpcd.conf if a user explicitly opted to do so.
You could consider to check that file, but as you are running DietPi, that may well run a different tool than dhcpcd for managing its network.
In general, as Pi-hole requires a fixed IP address, you have a choice of configuring your OS to set a static IP on device.
Alternatively, you can have your device request an IPv4 address from your router's DHCP server, and configure your router to hand out a fixed IP to your device (sometimes called a DHCP lease reservation).
Provided your router supports the latter, that would spare you from configuring an IP on device in case the router's network would ever change. Also, most OSs would default to requesting IP address information via your router.
On DietPi, dhcpcd is not used by default, but ifupdown with /etc/network/interfaces config instead. You can use dietpi-config > "Network Options: Adapters" > Ethernet to change the static IP of your system.
For my use case, i decided to add my pi on lan and wifi using stock dhcp once it was connected on both, i got the mac addresses and went into my network controller for the DHCP in order to set the reservation
used ifconfig /all to get the ip address from pi-hole asset
logged into the ISP modem (Cable/DSL/Fibre modem)
went into network config
found the DHCP table
checked ip's for the ones i need
took note of the mac address that the modem's table had registered
added IP reserveration by copying the mac addresses and set an ip i know i would not normaly use.
for example of setting up the reservations
if modem is 192.168.x.1 or 192.168.x.254
i would recommend setting static reservations on 192.168.x.240 - 192.168.x243 as most modems would assign to lower numbers by default. to the dhcp range.