Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- controls {
- inet 0.0.0.0 port 953 allow {
- "any";
- } keys {
- "rndc-key";
- };
- };
- logging {
- channel "query.log" {
- file "/var/log/query.log";
- severity dynamic;
- };
- category "queries" {
- "query.log";
- };
- };
- key "rndc-key" {
- algorithm "hmac-md5";
- secret "4ptlffIBhVnZgfdT0CXIcLDZeONxA5bHUVT5W2NofC9O4FOfjps8FzghoQy4myXnJ0g9jrna9Sjl6uKt6c/22A==";
- };
- dlz "Mysql zone" {
- database "mysql
- {host=localhost port=3306 dbname=bind9_dlz user=root password=xxxx}
- {SELECT zone FROM dns_records WHERE zone = '$zone$'}
- {SELECT ttl, type, mx_priority, IF(type = 'TXT', CONCAT('"',data,'"'), data) AS data
- FROM dns_records
- WHERE zone = '$zone$' AND host = '$record$' AND type <> 'SOA' AND type <> 'NS'}
- {SELECT ttl, type, data, primary_ns, resp_person, serial, refresh, retry, expire, minimum
- FROM dns_records
- WHERE zone = '$zone$' AND (type = 'SOA' OR type='NS')}
- {SELECT ttl, type, host, mx_priority, IF(type = 'TXT', CONCAT('"',data,'"'), data) AS data, resp_person, serial, refresh, retry, expire, minimum
- FROM dns_records
- WHERE zone = '$zone$' AND type <> 'SOA' AND type <> 'NS'}
- {SELECT zone FROM xfr_table where zone='$zone$' AND client = '$client$'}";
- };
Add Comment
Please, Sign In to add comment