Host records got wiped after updating pi-hole

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

Expected Behaviour:

Host records are retained.

Actual Behaviour:

Host records get wiped

Debug Token:

Not applicable since mine has already been upgraded.

Note:

I use the following command to add custom hosts.

`pihole -a hostrecord mycustomhost 192.168.1.150`

What version were you on and what did you update to?

Please also send us the token generated by

pihole -d

so we can help debug the issue.

Token is imkq3lrmwf.

I updated to 3.1.4 from the last version, maybe, 3.1.3 or 3.1.1. I update pretty regularly.

Host records are stored in /etc/pihole/setupVars.conf and should have been re-applied during the update. Although, I wonder if this if statement is causing it to skip that step.

1 Like