[Pdns-users] pdns server api access leads to "Internal Server Error"

Tobi <jahlives@gmx.ch> jahlives at gmx.ch
Tue May 7 15:39:00 UTC 2019


Hi Frank

think we're getting closer ;-) I added a new testdomain to pdns and that
one was no problem on endpoint. After enabling debug in pdns.conf the
following line jumped to my eyes

> HTTP ISE for "/api/v1/servers/localhost/zones/REDACTED.tld": STL
> Exception: Parsing record content (try 'pdnsutil check-zone'): Data
> field in DNS should start with quote (") at position 0 of 'v=spf1
> -all'

although the recommended check-zone does not show any error or warning.
If I dig the SPF for that domain it properly shows

> "v=spf1 -all"

in dns response from pdns auth server.
So my question now is how is it possible that the very same record is
formatted correctly to be returned as DNS reply but it fails according
to API? That does somehow not make much sense to me ;-)

Cheers

tobi

p.s. it's difficult to provide you with our domains and records as they
contain customers stuff. Especially we could not do that onlist. But now
I think the source of error is narrowed down anyway :-)

Am 07.05.19 um 17:11 schrieb frank+pdns--- via Pdns-users:
> Hi Tobi,
>
>>
>> is there a switch to just enable debug for api or has the debug to be
>> enabled globally? Will try with debug and let the list know my findings :-)
>
> Pre 4.2, this has to be done globally. See the “loglevel” parameter: https://docs.powerdns.com/authoritative/settings.html#loglevel
>
> Could you also show us a full copy of the pdns.conf file, and a "select *” from the domains, records and domainsmetadata SQL tables?
>
> Frank
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
>


More information about the Pdns-users mailing list