add note about correct server ID to use for API calls #13

Merged
famfo merged 1 commit from tetov/servfail-docs:api_use_soa into meow 2026-01-22 22:26:10 +01:00
Contributor

Found out this will setting up caddy dns.providers.powerdns and thought it would be good to document :)

Found out this will setting up [caddy dns.providers.powerdns](https://caddyserver.com/docs/modules/dns.providers.powerdns) and thought it would be good to document :)
Author
Contributor

And my editor ate some trailing whitespace, sorry not sorry.

And my editor ate some trailing whitespace, sorry not sorry.
content/api.md Outdated
@ -28,3 +28,3 @@
- `/api/v1/servers/{server}/zones/{zone}/{action}`
`{server}` is one of our NSes (including the canonical trailing dot) and `{zone}` is your domain (also with the canonical dot). Some PowerDNS libraries strip the canonical dot from the URL, which is accepted by PowerDNS itself, but not by our API proxy; Work on creating a fix for this is already underway.
`{server}` should be your main nameserver (your [SOA](@/basics.md#SOA)) including the canonical trailing dot. `{zone}` is your domain (also with the canonical dot). Some PowerDNS libraries strip the canonical dot from the URL, which is accepted by PowerDNS itself, but not by our API proxy; Work on creating a fix for this is already underway.
Owner

I'd change this to say something along the lines of "the nameserver you choose as your primary while adding the domain". The SOA is a consequence of that, I guess that is a nice reference in case someone forgets.

I'd change this to say something along the lines of "the nameserver you choose as your primary while adding the domain". The SOA is a consequence of that, I guess that is a nice reference in case someone forgets.
Author
Contributor

I updated the text to

{server} should be the nameserver you chose as your primary when you added your domain (check your SOA), including the canonical trailing dot.

😸

I updated the text to > `{server}` should be the nameserver you chose as your primary when you added your domain (check your [SOA](@/basics.md#SOA)), including the canonical trailing dot. 😸
famfo marked this conversation as resolved
tetov force-pushed api_use_soa from 2f2eed390b to 208059aeff 2026-01-06 20:50:09 +01:00 Compare
content/api.md Outdated
@ -50,0 +51,4 @@
```sh
export server=miyuki.sakamoto.pl.
export zone=sdomi.pl.
Owner

Please use example domains for documentation (for example example.com or from the .example TLD).

Please use example domains for documentation (for example `example.com` or from the `.example` TLD).
Owner

Again, thanks for the docs. I will resolve the merge conflict and merge this as-is to move to a separate page with has documentation for how to use software with servfail and the PowerDNS API.

Again, thanks for the docs. I will resolve the merge conflict and merge this as-is to move to a separate page with has documentation for how to use software with servfail and the PowerDNS API.
famfo force-pushed api_use_soa from 208059aeff to 5887c57b2c
All checks were successful
/ build (push) Successful in 17s
2026-01-22 22:25:33 +01:00
Compare
Owner

I hope that you don't mind that this commit is now signed with my key ^^'

I hope that you don't mind that this commit is now signed with my key ^^'
famfo merged commit 5887c57b2c into meow 2026-01-22 22:26:10 +01:00
Author
Contributor

Thanks! Sorry I left this one hanging so long!

Thanks! Sorry I left this one hanging so long!
tetov deleted branch api_use_soa 2026-01-30 14:39:15 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
servfail/docs!13
No description provided.