{"id":453394,"date":"2025-03-26T15:01:00","date_gmt":"2025-03-26T15:01:00","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=453394"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=453394","title":{"rendered":"<span>DNS-\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 \u0431\u0430\u0437\u0435 BIND9 \u043d\u0430 Ubuntu Server VMware Workstation<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 \u044d\u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 3 \u043c\u0435\u0441\u044f\u0446\u0430 \u0438 \u0437\u0434\u0435\u0441\u044c \u0441\u0443\u0433\u0443\u0431\u043e \u043c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0432\u043f\u0435\u0440\u0435\u043c\u0435\u0448\u043a\u0443 \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430. \u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Bind9 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b Ubuntu Server. \u0414\u0435\u043b\u0430\u044e \u044f \u044d\u0442\u043e \u043f\u043e\u0434 \u0441\u0432\u043e\u0438\u043c\u0438 IP.<\/p>\n<p> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 BIND9<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043f\u0430\u043a\u0435\u0442\u044b BIND9 \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b:  <\/p>\n<p><code>sudo apt install bind9 bind9utils bind9-doc -y<\/code><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 BIND9<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <strong>\/etc\/default\/named<\/strong> \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0430 BIND. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c:  <\/p>\n<p>OPTIONS=&#187;-u bind -4&#8243;<\/p>\n<p>\u042d\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u00a0bind\u00a0\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c IPv4. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c named \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p><code>sudo systemctl restart named<\/code><\/p>\n<p>\u0418 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p><code>sudo systemctl status named<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 BIND, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 DNS-\u0441\u0435\u0440\u0432\u0435\u0440.  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435, \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0444\u0430\u0439\u043b <strong>named.conf.options<\/strong> \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <strong>\/etc\/bind<\/strong> \u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d05\/fa6\/249\/d05fa6249b5ce15e9b535e42b80a3b0f.png\" alt=\"\u043c\u043e\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\" title=\"\u043c\u043e\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\" width=\"669\" height=\"449\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d05\/fa6\/249\/d05fa6249b5ce15e9b535e42b80a3b0f.png\"\/><\/p>\n<div><figcaption>\u043c\u043e\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>directory<\/strong>: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u043e\u043d \u0438 \u043a\u044d\u0448\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>listen-on<\/strong>: \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>recursion<\/strong>: \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b \u043b\u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>allow-query<\/strong>: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u0441\u0435\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443.<\/p>\n<\/li>\n<li>\n<p><strong>forwarders<\/strong>: \u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0434\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.<\/p>\n<\/li>\n<li>\n<p><strong>dnssec-validation<\/strong>: \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\/\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 DNSSEC.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435, \u044d\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043b\u043e\u043a acl (\u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430)\u00a0\u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0435\u043c &#171;trusted&#187; \u0441\u0432\u0435\u0440\u0445\u0443 \u043d\u0430\u0434 option, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0441\u0442\u0443\u043f \u043a DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435, &#171;\u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0435&#187; \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/20c\/433\/eba\/20c433eba63054298d209ffccc9ed83d.png\" width=\"974\" height=\"288\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/20c\/433\/eba\/20c433eba63054298d209ffccc9ed83d.png\"\/><\/figure>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u0435\u0437\u0434\u0435 \u0433\u0434\u0435 \u0431\u044b\u043b\u043e <em>{ any; }; <\/em>\u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c <em>{ trusted; };<\/em><\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<p><code>named-checkconf \/etc\/bind\/named.conf.options<\/code><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043e\u043d<\/h3>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430\u0448\u0438 \u0434\u043e\u043c\u0435\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0434\u043e\u043c\u0435\u043d\u0435\u00a0au-team.irpo, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043e\u043d\u044b \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0437\u043e\u043d\u0443 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u0437\u0430\u043c\u0435\u043d\u0438\u0432 \u0438\u043c\u044f \u0437\u043e\u043d\u044b \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0438\u00a0<strong>\u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong>\u00a0\u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435\u00a0allow-transfer:  <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9e9\/839\/664\/9e98396649b195b01c50de3185646828.png\" alt=\"\/etc\/bind\/named.conf.local\" title=\"\/etc\/bind\/named.conf.local\" width=\"409\" height=\"282\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9e9\/839\/664\/9e98396649b195b01c50de3185646828.png\"\/><\/p>\n<div><figcaption>\/etc\/bind\/named.conf.local<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>type master<\/strong>: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u043e\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>file<\/strong>: \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0437\u043e\u043d\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u044d\u0442\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<p><code>named-checkconf \/etc\/bind\/named.conf.local<\/code><\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0434\u043b\u044f \u0437\u043e\u043d<\/h3>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u043e\u043d:  <\/p>\n<p><code>mkdir \/etc\/bind\/zones<\/code><\/p>\n<p>\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:  <\/p>\n<p><code>cp \/etc\/bind\/db.local \/etc\/bind\/zones\/db.au-team.irpo<\/code><\/p>\n<p><code>cp \/etc\/bind\/db.127 \/etc\/bind\/zones\/db.192.168.100<\/code>  <\/p>\n<p><code>cp \/etc\/bind\/db.127 \/etc\/bind\/zones\/db.192.168.200  <\/code><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u044f\u043c\u043e\u0439 \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0437\u043e\u043d<\/h3>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 <strong>db.au-team.irpo<\/strong> \u0437\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043f\u0440\u044f\u043c\u043e\u0439 \u0437\u043e\u043d\u044b, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438:  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c82\/67e\/967\/c8267e967ebe09ef200cf459f4df3cc2.png\" alt=\"db.au-team.irpo\" title=\"db.au-team.irpo\" width=\"534\" height=\"380\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c82\/67e\/967\/c8267e967ebe09ef200cf459f4df3cc2.png\"\/><\/p>\n<div><figcaption><strong>db.au-team.irpo<\/strong><\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>SOA<\/strong>: \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0437\u043e\u043d\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>NS<\/strong>: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0437\u043e\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>A<\/strong>: \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u043c\u044f \u0441 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>CNAME<\/strong>: \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d\u043e\u0432 (\u0434\u043b\u044f moodle \u0438 wiki, \u0440\u0435\u0431\u044f\u0442\u0430 \u0441 \u0434\u0435\u043c. \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u0430 \u043f\u043e\u0439\u043c\u0443\u0442).<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:  <\/p>\n<p><code>named-checkzone au-team.irpo \/etc\/bind\/zones\/db.au-team.irpo<\/code><\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0430\u0445 <strong>db.192.168.100<\/strong> \u0438 <strong>db.192.168.200<\/strong> \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0437\u043e\u043d\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0437\u0430\u043f\u0438\u0441\u044c <strong>PTR<\/strong>. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c96\/c4c\/389\/c96c4c3895c42e2929bfa8491b35fa9b.png\" alt=\"\" title=\"\" width=\"974\" height=\"314\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c96\/c4c\/389\/c96c4c3895c42e2929bfa8491b35fa9b.png\"\/><\/p>\n<div><figcaption><strong>db.192.168.100<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c:  <\/p>\n<p><code>named-checkzone 100.168.192.in-addr.arpa \/etc\/bind\/zones\/db.192.168.100  <\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5f7\/87b\/b61\/5f787bb6157cd335e3d3f4b75eb03dfe.png\" alt=\"\" title=\"\" width=\"974\" height=\"257\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5f7\/87b\/b61\/5f787bb6157cd335e3d3f4b75eb03dfe.png\"\/><\/p>\n<div><figcaption><strong>db.192.168.200<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c:<\/p>\n<p><code>named-checkzone 200.168.192.in-addr.arpa \/etc\/bind\/zones\/db.192.168.200<\/code>  <\/p>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c BIND:  <\/p>\n<p><code>systemctl restart bind9<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c DNS \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2f0\/945\/984\/2f0945984e6895aa370c0d06bcbdc5ff.png\" alt=\"netplan\" title=\"netplan\" width=\"711\" height=\"345\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2f0\/945\/984\/2f0945984e6895aa370c0d06bcbdc5ff.png\"\/><\/p>\n<div><figcaption>netplan<\/figcaption><\/div>\n<\/figure>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b DNS<\/h3>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b dns \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0437\u043e\u043d\u044b \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <strong>nslookup<\/strong>:<\/p>\n<p><code>nslookup 192.168.100.1<\/code>  <\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439 (\u0438\u043b\u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 ip \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0437\u043e\u043d)<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e2c\/a48\/75f\/e2ca4875fff2fef6100c3cb19ea1a176.png\" width=\"485\" height=\"38\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e2c\/a48\/75f\/e2ca4875fff2fef6100c3cb19ea1a176.png\"\/><\/figure>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b dns \u043f\u0440\u044f\u043c\u043e\u0439 \u0437\u043e\u043d\u044b \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c:   <\/p>\n<p><code>nslookup hq-srv.au-team.irpo<\/code>     <\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439 (\u0438\u043b\u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 ip \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0437\u043e\u043d)<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/817\/4df\/ada\/8174dfada5b741a9bd8c690ca1810545.png\" width=\"468\" height=\"98\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/817\/4df\/ada\/8174dfada5b741a9bd8c690ca1810545.png\"\/><\/figure>\n<h3>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/h3>\n<p>\u041f\u043e\u043a\u0430 \u044f \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b, \u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0433\u0434\u0435 DNS \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0438\u0434\u0438\u0442 \u0438 \u043f\u0438\u043d\u0433\u0443\u0435\u0442 \u043d\u0430 \u0432\u0441\u0435 \u0441\u0432\u043e\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u044b, \u043d\u043e \u0441\u0430\u043c\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0435\u0433\u043e \u043d\u0435 \u0432\u0438\u0434\u044f\u0442, \u0433\u043e\u0432\u043e\u0440\u044f \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442: NXDOMAIN<\/p>\n<p>\u042f \u043f\u0440\u043e\u0432\u0435\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (\u043e\u043d\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0436\u0435\u0441\u0442\u043a\u0438\u0435 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u043d\u0435 \u0432\u0441\u0435\u043c, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e):<\/p>\n<ol>\n<li>\n<p><strong>\u0423\u0434\u0430\u043b\u0438\u043b systemd-resolved<\/strong>. \u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/@resolv.conf \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 IP DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441\u043c\u0435\u043d\u044f\u043b\u0441\u044f \u043d\u0430 127.0.0.53. \u0427\u0442\u043e\u0431\u044b \u0440\u0430\u0437 \u0438 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u044f \u0443\u0434\u0430\u043b\u0438\u043b systemd-resolved \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439: <code>apt remove systemd-resolved<\/code>. \u041f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043d\u0430\u043c\u0438 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b UFW<\/strong>. \u042f \u0434\u043e\u043b\u0433\u043e \u0431\u043e\u0440\u043e\u043b\u0441\u044f \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u043c\u043e\u0439 DNS, \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b, \u043d\u043e \u043f\u043e\u043c\u043e\u0433\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e. \u041f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 UFW \u043e\u043d \u0443\u0434\u0430\u043b\u0438\u0442 iptables-persistent, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043e\u0434\u043d\u043e&#8230; \u041a\u043e\u0433\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u0430: <code>ufw allow bind9<\/code>, \u0441\u043e\u0441\u0435\u0434\u043d\u044f\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0438\u0434\u0435\u0442\u044c DNS. \u042f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b UFW \u043d\u0430 HQ-SRV, HQ-RTR \u0438 BR-RTR. \u041f\u0440\u0438\u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u043a\u0430\u0447\u0430\u0442\u044c bind9 \u043d\u0430 \u044d\u0442\u0438 \u0442\u0440\u0438 \u043c\u0430\u0448\u0438\u043d\u044b&#8230; \u041e\u0447\u0435\u043d\u044c \u043a\u043e\u0440\u044f\u0432\u043e, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<\/li>\n<\/ol>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043f\u0443\u043d\u043a\u0442 \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f. \u0416\u0435\u043b\u0430\u044e \u0443\u0434\u0430\u0447\u0438 :&#8217;) <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/894524\/\"> https:\/\/habr.com\/ru\/articles\/894524\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 \u044d\u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 3 \u043c\u0435\u0441\u044f\u0446\u0430 \u0438 \u0437\u0434\u0435\u0441\u044c \u0441\u0443\u0433\u0443\u0431\u043e \u043c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0432\u043f\u0435\u0440\u0435\u043c\u0435\u0448\u043a\u0443 \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430. \u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Bind9 \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b Ubuntu Server. \u0414\u0435\u043b\u0430\u044e \u044f \u044d\u0442\u043e \u043f\u043e\u0434 \u0441\u0432\u043e\u0438\u043c\u0438 IP.<\/p>\n<p> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 BIND9<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043f\u0430\u043a\u0435\u0442\u044b BIND9 \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b:  <\/p>\n<p><code>sudo apt install bind9 bind9utils bind9-doc -y<\/code><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 BIND9<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <strong>\/etc\/default\/named<\/strong> \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0430 BIND. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c:  <\/p>\n<p>OPTIONS=&#187;-u bind -4&#8243;<\/p>\n<p>\u042d\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u00a0bind\u00a0\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c IPv4. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c named \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p><code>sudo systemctl restart named<\/code><\/p>\n<p>\u0418 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p><code>sudo systemctl status named<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 BIND, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 DNS-\u0441\u0435\u0440\u0432\u0435\u0440.  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435, \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0444\u0430\u0439\u043b <strong>named.conf.options<\/strong> \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <strong>\/etc\/bind<\/strong> \u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:  <\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u043c\u043e\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>directory<\/strong>: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u043e\u043d \u0438 \u043a\u044d\u0448\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>listen-on<\/strong>: \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>recursion<\/strong>: \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b \u043b\u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>allow-query<\/strong>: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u0441\u0435\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443.<\/p>\n<\/li>\n<li>\n<p><strong>forwarders<\/strong>: \u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0434\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.<\/p>\n<\/li>\n<li>\n<p><strong>dnssec-validation<\/strong>: \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\/\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 DNSSEC.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435, \u044d\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043b\u043e\u043a acl (\u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430)\u00a0\u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0435\u043c &#171;trusted&#187; \u0441\u0432\u0435\u0440\u0445\u0443 \u043d\u0430\u0434 option, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0441\u0442\u0443\u043f \u043a DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435, &#171;\u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0435&#187; \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u0435\u0437\u0434\u0435 \u0433\u0434\u0435 \u0431\u044b\u043b\u043e <em>{ any; }; <\/em>\u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c <em>{ trusted; };<\/em><\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<p><code>named-checkconf \/etc\/bind\/named.conf.options<\/code><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u043e\u043d<\/h3>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430\u0448\u0438 \u0434\u043e\u043c\u0435\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0434\u043e\u043c\u0435\u043d\u0435\u00a0au-team.irpo, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043e\u043d\u044b \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0437\u043e\u043d\u0443 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u0437\u0430\u043c\u0435\u043d\u0438\u0432 \u0438\u043c\u044f \u0437\u043e\u043d\u044b \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0438\u00a0<strong>\u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong>\u00a0\u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435\u00a0allow-transfer:  <\/p>\n<figure class=\"\">\n<div><figcaption>\/etc\/bind\/named.conf.local<\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>type master<\/strong>: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u043e\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>file<\/strong>: \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0437\u043e\u043d\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u044d\u0442\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<p><code>named-checkconf \/etc\/bind\/named.conf.local<\/code><\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0434\u043b\u044f \u0437\u043e\u043d<\/h3>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u043e\u043d:  <\/p>\n<p><code>mkdir \/etc\/bind\/zones<\/code><\/p>\n<p>\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:  <\/p>\n<p><code>cp \/etc\/bind\/db.local \/etc\/bind\/zones\/db.au-team.irpo<\/code><\/p>\n<p><code>cp \/etc\/bind\/db.127 \/etc\/bind\/zones\/db.192.168.100<\/code>  <\/p>\n<p><code>cp \/etc\/bind\/db.127 \/etc\/bind\/zones\/db.192.168.200  <\/code><\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u044f\u043c\u043e\u0439 \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0437\u043e\u043d<\/h3>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 <strong>db.au-team.irpo<\/strong> \u0437\u0430\u0434\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043f\u0440\u044f\u043c\u043e\u0439 \u0437\u043e\u043d\u044b, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438:  <\/p>\n<figure class=\"full-width\">\n<div><figcaption><strong>db.au-team.irpo<\/strong><\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>SOA<\/strong>: \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0437\u043e\u043d\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>NS<\/strong>: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0437\u043e\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>A<\/strong>: \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u043c\u044f \u0441 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>CNAME<\/strong>: \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d\u043e\u0432 (\u0434\u043b\u044f moodle \u0438 wiki, \u0440\u0435\u0431\u044f\u0442\u0430 \u0441 \u0434\u0435\u043c. \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u0430 \u043f\u043e\u0439\u043c\u0443\u0442).<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:  <\/p>\n<p><code>named-checkzone au-team.irpo \/etc\/bind\/zones\/db.au-team.irpo<\/code><\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0430\u0445 <strong>db.192.168.100<\/strong> \u0438 <strong>db.192.168.200<\/strong> \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0437\u043e\u043d\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0437\u0430\u043f\u0438\u0441\u044c <strong>PTR<\/strong>. <\/p>\n<figure class=\"full-width\">\n<div><figcaption><strong>db.192.168.100<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c:  <\/p>\n<p><code>named-checkzone 100.168.192.in-addr.arpa \/etc\/bind\/zones\/db.192.168.100  <\/code><\/p>\n<figure class=\"full-width\">\n<div><figcaption><strong>db.192.168.200<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c:<\/p>\n<p><code>named-checkzone 200.168.192.in-addr.arpa \/etc\/bind\/zones\/db.192.168.200<\/code>  <\/p>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c BIND:  <\/p>\n<p><code>systemctl restart bind9<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c DNS \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>netplan<\/figcaption><\/div>\n<\/figure>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b DNS<\/h3>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b dns \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0437\u043e\u043d\u044b \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <strong>nslookup<\/strong>:<\/p>\n<p><code>nslookup 192.168.100.1<\/code>  <\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439 (\u0438\u043b\u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 ip \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0437\u043e\u043d)<\/p>\n<figure class=\"\"><\/figure>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b dns \u043f\u0440\u044f\u043c\u043e\u0439 \u0437\u043e\u043d\u044b \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c:   <\/p>\n<p><code>nslookup hq-srv.au-team.irpo<\/code>     <\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439 (\u0438\u043b\u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 ip \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0437\u043e\u043d)<\/p>\n<figure class=\"\"><\/figure>\n<h3>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/h3>\n<p>\u041f\u043e\u043a\u0430 \u044f \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b, \u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0433\u0434\u0435 DNS \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0438\u0434\u0438\u0442 \u0438 \u043f\u0438\u043d\u0433\u0443\u0435\u0442 \u043d\u0430 \u0432\u0441\u0435 \u0441\u0432\u043e\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u044b, \u043d\u043e \u0441\u0430\u043c\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0435\u0433\u043e \u043d\u0435 \u0432\u0438\u0434\u044f\u0442, \u0433\u043e\u0432\u043e\u0440\u044f \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442: NXDOMAIN<\/p>\n<p>\u042f \u043f\u0440\u043e\u0432\u0435\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (\u043e\u043d\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0436\u0435\u0441\u0442\u043a\u0438\u0435 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u043d\u0435 \u0432\u0441\u0435\u043c, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e):<\/p>\n<ol>\n<li>\n<p><strong>\u0423\u0434\u0430\u043b\u0438\u043b systemd-resolved<\/strong>. \u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/@resolv.conf \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 IP DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441\u043c\u0435\u043d\u044f\u043b\u0441\u044f \u043d\u0430 127.0.0.53. \u0427\u0442\u043e\u0431\u044b \u0440\u0430\u0437 \u0438 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u044f \u0443\u0434\u0430\u043b\u0438\u043b systemd-resolved \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439: <code>apt remove systemd-resolved<\/code>. \u041f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043d\u0430\u043c\u0438 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b UFW<\/strong>. \u042f \u0434\u043e\u043b\u0433\u043e \u0431\u043e\u0440\u043e\u043b\u0441\u044f \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0432\u0438\u0434\u0435\u0442\u044c \u043c\u043e\u0439 DNS, \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b, \u043d\u043e \u043f\u043e\u043c\u043e\u0433\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e. \u041f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 UFW \u043e\u043d \u0443\u0434\u0430\u043b\u0438\u0442 iptables-persistent, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043e\u0434\u043d\u043e&#8230; \u041a\u043e\u0433\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u0430: <code>ufw allow bind9<\/code>, \u0441\u043e\u0441\u0435\u0434\u043d\u044f\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0438\u0434\u0435\u0442\u044c DNS. \u042f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b UFW \u043d\u0430 HQ-SRV, HQ-RTR \u0438 BR-RTR. \u041f\u0440\u0438\u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u043a\u0430\u0447\u0430\u0442\u044c bind9 \u043d\u0430 \u044d\u0442\u0438 \u0442\u0440\u0438 \u043c\u0430\u0448\u0438\u043d\u044b&#8230; \u041e\u0447\u0435\u043d\u044c \u043a\u043e\u0440\u044f\u0432\u043e, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<\/li>\n<\/ol>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043f\u0443\u043d\u043a\u0442 \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f. \u0416\u0435\u043b\u0430\u044e \u0443\u0434\u0430\u0447\u0438 :&#8217;) <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/894524\/\"> https:\/\/habr.com\/ru\/articles\/894524\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-453394","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/453394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=453394"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/453394\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=453394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=453394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=453394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}