Local DNS Settings > x Invalid value

Hi,
Wanted to add a device to the Local DNS Settings (used to work just fine a few weeks back) but keep keeping the Error message " x Invalid value / dns.hosts(0): invalid hostname (Viejo-Neveri")
Tried without the dash still same and same for other Domains and IPs.
Currently nothing is defined.

  • Core vDev (development-v6, 71b17294)
  • FTL vDev (development-v6, a0d65543)
  • Web interface vDev (development-v6, 240b3aaf)
https://tricorder.pi-hole.net/ciQpRhs9/

Thanks for reporting the issue.

I can confirm this behavior, when using the recent development-v6 image.
Actually every value is considered invalid.

We need to investigate.

1 Like

You welcome :slight_smile:
If need me to assist/help with let me know.

Try viejo-neveri instead, confirmed that works on my test setup. It seems that the config validator is maybe a little too aggressive in this case and is rejecting it due to capital letters.

caps no caps

Paging @dl6er for thoughts.

The following line in the FTL domain validator suggests that we're expecting domains to be converted to lowercase before being parsed (suspect this is due to the function being borrowed from the gravity functionality)

I guess the answer is either one of:

  • Change web interface to convert the domain entered to lowercase
  • Change the API to convert the domain it receives to lowercase
  • Change FTL to accept upper case letters in a domain

Edit:

Easy PR if needed: Allow upper case letters in domains/hosts by PromoFaux · Pull Request #1910 · pi-hole/FTL · GitHub

1 Like

The PR have been merged, @seh2000 could you update and verify the issue is gone?

Hi,
My bad - as I didn't check lower case, not sure why I forgot to try :slight_smile:
I can confirm lower case works with current version.

image_2024-03-16_091751419

Core vDev (development-v6, 71b17294)FTL vDev (development-v6, a0d65543)Web interface vDev (development-v6, 240b3aaf)

Hello,
Confirming with latest update both upper and lower cases works.
Thanks