F
F
Fleisar2019-06-07 18:12:47
Domain Name System
Fleisar, 2019-06-07 18:12:47

How to properly configure bind?

There is a BIND server that is configured for one zone, and it redirects the rest to other servers, but when I connect outside the local network, it shows the dns_probe_finished_nxdomain error. In the local network, the connection refused error sometimes crashes.
config dns.conf
options {
directory "w:/userdata/Bind-9.12-x64";
allow-transfer {none; };
forwarders { 1.1.1.1; 8.8.8.8; };
# allow-recursion { any; 127.0.0.1; 10.0.0.0/8; 169.254.0.0/16; 172.16.0.0/12; 192.168.0.0/16; };
allow recursion {any; };
allow-query {any; };
recursion yes;
version "DNS";
max-cache-size 30M;
listen-on-v6 { none; };
listen-on {any; };
notify no;
dnssec-enable no;
pid-file "w:/userdata/temp/named.pid";
session-keyfile "w:/userdata/Bind-9.12-x64/session.key";
managed-keys-directory "w:/userdata/Bind-9.12-x64/keys";
};
controls{};
logging {
channel log { file "w:/userdata/logs/Bind-9.12-x64.log" versions 2 size 3m; print-time yes; print-category yes; print-severity yes;};
category default {log; };
category queries {log; };
};
zone "domain.zzz" IN { type master; file "w:/userdata/Bind-9.12-x64/zones/domain.zzz_zone.conf"; allow-update { none; }; };
zone config
$ORIGIN domain.zzz. ; default zone domain
$TTL 60 ; default time to live
@ IN SOA ns1.domain.zzz. hostmaster. domain.zzz. (
1906072144; serial number
60 ; Refresh
60 ; Retry
1209600 ; Expire
60 ; Min TTL
)
domain.zzz. 60 IN NS ns1.domain.zzz.
domain.zzz. 60 IN A 95.170.177.81
ns1 60 IN A 95.170.177.81

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-06-07
@shambler81

$TTL        3600
@       IN      SOA     ns1.ks05.ru. viktor.7877796.ru. (
                        2019011401       ; serial, todays date + todays serial #
                        7200              ; refresh, seconds
                        540              ; retry, seconds
                        604800              ; expire, seconds
                        86400 )            ; minimum, seconds
;

chaye.ru. 3600 A        95.216.36.253
www 3600 A        95.216.36.253
mail.chaye.ru. 3600      CNAME        domain.mail.yandex.net.
chaye.ru. 3600      MX    10   mx.yandex.net.
mx 3600      MX    10   chaye.ru
chaye.ru. 3600      NS        ns2.ks05.ru.
chaye.ru. 3600      NS        ns1.ks05.ru.
95.216.36.253.in-addr.arpa  3600      PTR        chaye.ru
chaye.ru. 3600      TXT        "v=spf1 ip4:95.216.36.253 ip4:95.216.104.125 include:_spf.yandex.net                                                                                                                                                                                                                          ~all"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question