{"id":833,"date":"2026-09-17T23:05:00","date_gmt":"2026-09-17T20:05:00","guid":{"rendered":"https:\/\/imaxis.ru\/?p=833"},"modified":"2026-09-18T00:06:06","modified_gmt":"2026-09-17T21:06:06","slug":"ustanovka-i-nastroyka-bind-na-ubuntu-keshiruyuschiy-dns-server","status":"publish","type":"post","link":"https:\/\/imaxis.ru\/?p=833","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 BIND \u043d\u0430 Ubuntu: \u043a\u044d\u0448\u0438\u0440\u0443\u044e\u0449\u0438\u0439 DNS-\u0441\u0435\u0440\u0432\u0435\u0440"},"content":{"rendered":"<h1>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 BIND \u043d\u0430 Ubuntu: \u043a\u044d\u0448\u0438\u0440\u0443\u044e\u0449\u0438\u0439 DNS-\u0441\u0435\u0440\u0432\u0435\u0440<\/h1>\n<p>BIND (named) \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 DNS-\u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f Linux. \u0412 \u044d\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u2014 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u044d\u0448\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e DNS \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0437\u043e\u043d. \u041f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f Ubuntu \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 Debian-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n<hr \/>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<pre><code class=\"language-bash\">apt update\n<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c 53-\u0439 UDP-\u043f\u043e\u0440\u0442:<\/p>\n<pre><code class=\"language-bash\">iptables -I INPUT 1 -p udp --dport 53 -j ACCEPT\napt install iptables-persistent\nnetfilter-persistent save\n<\/code><\/pre>\n<p><strong>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f 53\/udp \u043f\u0435\u0440\u0432\u044b\u043c \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435.<\/strong><\/p>\n<hr \/>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<pre><code class=\"language-bash\">apt install bind9 dnsutils\n<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443:<\/p>\n<pre><code class=\"language-bash\">nslookup imaxis.ru 127.0.0.1\n<\/code><\/pre>\n<pre><code>Server:         127.0.0.1\nAddress:        127.0.0.1#53\nNon-authoritative answer:\nName:   imaxis.ru\nAddress: 45.130.41.92\n<\/code><\/pre>\n<hr \/>\n<h2>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u2014 <code>\/etc\/bind\/named.conf<\/code>. \u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u043e\u043d \u043b\u0438\u0448\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b.<\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c. \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u044b:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/bind\/named.conf.options\n<\/code><\/pre>\n<pre><code>allow-query     { any; };\n<\/code><\/pre>\n<p><strong><code>any<\/code> \u2014 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 \u0432\u0441\u0435\u0445. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0441\u0435\u0442\u0438\/\u0430\u0434\u0440\u0435\u0441\u0430.<\/strong><\/p>\n<p>\u0422\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438:<\/p>\n<pre><code>allow-query     { 192.168.0.0\/24; };\n<\/code><\/pre>\n<p><strong>\u0433\u0434\u0435 <code>192.168.0.0\/24<\/code> \u2014 \u0432\u0430\u0448\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c.<\/strong><\/p>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 DNS:<\/p>\n<pre><code>forwarders { 77.88.8.8; 8.8.8.8; };\n<\/code><\/pre>\n<p><strong>\u0417\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u043e\u0439\u0434\u0443\u0442 \u043d\u0430 <code>77.88.8.8<\/code>, \u0430 \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0435 \u2014 \u043d\u0430 <code>8.8.8.8<\/code>.<\/strong><\/p>\n<pre><code class=\"language-bash\">systemctl restart bind9\n<\/code><\/pre>\n<p><strong>\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 \u2014 <code>service bind9 restart<\/code>.<\/strong><\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430: \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043a\u044d\u0448\u0438\u0440\u0443\u044e\u0449\u0438\u0439 DNS. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430:<\/p>\n<pre><code class=\"language-bash\">nslookup ubuntu.com 192.168.0.15\n<\/code><\/pre>\n<p><strong>\u0433\u0434\u0435 <code>192.168.0.15<\/code> \u2014 \u0430\u0434\u0440\u0435\u0441 DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438.<\/strong><\/p>\n<hr \/>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u043e\u043d<\/h2>\n<p>\u0427\u0442\u043e\u0431\u044b BIND \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u0437\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0437\u043e\u043d\u0443:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.imaxis.ru\/miniinstruktions.php?mini=bind-primary\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0439 (\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439) \u0437\u043e\u043d\u044b<\/a><\/li>\n<li><a href=\"https:\/\/www.imaxis.ru\/miniinstruktions.php?mini=bind-slave\">\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u0443\u044e (slave) \u0437\u043e\u043d\u0443<\/a><\/li>\n<\/ul>\n<hr \/>\n<h2>\u0422\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438<\/h2>\n<ul>\n<li><strong><code>allow-query<\/code> \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u043e\u043b\u044c\u043a\u043e localhost<\/strong> \u2014 \u0431\u0435\u0437 \u044d\u0442\u043e\u0439 \u043e\u043f\u0446\u0438\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442 <code>REFUSED<\/code>.<\/li>\n<li><strong>\u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0440\u0435\u0437\u043e\u043b\u0432\u0435\u0440<\/strong> \u2014 \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 <code>allow-query { any; }<\/code> \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435: \u044d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 DNS-\u0440\u0435\u0437\u043e\u043b\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u043b\u044f DNS-\u0430\u043c\u043f\u043b\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u044c\u0442\u0435 \u0441\u0435\u0442\u044c\u044e.<\/li>\n<li><strong><code>forwarders<\/code><\/strong> \u2014 \u043d\u0443\u0436\u043d\u044b, \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0430\u043c \u043d\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442 \u0438\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/li>\n<li><strong>\u0424\u0430\u0439\u043b\u044b \u0437\u043e\u043d<\/strong> \u2014 \u0432 <code>\/etc\/bind\/<\/code>, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>named.conf.local<\/code>; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 <code>named-checkconf<\/code> \u0438 <code>named-checkzone<\/code>.<\/li>\n<li><strong>\u041b\u043e\u0433\u0438<\/strong> \u2014 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 syslog\/journal; \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 <code>querylog<\/code> \u0432 <code>named.conf.options<\/code>.<\/li>\n<li><strong>\u041f\u043e\u0440\u0442\u044b<\/strong> \u2014 \u0434\u043b\u044f TCP-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (\u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b, DNSSEC) \u043d\u0443\u0436\u0435\u043d \u0438 53\/tcp.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u0428\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/h2>\n<pre><code class=\"language-bash\">apt install bind9 dnsutils\nvi \/etc\/bind\/named.conf.options\n#   allow-query { 192.168.0.0\/24; };\n#   forwarders { 77.88.8.8; 8.8.8.8; };\nsystemctl restart bind9\nnslookup ubuntu.com 192.168.0.15\nnamed-checkconf\n<\/code><\/pre>\n<p><em>\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430: Ubuntu 22.04\/24.04\/26.04 + BIND 9.18+.<\/em><br \/>\n<em>\u0414\u0430\u0442\u0430: \u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c 2026.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 BIND \u043d\u0430 Ubuntu: \u043a\u044d\u0448\u0438\u0440\u0443\u044e\u0449\u0438\u0439 DNS-\u0441\u0435\u0440\u0432\u0435\u0440 BIND (named)<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":10,"_links":{"self":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=833"}],"version-history":[{"count":3,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/833\/revisions"}],"predecessor-version":[{"id":857,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/833\/revisions\/857"}],"wp:attachment":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}