Update IP Address from shell

Please follow the below template, it will help us to help you!

Expected Behaviour:

Unattended update of IP address from a crontab entry.

Actual Behaviour:

pihole -r +Reconfigure requires interactive use.

It looks like most of the changes for the IP address are related to dhcp - network interfaces - and the web server.

Is there some way to call something like: pihole -r +Reconfigure -ip 192.168.1.1 and just have it to what is necessary for changing the IP address with no interaction required?

Thanks,

Troy

Debug Token:

https://tricorder.pi-hole.net/ei1pta6avp!

Edit /etc/pihole/setupVars.conf and then call the unattended update.

I’m curious: Why do you need a crontab job to update the IP address?

Unattended update is exactly what I'm looking for. How can I invoke that? Thanks!

I am sending the Pi-Hole to a friend. They aren't very technical. I won't know the correct IP and of course it is possible that things will change and I'm trying to create a cronjob that will update in the background (and send me an email to let me know that the update occurred)

sudo /etc/.pihole/automated\ install/basic-install.sh --reconfigure --unattended

Thank you so much - that is super helpful! Troy

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