Change Static IP Address

Expected Behaviour:

HW/OS Proxmox Ubuntu Container
Pi-hole v5.1.1 * Web Interface v5.1 FTL v5.1

Pi-hole uses a single Static IP address

Actual Behaviour:

2 Static IP Addresses are in use.

Debug Token:

https://tricorder.pi-hole.net/ceskac5d3g

Background

I moved my Pi-hole setup to a Proxmox system. I setup the container on a temporary IP address (x.x.x.21) to test and once content it was working moved the container to it's permanent address (x.x.x.29) in the Proxmox GUI and decommissioned the old eSXI VM.

On looking at a different issue, I noted the x.x.x.21 address in the debug logs. Pi-hole does work (though I am seeing issues so would like to fix this first to eliminate it as part of the problem).

Question

What is the correct way to change the Static IP address of a Pi-hole installation?

Edit /etc/dhcpcd.conf, but Proxmox does it's own configuration changes depending on what container technology you are using, KVM or lxc.

I'm using LXC for this (works well - minimal CPU/Memory)

From the diagnostics the IP is found

  • /etc/pihole/setupVars.conf
  • /etc/pihole/local.list
    192.168.7.21 pihole
    192.168.7.21 pi.hole

Should I change these as well?

Those two files should not be edited manually, run pihole -r reconfigure.

2 Likes

Excellent that did the job. I thought it would delete things like local DNS records but ti didn't.

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