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

[Bug] TXT records with DMARC content rejected by atomiadnsclient #21

Open
klaver opened this issue Feb 2, 2015 · 1 comment
Open

[Bug] TXT records with DMARC content rejected by atomiadnsclient #21

klaver opened this issue Feb 2, 2015 · 1 comment

Comments

@klaver
Copy link

klaver commented Feb 2, 2015

Hi Atomia,

We love your DNS API, it's working wonderful!

Recently we tried to enable DMARC support for our domains, but the required dataformat does not seem to be accepted by the atomiadnsclient script.
Could you please fix this?

Tried to add the following record:
_dmarc IN 3600 TXT "v=DMARC1; p=none; rua=mailto:[email protected];"

Returned error message:
"struct parameter needs to have format 'key1 = value2; key2 = value2' at /usr/bin/atomiadnsclient line 110."

@jimmybergman
Copy link
Contributor

Yes, this is a known issue, the serialization format used for arguments with atomiadnsclient has no quoting - we are fixing it in the near future.

However as a workaround you can add it directly through the JSON API with curl instead, like:

curl -i -X POST -d '[ "somezone.com", [ { "ttl": 3600, "label": "_dmarc", "class": "IN", "id": -1, "type": "TXT", "rdata": "v=DMARC1; p=none; rua=mailto:[email protected];" } ] ]' http://localhost/pretty/atomiadns.json/AddDnsRecords; echo

Hope it helps.

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

No branches or pull requests

2 participants