Pihole & Unbound: Installation for Pihole V6 (read description) #2505
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pi-hole v6 Migration Guide
Overview
With the release of Pi-hole v6, significant changes have been introduced, particularly in the way configurations are managed. This guide outlines the key changes and provides a migration path for users, especially those utilizing Unbound as their upstream DNS resolver.
Key Changes in Pi-hole v6
Migration to TOML Configuration
/etc/pihole/pihole.toml
instead ofsetupVars.conf
for settings.Updated Unbound Configuration Handling
setupVars.conf
ordnsmasq.d/01-pihole.conf
for upstream DNS must be adjusted.pihole.toml
.DHCP Server Defaults Changed
NTP Sync Changes
pihole.toml
.New Command-Line Configuration Options
pihole-FTL --config
.Migration Steps
1. Verify Migration
Pi-hole v6 automatically migrates existing configurations and stores previous versions in:
After updating, check the migration log to ensure a smooth transition.
2. Adjust Upstream DNS (for Unbound Users)
If you previously modified
setupVars.conf
, update/etc/pihole/pihole.toml
as follows:Modify the
[dns]
section:Restart Pi-hole:
3. Ensure DHCP Settings (if used)
For those using Pi-hole as a DHCP server, ensure it is enabled in
pihole.toml
:Apply the changes:
4. Disable NTP Sync (if needed)
By default, NTP sync is active. To disable it, modify:
Apply the change:
pihole-FTL --config ntp.sync.active false
Common Issues & Fixes
Issue:
no upstream servers configured
Fix: Ensure
upstreams
is properly set inpihole.toml
and restart Pi-hole:Issue: DHCP Not Working After Update
Fix: Verify that
[dhcp] active = true
is set and restart Pi-hole.Summary
Pi-hole v6 introduces automatic configuration migration but requires manual updates for Unbound users. Ensure your DNS settings are correctly configured in
pihole.toml
, verify DHCP settings, and adjust NTP synchronization if necessary.For further details, refer to the official Pi-hole documentation.
🔗 Related PR / Discussion / Issue
Link: #2485
✅ Prerequisites
Before this PR can be reviewed, the following must be completed:
🛠️ Type of Change
Select all that apply: