Fixing bind9 config
cubox-m still doesn't respond to outside requests
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
*/
|
||||
|
||||
acl "xfer" {
|
||||
/* Deny transfers by default except for the listed hosts.
|
||||
* If we have other name servers, place them here.
|
||||
*/
|
||||
none;
|
||||
/* Deny transfers by default except for the listed hosts.
|
||||
* If we have other name servers, place them here.
|
||||
*/
|
||||
none;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -22,64 +22,73 @@ acl "xfer" {
|
||||
* recursive queries
|
||||
*/
|
||||
acl "trusted" {
|
||||
127.0.0.0/8;
|
||||
192.168.4.0/24;
|
||||
::1/128;
|
||||
192.168.4.11;
|
||||
192.168.4.12;
|
||||
192.168.4.15;
|
||||
192.168.4.0/24;
|
||||
localhost;
|
||||
localnets;
|
||||
};
|
||||
|
||||
statistics-channels {
|
||||
inet * port 8053 allow { trusted; };
|
||||
};
|
||||
//statistics-channels {
|
||||
// inet * port 8053 allow { any; };
|
||||
//};
|
||||
|
||||
options {
|
||||
directory "/var/cache/bind";
|
||||
directory "/var/cache/bind";
|
||||
|
||||
// If there is a firewall between you and nameservers you want
|
||||
// to talk to, you may need to fix the firewall to allow multiple
|
||||
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
|
||||
// If there is a firewall between you and nameservers you want
|
||||
// to talk to, you may need to fix the firewall to allow multiple
|
||||
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
|
||||
|
||||
// If your ISP provided one or more IP addresses for stable
|
||||
// nameservers, you probably want to use them as forwarders.
|
||||
// Uncomment the following block, and insert the addresses replacing
|
||||
// the all-0's placeholder.
|
||||
// If your ISP provided one or more IP addresses for stable
|
||||
// nameservers, you probably want to use them as forwarders.
|
||||
// Uncomment the following block, and insert the addresses replacing
|
||||
// the all-0's placeholder.
|
||||
|
||||
forward first;
|
||||
forwarders {
|
||||
// 207.164.234.129; // Your ISP NS
|
||||
// 207.164.234.193; // Your ISP NS
|
||||
// 4.2.2.1; // Level3 Public DNS
|
||||
// 4.2.2.2; // Level3 Public DNS
|
||||
8.8.8.8; // Google Open DNS
|
||||
8.8.4.4; // Google Open DNS
|
||||
};
|
||||
forward first;
|
||||
forwarders {
|
||||
// 207.164.234.129; // Your ISP NS
|
||||
// 207.164.234.193; // Your ISP NS
|
||||
// 4.2.2.1; // Level3 Public DNS
|
||||
// 4.2.2.2; // Level3 Public DNS
|
||||
8.8.8.8; // Google Open DNS
|
||||
8.8.4.4; // Google Open DNS
|
||||
};
|
||||
|
||||
//========================================================================
|
||||
// If BIND logs error messages about the root key being expired,
|
||||
// you will need to update your keys. See https://www.isc.org/bind-keys
|
||||
//========================================================================
|
||||
dnssec-validation auto;
|
||||
//========================================================================
|
||||
// If BIND logs error messages about the root key being expired,
|
||||
// you will need to update your keys. See https://www.isc.org/bind-keys
|
||||
//========================================================================
|
||||
//dnssec-validation auto; //auto?
|
||||
dnssec-validation no; //auto?
|
||||
|
||||
auth-nxdomain no; # conform to RFC1035
|
||||
listen-on-v6 { any; };
|
||||
//auth-nxdomain no; # conform to RFC1035
|
||||
listen-on-v6 { any; };
|
||||
|
||||
//allow-recursion { trusted; };
|
||||
//listen-on { any; };
|
||||
//query-source address *;
|
||||
//allow-query { trusted; };
|
||||
};
|
||||
|
||||
|
||||
|
||||
logging {
|
||||
channel default_log {
|
||||
file "/var/log/named/named.log" versions 3 size 5M;
|
||||
severity notice;
|
||||
print-time yes;
|
||||
print-severity yes;
|
||||
print-category yes;
|
||||
};
|
||||
|
||||
category default { default_log; };
|
||||
category general { default_log; };
|
||||
};
|
||||
//logging {
|
||||
// channel default_log {
|
||||
// file "/var/log/named/named.log" versions 3 size 5M;
|
||||
// severity notice;
|
||||
// print-time yes;
|
||||
// print-severity yes;
|
||||
// print-category yes;
|
||||
// };
|
||||
//
|
||||
// category default { default_log; };
|
||||
// category general { default_log; };
|
||||
//};
|
||||
|
||||
|
||||
include "/etc/bind/rndc.key";
|
||||
controls {
|
||||
inet 127.0.0.1 port 953 allow { 127.0.0.1; ::1; } keys { "rndc-key"; };
|
||||
};
|
||||
//include "etc/bind/rndc.key";
|
||||
//controls {
|
||||
// inet 127.0.0.1 port 953 allow { 127.0.0.1; ::1; } keys { "rndc-key"; };
|
||||
//};
|
||||
|
||||
Reference in New Issue
Block a user