-
-
Notifications
You must be signed in to change notification settings - Fork 235
Do not set domainname when the kernel replies with "(none)" #2620
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
Conversation
Signed-off-by: Dominik <[email protected]>
|
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: |
|
I know that any domain name starting with or containing Maybe I'm being too "nitpicky", but I think we should check if the domain name is exactly equal to In other cases like What do you think? |
|
But can you even set a domain with |
|
My point is exactly this. If the user sets an invalid domain on purpose, we should simply warn about the invalid name. If the user didn't set anything and the function returns |
Signed-off-by: Dominik <[email protected]>
90fd77c to
c9ecb88
Compare
|
We cannot really issue a warning here as this would be printed each time the domain name is queried and/or also when this will never be an issue (because the domain name will never be used). We substitute edit For reference: Lines 3384 to 3393 in bc18568
|
|
OK. |
What does this implement/fix?
See title.
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): https://discourse.pi-hole.net/t/host-name-of-client-203-0-113-41-dns-vm-1-none-contains-at-least-one-invalid-character-hex-28-at-position-10/82042
By submitting this pull request, I confirm the following:
git rebase)Checklist:
developmentbranch.