2. Random Backend

Table A.2. Random Backend capabilities

NativeYes
MasterNo
SlaveNo
SuperslaveNo
AutoserialNo
CaseDepends
DNSSECYes, no key storage
Module namebuilt in
Launch namerandom


This is a very silly backend which is discussed in Section 1, “Simple read-only native backends” as a demonstration on how to write a PowerDNS backend.

This backend knows about only one hostname, and only about its IP address at that. With every query, a new random IP address is generated.

It only makes sense to load the random backend in combination with a regular backend. This can be done by prepending it to the launch= instruction, such as launch=random,gmysql.

Variables:

random-hostname

Hostname for which to supply a random IP address.