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

Handle TXT records containing double quotes and white space #237

Closed
FredericLespez opened this issue Jun 28, 2020 · 0 comments · Fixed by #238
Closed

Handle TXT records containing double quotes and white space #237

FredericLespez opened this issue Jun 28, 2020 · 0 comments · Fixed by #238

Comments

@FredericLespez
Copy link
Contributor

FredericLespez commented Jun 28, 2020

DNS records for DKIM contain spaces and double quotes.

The unbound documentation for local-data directives advise the usage of single quotes for TXT records to handle white space et double quotes.

Here is an example of how to set a DKIM record in unbound:

local-data: 'mail._domainkey.example.com 14400 IN TXT "v=DKIM1;h=sha256;k=rsa;""p=DKIM_KEY_PART_1""DKIM_KEY_PART_2"'

How handle such a record with this Puppet Module ?

As far as I can see, the double quotes are hardcoded in the erb template:

local-data: "<%= rr %>"

$local_data = " local-data: \"${entry} ${ttl} IN ${type} ${content}\"\n"

According to the reporter of issue #196, it seems there is way to handle this but he didn't say how :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant