mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 09:40:22 +00:00
Add named.conf
This commit is contained in:
parent
db95f2af8d
commit
40f7c44b9a
1 changed files with 64 additions and 0 deletions
64
bind/files/named.conf
Normal file
64
bind/files/named.conf
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
//
|
||||||
|
// /etc/named.conf
|
||||||
|
//
|
||||||
|
|
||||||
|
options {
|
||||||
|
directory "/var/named";
|
||||||
|
pid-file "/run/named/named.pid";
|
||||||
|
auth-nxdomain yes;
|
||||||
|
datasize default;
|
||||||
|
// Uncomment these to enable IPv6 connections support
|
||||||
|
// IPv4 will still work:
|
||||||
|
// listen-on-v6 { any; };
|
||||||
|
// Add this for no IPv4:
|
||||||
|
// listen-on { none; };
|
||||||
|
|
||||||
|
// Default security settings.
|
||||||
|
allow-recursion { 127.0.0.1; };
|
||||||
|
allow-transfer { none; };
|
||||||
|
allow-update { none; };
|
||||||
|
version none;
|
||||||
|
hostname none;
|
||||||
|
server-id none;
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "localhost" IN {
|
||||||
|
type master;
|
||||||
|
file "localhost.zone";
|
||||||
|
allow-transfer { any; };
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "0.0.127.in-addr.arpa" IN {
|
||||||
|
type master;
|
||||||
|
file "127.0.0.zone";
|
||||||
|
allow-transfer { any; };
|
||||||
|
};
|
||||||
|
|
||||||
|
zone "." IN {
|
||||||
|
type hint;
|
||||||
|
file "root.hint";
|
||||||
|
};
|
||||||
|
|
||||||
|
//zone "example.org" IN {
|
||||||
|
// type slave;
|
||||||
|
// file "example.zone";
|
||||||
|
// masters {
|
||||||
|
// 192.168.1.100;
|
||||||
|
// };
|
||||||
|
// allow-query { any; };
|
||||||
|
// allow-transfer { any; };
|
||||||
|
//};
|
||||||
|
|
||||||
|
logging {
|
||||||
|
channel xfer-log {
|
||||||
|
file "/var/log/named.log";
|
||||||
|
print-category yes;
|
||||||
|
print-severity yes;
|
||||||
|
print-time yes;
|
||||||
|
severity info;
|
||||||
|
};
|
||||||
|
category xfer-in { xfer-log; };
|
||||||
|
category xfer-out { xfer-log; };
|
||||||
|
category notify { xfer-log; };
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue