Reset list of adlists to defaults

It would be nice to have a button added to Adlist group management which resets the list of configured adlists to the shipped defaults.

This is available if you run pihole -r and select "reconfigure"

Thanks. I do see value in adding it to the GUI though.

The feature request is open. I was just pointing out a quick workaround.

I just tried pihole -r with no adlists and I still have no adlists:

  [i] Building tree...
  [✗] Unable to build gravity tree in /etc/pihole/gravity_temp.db
  Error: no such table: main.gravity
  [i] Number of gravity domains: 0 (0 unique domains)
  [i] Number of exact blacklisted domains: 0
  [i] Number of regex blacklist filters: 0
  [i] Number of exact whitelisted domains: 0
  [i] Number of regex whitelist filters: 0
  [✓] Flushing DNS cache
  [✓] Cleaning up stray matter

This error is fixed when you add the default adlists

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt

If Pi-hole can't restore the default list of adlists with pihole -r when the list of adlists is empty, is that a bug?

Possibly. I can certainly confirm the behaviour:

image

Thanks, raised: https://github.com/pi-hole/pi-hole/issues/3402

1 Like