How to update static IP when restoring droplet
So I have a PiHole Droplet that I snapshot and restore as and when I need it. Annoyingly the PiHole requires a static IP set in
/etc/dhcpcd.conf, however, each time I restore the droplet it gets a new IP, this completely breaks the networking. I have to reset the root password and then access it through the access console, edit
/etc/dhcpcd.conf` to get it all working. A real bore! Is there a more elegant solution to this?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×