-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
Invalid domain names are parsed incorrectly #1581
Comments
Glad Pi-hole could help you identify the misbehaving client. I assume everything works when the client is sending the proper name? |
Absolutely, all valid requests are displayed correctly. |
I'm not sure if this is something we'll be able to address. @DL6ER That looks like it's just how |
I guess the easy fix is to improve the parsing by not relying on the |
This will not solve the issue because it happens in FTL as you said:
Here the space separation is the issue. Behind the scenes* we're working on Pi-hole v6.0 which will change the format out of FTL from our legacy telnet-like format to valid JSON, replacing the entire PHP API. This will solve the issue you've found at the same time. *) actually, this is not hidden at all but a public branch |
Versions
Platform
Expected behavior
Invalid hostnames that include a
<space>
should be displayed correctly.Actual behavior / bug
Hostnames are automatically split by
<space>
thus the invalid hostname "hello world" results in the Domain "hello" and the Client "world".I explored the issue and found the bug here.
pihole.log contains:
FTL returns valid data:
api.php?getAllQueries returns:
["1599752884","A","hello","world","imac_lan","3","0","1","27","N\/A","-1"]
Steps to reproduce
Steps to reproduce the behavior:
dig @pihole-ip 'hello world'
Screenshots
The text was updated successfully, but these errors were encountered: