Download NSSYNC - Puszcza
Transcript
Chapter 4: Nssync Configuration
15
[Configuration]
A query for retrieving RRs from reverse delegation zones. Use the ‘$zone’
reference for the zone name.
rev-rr-query string
Here is an example of a working sync directive:
sync external {
zone-conf "/var/namedb/nssync/zones.external";
zonefile-pattern "/var/namedb/external/db.${zone}";
soa-query
"select zone, ttl, type, data, resp_person, "
"serial, refresh, retry, expire, minimum "
"from dns_soa where type=’SOA’ "
"and view=’external’ order by zone";
ns-query
"select ttl, type, data "
"from dns_soa where zone=’$zone’ "
"and type<>’SOA’ and view=’external’";
rr-query
"select host, ttl, type, mx_priority, "
"case when type=’TXT’ then "
"concat(’\"’, data, ’\"’) "
"else data end "
"from dns_records "
"where zone=’$zone’ and view=’external’ "
"order by 1";
rev-rr-query "select host, ttl, type, mx_priority, "
"case when type=’TXT’ then "
"concat(’\"’, data, ’\"’) "
"else data end "
"from dns_records "
"where zone=’$zone’ and view=’external’ "
"order by cast(host as unsigned)";
}