named.conf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. options {
  2. directory "/var/named";
  3. // uncomment the following lines to turn on DNS forwarding,
  4. // and change the forwarding ip address(es) :
  5. //forward first;
  6. //forwarders {
  7. // 123.123.123.123;
  8. // 123.123.123.123;
  9. //};
  10. listen-on-v6 { none; };
  11. listen-on { 127.0.0.1; };
  12. // to allow only specific hosts to use the DNS server:
  13. //allow-query {
  14. // 127.0.0.1;
  15. //};
  16. // if you have problems and are behind a firewall:
  17. //query-source address * port 53;
  18. pid-file "/run/named/named.pid";
  19. // Enable recursion , this is a potential security problem, see http://www.us-cert.gov/reading_room/DNS-recursion033006.pdf
  20. // recursion yes;
  21. // allow-recursion { localnets; localhost; };
  22. // allow-query-cache { localnets; localhost; };
  23. };
  24. // Briefly, a zone which has been declared delegation-only will be effectively
  25. // limited to containing NS RRs for subdomains, but no actual data beyond its
  26. // own apex (for example, its SOA RR and apex NS RRset). This can be used to
  27. // filter out "wildcard" or "synthesized" data from NAT boxes or from
  28. // authoritative name servers whose undelegated (in-zone) data is of no
  29. // interest.
  30. // See http://www.isc.org/products/BIND/delegation-only.html for more info
  31. //zone "COM" { type delegation-only; };
  32. //zone "NET" { type delegation-only; };
  33. zone "." IN {
  34. type hint;
  35. file "named.ca";
  36. };
  37. zone "localhost" IN {
  38. type master;
  39. file "pri/localhost.zone";
  40. allow-update { none; };
  41. notify no;
  42. };
  43. zone "127.in-addr.arpa" IN {
  44. type master;
  45. file "pri/127.zone";
  46. allow-update { none; };
  47. notify no;
  48. };