[Pdns-users] Remote backend docs

Aki Tuomi cmouse at cmouse.fi
Mon Dec 5 11:34:07 UTC 2016



On 05.12.2016 13:28, Mike Cardwell wrote:
> Hi,
>
> Just got started with PowerDNS. Developing an application using the
> Remote backend, but the docs at
> https://doc.powerdns.com/md/authoritative/backend-remote/ seem a
> little sparse. What do the following parameters contain and when
> should they be used?
>
> zone_id
> domain_id
> auth
> scopeMask
>
> I'm particularly interested in scopeMask as it seems to be related
> to powerdns caching the returned values from my application and I
> intend to return different results based on the "real-remote"...
>
> If documentation does not exist for these parameters, how do I go
> about contributing some (once I've figured out exactly how
> they're used) ?
>
>

zone_id = optional zone id, or use -1 if you do not care about such
things. This is an opaque integer used by powerdns in various places to
tell you which zone it means.

domain_id = ditto above, but for domains

auth = 1 if your data is authoritative for the zone and 0 if not.
usually you should set this to 1. setting it 0 will put the data into
additional section.

scopeMask = how many bits of requestor IP was used to produce this
result. this should 0 unless you are using the client's (real) IP
somehow to come up with the answer, and if you do, how many bits of the
value was used. 128 (v6) or 32 (v4) means you used up the whole IP, 0
means no bits were used.

Aki


More information about the Pdns-users mailing list