Advertisement
Guest User

Untitled

a guest
Apr 13th, 2012
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. // This is the primary configuration file for the BIND DNS server named.
  2. //
  3. // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
  4. // structure of BIND configuration files in Debian, *BEFORE* you customize
  5. // this configuration file.
  6. //
  7.  
  8.  
  9. options {
  10.  
  11. port 53;
  12. listen-on {any;};
  13. listen-on-v6 {none;};
  14. version "Get lost";
  15. directory "/etc/bind";
  16. };
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. logging {
  24. channel query.log {
  25. file "/var/log/query.log";
  26. // Set the severity to dynamic to see all the debug messages.
  27. severity dynamic;
  28. };
  29.  
  30. category queries { query.log; };
  31. };
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. dlz "Mysql zone" {
  39. database "mysql
  40. {host=127.0.0.1 port=3306 dbname=bind9 user=root pass=alfa12}
  41. {SELECT zone FROM dns_records WHERE zone = '$zone$'}
  42. {SELECT ttl, type, mx_priority, IF(type = 'TXT', CONCAT('\"',data,'\"'), data) AS data
  43. FROM dns_records
  44. WHERE zone = '$zone$' AND host = '$record$' AND type <> 'SOA' AND type <> 'NS'}
  45. {SELECT ttl, type, data, primary_ns, resp_person, serial, refresh, retry, expire, minimum
  46. FROM dns_records
  47. WHERE zone = '$zone$' AND (type = 'SOA' OR type='NS')}
  48. {SELECT ttl, type, host, mx_priority, IF(type = 'TXT', CONCAT('\"',data,'\"'), data) AS data, resp_person, serial, refresh, retry, expire, minimum
  49. FROM dns_records
  50. WHERE zone = '$zone$' AND type <> 'SOA' AND type <> 'NS'}
  51. {SELECT zone FROM xfr_table where zone='$zone$' AND client = '$client$'}";
  52. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement