The pgsqldns SQL Schema

pgsqldns makes use of two tables, domain and entry.

domain must contain at least the following fields:

entry must contain at least the following fields:

If timestamp is set and ttl is zero, the TTL sent in the record is set such that the record will expire no later than the given time, and after the given time is reached the record is no longer served out. If timestamp is set and ttl is not zero, the record is only served out after the given time (with its TTL as indicated).

type must be one of the following:

All other types are currently ignored.

These tables may contain any additional fields. It is recommended to index on domain(name), entry(prefix,domain), and on entry(ip) for maximum performance, as these are the fields used as select keys.