Multiselect in Groupmanagement

Hello,

until today, I have only the group "default". Now, today I created a new group "group2".
The existing domains (group management --> Domains) are assigned only to group "default".
At the moment, i think there is no muliselect possible to edit more thant one entry at the same time, right?

How can edit all entries in group management --> Domains to be assigned to both groups, default and group2?

Thanks for your help.

Regards

Right.

You could try to create a SQL command to edit all at the same time. How many domains do you have configured?

Add:
You can modify this bash script to archive what you want:

1 Like

Thanks for the script.
We are talking about 1000 whitelist/blacklist-entries.

Is /etc/pihole/gravity.db
the correct db?

Do I have to stop / restart pihole or the Database when performing the script? (how?)
Do I have to stop / restart pihole or the db-system when I make a backup of the file?

You wrote whitelist.
I think this is "type=0", right?
Is type=1 for blacklist?

Yes.

Better to do so

sudo service pihole-FTL stop
sudo service pihole-FTL start
0 = exact whitelist,
1 = exact blacklist,
2 = regex whitelist,
3 = regex blacklist

from
https://docs.pi-hole.net/database/gravity/#domain-tables-domainlist

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