Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is the primary configuration file for the BIND DNS server named.
- //
- // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
- // structure of BIND configuration files in Debian, *BEFORE* you customize
- // this configuration file.
- //
- options {
- port 53;
- listen-on {any;};
- listen-on-v6 {none;};
- version "Get lost";
- directory "/etc/bind";
- };
- logging {
- channel query.log {
- file "/var/log/query.log";
- // Set the severity to dynamic to see all the debug messages.
- severity dynamic;
- };
- category queries { query.log; };
- };
- dlz "Mysql zone" {
- database "mysql
- {host=127.0.0.1 port=3306 dbname=bind9 user=root pass=alfa12}
- {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$'}";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement