-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Wrong quoting for local-data TXT records #196
Comments
Sorry, I was wrong! The quoting can be set by the caller for arrays. |
Not a worry, glad you sorted it out. |
I stumbled on the same problem and I don't understand what you were meaning by:
As far as I can see, the double quotes are hardcoded in the erb template:
So how do you handle TXT records containing double quotes and spaces (like DKIM records) ? Thanks in advance for your help. |
My comment above
was for the puppet-unbound/templates/unbound.conf.erb Line 192 in e1b498d
If you hand over something like this:
to the unbound class:
you will get, what you want. For the quoting in templates/local_zone.erb you are absolutely right. So my comment above was right by accident:
But I would suggest to do this on all |
Thanks a lot for your answer. I identified two ways to insert local-data (local_zone and record) but I missed the third one :-) |
Hi,
There is a problem with the qouting in the unbound.conf file for TXT records in the local-data field. Since TXT records can contain whitespaces double quotes are needed around the rdata part of the local-data set. Hence the local-data entry has to be single quoted. This is explicitly described in the unbound.conf man page:
I would suggest to use single quotes for all local-data entries. This is not explicitly allowed in the unbound.conf manual, but it works on my unbound installation flawless.
Kind regards
Count Sudoku
The text was updated successfully, but these errors were encountered: