-
Notifications
You must be signed in to change notification settings - Fork 905
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: Data field in DNS should start with quote (") at position 0 of ... #6087
Comments
main issue: #6010 |
I'm not so sure about that - it seems the main issue here is that somewhere the quotes get lost. I.e. if the following command fails:
the error message should be:
I.e. the shell removes the outer single quotes And this shouldn't fail to parse even considering #6010. This command though:
is actually #6010: if the passed data is parsed as "master (zone) format", it should (when #6010 gets fixed) be the same as:
One might argue that |
Same here with a _ value like:
Got the same error: |
This variant works for me on master. |
It also works for me on 4.0.5. |
|
@poralix can you please retry the variant that works for me? |
works for me |
We're seeing the same issue on CentOS-6 with v4.1.2 "pdnsutil" is stripping the double quotes, even when they are wrapped in single quotes (which are stripped off by the shell) - but wrapping the text in two sets of double quotes and in single quotes works fine!!! pdnsutil add-record test.com host txt 86400 '"some text"' ... but ... 4.1.3 works fine on CentOS-7 - Will try all combinations of CentOS 6 & 7 with 4.1.2 & 4.1.3 and report |
Smells like a difference in the shell
You'll need the GCC from |
Quoting Pieter Lexis <notifications@github.com>:
> Bug still exists in v4.1.3 on CentOS-6, but not on CentOS-7
Smells like a difference in the shell
Indeed - I tried changing the "LANG" from "en_US.UTF-8" to "C", but couldn't
think of anything else.
> gcc-g++ is unable to build pdns from source on CentOS-6, so I've not
investigated this further, yet
You'll need the GCC from `devtoolset-4` to compile from master.
Right - I'm on it.
… --
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#6087 (comment)
|
./pdns/pdnsutil add-record test.com host txt 86400 '"this is text"' the double quotes are getting into "pdnsutil" - its not the shell that's stripping them out. |
When using PowerDNS API to request LetsEncrypt ACME over DNS auth, we also receive this error.
however,
and:
|
Please don't use redacted names and show us the HTTP data send to/from the API, the database content and tell us how the record was added initially (see our policy). |
Pieter, Seems like the erorr was due to the fact no double quotes were indeed around the TXT record. Seems like PowerAdmin (and of course direct mysql insert) allow adding TXT records without the quotes. Querying the DNS via Dig show no errors, and the TXT resolves as it should. Tnx for responding, |
I haven't yet read all linked bug reports here, but may I ask how can we help here? What kind of help is needed? Is this regarded as a bug in the api or in pdns_util? Or was this maybe by chance fixed in a later release and just this bug report was not closed? We hadn't the time yet to upgrade to the latest release, so if we are capable of helping out.. Thanks for any update on this! |
Good questions! We've never been able to reproduce the issue, and we've done a bunch of releases with various fixes since then, so I'm closing the ticket now. If anybody still has this problem, they can post here and we'll reopen, or they can make a new ticket. |
I'm sorry! I should've mentioned that we indeed stumbled upon this bug, so to sum this up:
we would at least expect pdnsutil to also complain about missing double quotes, or fix the api to accept missing double quotes. it should be consistent at least. we use pdns-server 4.2.3 currently. I can provide completely detailed shelloutput if needed, just need to gather the information internally. Thanks for the fast answer, anyway! |
here is an example, hope this is helpful:
if you need additional information, don't hesitate to ask me 😃 |
This ticket is about pdnsutil, not the API. What you are describing is #7960 I think. |
Short description
Adding DKIM/SPF record as a TXT-type record fails with an error:
Steps to reproduce
as
root
in a server console:Expected behaviour
The TXT record should be added
Actual behaviour
pdnsutil
drops an errorOther information
Tested 3 CentOS servers, the same setup, the same result. No PHP installed on the server.
In order to bypass it I need to connect to MySQL console and run INSERT command manually.
Usecase
Install SPF, DKIM records into an existing dns zone
Description
Install SPF, DKIM records into an existing dns zone
The text was updated successfully, but these errors were encountered: