Skip to content
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

dns.revServers still insists on <domain> #2216

Closed
XnS opened this issue Feb 20, 2025 · 7 comments
Closed

dns.revServers still insists on <domain> #2216

XnS opened this issue Feb 20, 2025 · 7 comments

Comments

@XnS
Copy link

XnS commented Feb 20, 2025

Versions

  • Core version is v6.0.1 (Latest: v6.0.1)
  • Web version is v6.0 (Latest: v6.0)
  • FTL version is v6.0 (Latest: v6.0)

Platform

  • OS and version:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
  • Platform: Raspberry Pi 4 Model B Rev 1.4

Expected behavior

  1. Add conditional forwarding rule without domain, for example:
true,192.168.20.0/24,192.168.20.1
  1. Save settings
  2. Config validator shows no errors
  3. PTR is forwarded to 192.168.20.1

Actual behavior / bug

  1. Add conditional forwarding rule without domain, for example:
true,192.168.20.0/24,192.168.20.1
  1. Save settings
  2. Config validator shows no errors
  3. FTL.log prints
2025-02-20 17:52:54.233 GMT [1866M] ERROR: Skipped invalid dns.revServers[0]: true,192.168.20.0/24,192.168.20.1
  1. Query response is
➜  ~ host 192.168.20.188
Host 188.20.168.192.in-addr.arpa. not found: 3(NXDOMAIN)

Steps to reproduce

see above

Debug Token

  • URL: n/a

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

With #2115 there was a report, that the domain is considered required although the documentation states it's optional.
With #2116 the config validator has been updated to treat domain as optional.

The dnsmasq config writer however still expects the domain to be set:

if(active == NULL || cidr == NULL || target == NULL || domain == NULL)
{
log_err("Skipped invalid dns.revServers[%u]: %s", i, revServer->valuestring);
free(copy);
continue;
}

@DL6ER
Copy link
Member

DL6ER commented Feb 21, 2025

Oh yes, I am sorry, the fix is here, a more detailed description is therein: #2237

If you already want to try it out, please use

sudo pihole checkout ftl fix/revServer_wo_domain

@XnS
Copy link
Author

XnS commented Feb 21, 2025

Works, thank you for the quick fix 👍

@XhmikosR
Copy link

Confirmed it works too, by editing pihole.toml manually.

But it seems that the migration from v5 added a trailing comma without the domain since it was missing, not sure if that is valid or not now.

@DL6ER
Copy link
Member

DL6ER commented Feb 22, 2025

#2248 should be this final fix for this.

@XhmikosR
Copy link

XhmikosR commented Feb 22, 2025 via email

@XhmikosR
Copy link

XhmikosR commented Feb 22, 2025 via email

@DL6ER
Copy link
Member

DL6ER commented Mar 1, 2025

I don't think we need to remove trailing commas, they should have no negative effects.

This issue is now fixed in FTL v6.0.3. Please all go back to master using

sudo pihole checkout ftl master

in case you switched to a special branch in the course of this issue. The special branch is now abandoned and won't receive updates in the future.

@DL6ER DL6ER closed this as completed Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants