Copying 'Local DNS records' by hand

Hello community,
I am forced to copy all of my ' Local DNS records' by hand, since Teleporter from v5 to V6 does work.
To make matters more tiring, i am being kicked out of the gui interface, each time after adding one entry and have to login again.

Questions:
Is there a way to import my entries from V5 to V6 in a less tiring way ?
Is there a way to avoid being kicked out after adding one entry ?
Thx, user4747

Pihole.toml is located at /etc/pihole/pihole.toml

There is a section in there to set local DNS. It is default "". You should be able to spot it if you already have one or two entries. I believe it's format is hosts = [
"[IP1 FQDN1, IP2 FQDN2, ...."
]". Edits with nano or vim will work with a restartdns to be sure.

I suspect the all settings page in the GUI would also work for a copy and paste.

Are you saying backups from v5 do not work in v6?

If they don't, they probably should in my opinion.

Possibly not possible?

Teleporter was never really meant as a method of backing up your Pi-hole, they were more useful to migrate one Pi-hole to a new device at (roughly) the same version. When you backup your /etc/pihole folder from v5, the migration step that upgrades your Pi-hole from v5.x to v6.x should have you covered.

This is solved in the latest development-v6 version. We had an improvement pending review that preserved web interface sessions across resolver reboots that has just been reviews and merged.

1 Like

What I did resolve this issue was to setup a another pihole instance on a spare notebook and to import a copy of my settings via teleport. From there on I migrated from v5 to v6.
However my CNAME entries got lost during the migration.
Maybe this one thing which should be passed on to people which are deeper involved in the development.
Thx, for the help and input

https://github.com/pi-hole/FTL/pull/1732

further improves on this by rendering the entire restart process unnecessary when hosts records are changed.

How did you edit them exactly? Note that in v6.0 they should only be managed through /etc/pihole/pihole.toml ([dns] and then hosts)