Cant get getDomainInfo on Remote backend to work
Austin Brandis <[email protected]> Sat, 25 Jan 2020 00:38:26 +0930
| Newsgroups | gmane.network.dns.powerdns.devel |
|---|---|
| Message-ID | <CABhS6AoNFu_ADAzm7U4Acn+6+zdOKTim70XWasCJGgD49JxfDA@mail.gmail.com> |
--===============4551897838844360500==
Content-Type: multipart/alternative; boundary="000000000000daa366059ce42177"
--000000000000daa366059ce42177
Content-Type: text/plain; charset="UTF-8"
Hi,
Please let me know if I'm not on the right mailing list.
I've searched all the github issues, and elsewhere but have not found
anything helpful.
Currently developing a remote backend, but am having some trouble with the
getDomainInfo call.
I'm making a POST request to the web API to /domain/add
Here is where I get lost...
My backend receives a getDomainInfo query after an Initialize.
Whilst I found this initially odd, I figured that maybe PDNS was confirming
the presence of any domain first, and then an "set" query would be issued
later.
Though the documentation for remote backend (
https://doc.powerdns.com/authoritative/backends/remote.html) also does not
indicate which "query" does the adding.
I figured I'd just work it out when the relevant JSON arrives.
My backend receives a getDomainInfo JSON as such
<https://doc.powerdns.com/authoritative/backends/remote.html#getdomaininfo>
e.g. {"method":"getdomaininfo","parameters":{"name":"foo.com"}}
when foo.com does not exit it is unclear in the documentation what the
backend should return.
No matter what I try the HTTP response from the WEB API after the POST is
always 400, and PDNS closes the socket to my backend.
All suggesting PDNS remote is not happy with the JSON response to the
getDomainInfo query
I have tried
{"result":{}}
{"result":""}
{"result":null}
{"result":false}
{"result":"zone":{}}
{"result":"zone":""}
{"result":"zone":null}
responses, but none work.
What am I doing wrong ?
I assume domain additions are implemented in remote backend ?
Thanks
Austin
--000000000000daa366059ce42177
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi,<div><br></div><div>Please let me know if I'm not o=
n the right mailing=C2=A0list.</div><div>I've searched all the github i=
ssues, and elsewhere but have not found anything helpful.</div><div><br></d=
iv><div>Currently developing a remote backend, but am having some trouble w=
ith the getDomainInfo call.</div><div><br></div><div>I'm making a POST =
request=C2=A0to the web API to /domain/add</div><div><br></div><div>Here is=
where I get lost...</div><div>My backend receives a getDomainInfo query af=
ter an Initialize.</div><div>Whilst I found this initially odd, I figured t=
hat maybe PDNS was confirming the presence of any domain first, and then an=
"set" query would be issued later.</div><div>Though the document=
ation for remote backend (=C2=A0<a href=3D"https://doc.powerdns.com/authori=
tative/backends/remote.html" target=3D"_blank">https://doc.powerdns.com/aut=
horitative/backends/remote.html</a>) also does not indicate which "que=
ry" does the adding.</div><div>I figured I'd just work it out when=
the relevant JSON arrives.</div><div><br></div><div>My backend receives a =
getDomainInfo JSON as such<a href=3D"https://doc.powerdns.com/authoritative=
/backends/remote.html#getdomaininfo" target=3D"_blank"></a></div><div></div=
><div><span style=3D"color:rgb(51,51,51);font-family:Consolas,monospace;fon=
t-size:15px;box-sizing:border-box">e.g.=C2=A0=C2=A0{"method":&quo=
t;getdomaininfo","parameters":{"name":"<a hre=
f=3D"http://foo.com">foo.com</a>"}}<br></span></div><div><span style=
=3D"color:rgb(51,51,51);font-family:Consolas,monospace;font-size:15px;box-s=
izing:border-box"><br></span></div><div>when=C2=A0<a href=3D"http://foo.com=
/" target=3D"_blank">foo.com</a>=C2=A0does not exit it is unclear in the do=
cumentation what the backend should return.=C2=A0</div><div>No matter what =
I try the HTTP response from the WEB API after the POST is always 400, and =
PDNS closes the socket to my backend.</div><div>All suggesting PDNS remote =
is not happy with the JSON response to the getDomainInfo query</div><div><b=
r></div><div>I have tried=C2=A0</div><div>{"result":{}}</div><div=
>{"result":""}</div><div>{"result":null}</div=
><div>{"result":false}</div><div>{"result":"zone&q=
uot;:{}}</div><div>{"result":"zone":""}</div>=
<div>{"result":"zone":null}<br></div><div>responses, bu=
t none work.</div><div><br></div><div>What am I doing wrong ?</div><div>I a=
ssume domain additions are implemented in remote backend ?</div><div><br></=
div><div>Thanks</div><div>Austin</div></div>
--000000000000daa366059ce42177--
--===============4551897838844360500==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Pdns-dev mailing list
[email protected]
https://mailman.powerdns.com/mailman/listinfo/pdns-dev
--===============4551897838844360500==--