-
-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting etc_dnsmasq_d = true breaks the database #2270
Comments
Well, quite obviously, this shouldn't happen. I wonder what might be the cause as I know many (including me) are using Question 1: Could you try if you observe the same if you instead use:
This will add this one line right away into the configuration without having to go the detour over a file in Question 2: Do you have any other files in |
hey, thanks for your feedback here's what happens when i run the commant. i copy pasted except to match my actual subnet ranges.
i double checked systemctl status pihole-FTL and it has the same error when i use that configuration line, and if i comment it out the service starts normally and shows a normal status. regarding other config files in the dnsmasq.d directory... yes (but it hadn't gotten as far as loading them till i commented out the localise-queries config file). they shouldn't have loaded, but dnsmasq attempted to load them. i have tried: same error every time for sanity i tried uncommenting one of my old (non duplicate) dhcp reservations: (and even reanamed to remove the trailing .disabled from the filename)
this was basically a fresh install of pihole becuase the upgrade from v5.21 to 6.03 broke everything and i fully uninstalled pihole and lighthttpd and cleaned up files and then reinstalled from scratch and reconfigured everything (i spent the night troubleshooting and reconfiguring) before doing all of this troublehsooting just now i have also backed up pihole and run pihole -up to see if it would resolve any issues |
also i suppose we proved that the original issue is not correct anymore but now we see that (for me at least) loading configs from /etc/dnsmasq.d has issues |
Versions
started this ticket on
Core version is v6.0.3 (Latest: v6.0.4)
Web version is v6.0.1 (Latest: v6.0.1)
FTL version is v6.0.1 (Latest: v6.0.2)
while troubleshooting i upgraded and found the same issues persist with
Core version is v6.0.4 (Latest: v6.0.4)
Web version is v6.0.1 (Latest: v6.0.1)
FTL version is v6.0.2 (Latest: v6.0.2)
Platform
PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
Expected behavior
per description, in order to enable custom settings for /etc/pihole/dnsmasq.conf
set etc_dnsmasq_d = true in /etc/pihole/pihole.toml
example: (edited to show example subnet ips are both in private network class)
attempting to add to /etc/dnsmasq.d/01-pihole-local-network.conf
localise-queries=192.168.0.0/24,192.168.2.0/24
(1 entry represents local network and the other is a network configured on the VPN)
adding this is expected to eliminate diagnosis finding:
ignoring query from non-local network 192.168.2.1 (logged only once)
restarting the pihole-FTL service and domains, and lists are now empty (despite being previously populated)
attempting to "add to allowed domains" gives error "db is not configured"
reverting etc_dnsmasq_d = false and restarting pihole-FTL service resolves all issues
NOTE: it appears that infographics on dashboard are populated still and also values for cname and custom a records. unclear how well all of that is working outside of testing that was described above
EDIT to provide example of systemctl status output when the configuration is added
NOTE: if i comment out the configuration in the dnsmasq.d config file the service starts normally with no errors
username@servername:/etc/dnsmasq.d# systemctl status pihole-FTL.service
● pihole-FTL.service - Pi-hole FTL
Loaded: loaded (/etc/systemd/system/pihole-FTL.service; enabled; preset: enabled)
Active: active (running) since Wed 2025-02-26 06:08:58 UTC; 1s ago
Process: 161100 ExecStartPre=/opt/pihole/pihole-FTL-prestart.sh (code=exited, status=0/SUCCESS)
Main PID: 161120 (pihole-FTL)
Tasks: 7 (limit: 18834)
Memory: 25.7M (peak: 31.0M)
CPU: 798ms
CGroup: /system.slice/pihole-FTL.service
└─161120 /usr/bin/pihole-FTL -f
Feb 26 06:08:58 servername pihole-FTL[161120]: 2025-02-26 06:08:58.570 UTC [161120M] INFO: - 20 entries are modified
Feb 26 06:08:58 servername pihole-FTL[161120]: 2025-02-26 06:08:58.570 UTC [161120M] INFO: - 0 entries are forced through environment
Feb 26 06:08:58 servername pihole-FTL[161120]: 2025-02-26 06:08:58.571 UTC [161120M] INFO: Parsed config file /etc/pihole/pihole.toml successfully
Feb 26 06:08:58 servername pihole-FTL[161120]: 2025-02-26 06:08:58.571 UTC [161120M] INFO: PID file does not exist or not readable
Feb 26 06:08:58 servername pihole-FTL[161120]: 2025-02-26 06:08:58.571 UTC [161120M] INFO:
Feb 26 06:08:58 servername pihole-FTL[161120]: dnsmasq: extraneous parameter at line 1 of /etc/dnsmasq.d/01-localise-queries.conf
Feb 26 06:08:58 servername dnsmasq[161120]: extraneous parameter at line 1 of /etc/dnsmasq.d/01-localise-queries.conf
Feb 26 06:08:58 servername dnsmasq[161120]: FAILED to start up
Feb 26 06:08:59 servername pihole-FTL[161120]: No other running FTL process found.
Feb 26 06:08:59 servername pihole-FTL[161120]: 2025-02-26 06:08:58.572 UTC [161120M] INFO: PID of FTL process: 161120
Steps to reproduce
see above
Debug Token
Ran
pihole -d
. https://docs.pi-hole.net/core/pihole-command/#debuggerasked if i wanted to upload the log i said yes and error returned: This: command not found
after upgrade noted above same issue with the debug token: This: command not found
The text was updated successfully, but these errors were encountered: