Karta. PowerDNS
(Karta v1.0.0)
The PowerDNS Authoritative Server, through its HTTP API: Karta's default
DNS provider (Karta.DNS.Provider), which publishes its own records of
sending domains in the zones an operator allows (Karta.DNS.Publish).
Configuration (config :karta, Karta.PowerDNS; in production from the
environment, see the configuration guide):
:url- the API's base URL, e.g."http://127.0.0.1:8081"(KARTA_POWERDNS_URL). Without it, or without a key, Karta publishes nothing.:api_key- the API key (KARTA_POWERDNS_API_KEY).:server_id- default"localhost"(KARTA_POWERDNS_SERVER_ID).:zones- the zones Karta may write to (KARTA_POWERDNS_ZONES, separated by commas). Karta writes in no other zone.:receive_timeout- milliseconds per request, default 15 000.:req_options- extraReqoptions (tests useplug:).
The URL is the instance's configuration, never input: no organisation can point Karta at another server. Redirects are not followed (one could carry the key elsewhere) and requests are not retried (the hourly job tries again). Errors are reported with the status and PowerDNS's own message, never with the request.
An RRset Karta wrote carries a PowerDNS comment of the account karta
that names the domain's id; that comment is the owner tag of
Karta.DNS.RRSet. Names are as PowerDNS has them: absolute (with the
final dot), in lower case.
Summary
Functions
The settings in the environment (KARTA_POWERDNS_*), or nil.
A configuration made ready for use: nil without a URL or a key; zones
in lower-case ASCII form without the final dot.