{"id":241,"date":"2024-04-12T22:21:40","date_gmt":"2024-04-12T22:21:40","guid":{"rendered":"https:\/\/kb.netcontrol2.com\/?post_type=docs&#038;p=241"},"modified":"2024-04-12T22:21:40","modified_gmt":"2024-04-12T22:21:40","password":"","slug":"%d0%ba%d0%b0%d0%ba-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%b8%d1%82%d1%8c-dnsmasq-%d0%bd%d0%b0-linux","status":"publish","type":"docs","link":"https:\/\/netcontrol2.ru\/kb\/kb\/%d0%ba%d0%b0%d0%ba-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%b8%d1%82%d1%8c-dnsmasq-%d0%bd%d0%b0-linux\/","title":{"rendered":"\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c dnsmasq \u043d\u0430 Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Dnsmasq<\/strong> &#8211; \u044d\u0442\u043e \u043c\u043e\u0449\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f Linux. Net Control 2 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <em>dnsmasq<\/em> \u0434\u043b\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430 Linux \u043c\u0430\u0448\u0438\u043d\u0430\u0445.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Net Control 2 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f dnsmasq \u0432 \u043f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043d\u043e, \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445, \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c dnsmasq \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435<\/strong><br>\u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044f \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0441\u043b\u0443\u0436\u0431\u0430 <em>dnsmasq <\/em>\u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430, \u0441 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c <em>dnsmasq <\/em>\u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0443\u044e \u0441\u043b\u0443\u0436\u0431\u0443 <em>systemd-resolved <\/em>\u043d\u0430 <em>dnsmasq<\/em>, \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 <em>dnsmasq <\/em>\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u043b\u0443\u0436\u0431\u044b <em>dnsmasq <\/em>\u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background wp-block-paragraph\"><strong>systemctl status dnsmasq<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0441\u0442\u0430\u0442\u0443\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u00abactive (running)\u00bb<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"249\" src=\"https:\/\/kb.netcontrol2.com\/wp-content\/uploads\/2024\/04\/image-7.png\" alt=\"\" class=\"wp-image-242\" srcset=\"https:\/\/netcontrol2.ru\/kb\/wp-content\/uploads\/2024\/04\/image-7.png 664w, https:\/\/netcontrol2.ru\/kb\/wp-content\/uploads\/2024\/04\/image-7-300x113.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! <strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432 Astra Linux<\/strong>, \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 apt \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0441\u043b\u0443\u0436\u0431\u044b. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0443, \u043d\u043e<br>\u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background wp-block-paragraph\">sudo \/usr\/sbin\/nc2service \/INSTALLDM<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043f\u0440\u0430\u0432 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430. \u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u043b\u0443\u0436\u0431\u044b dnsmasq, \u043a\u0430\u043a \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432\u044b\u0448\u0435.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u043e\u0431\u043e\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432:<br><strong>\/etc\/resolv.conf<br>\/etc\/dnsmasq.conf<br>\/etc\/NetworkManager\/NetworkManager.conf<br><\/strong>\u0432 \u043f\u0430\u043f\u043a\u0435 <strong>\/var\/lib\/nclassroom\/backup<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434, \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442<br>\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0412\u0430\u0436\u043d\u043e! \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u0432\u0441\u0435\u0445 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 dnsmasq<\/li>\n<\/ol>\n\n\n\n<p class=\"has-light-gray-background-color has-background wp-block-paragraph\">sudo apt install -y dnsmasq<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b<br><strong>\/etc\/NetworkManager\/NetworkManager.conf<\/strong><br>\u0414\u043e\u0431\u0430\u0432\u0438\u0432 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 <strong>[main]<\/strong> \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>dns <\/strong>\u043d\u0430 <strong>none<\/strong>:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"336\" height=\"186\" src=\"https:\/\/kb.netcontrol2.com\/wp-content\/uploads\/2024\/04\/image-8.png\" alt=\"\" class=\"wp-image-243\" srcset=\"https:\/\/netcontrol2.ru\/kb\/wp-content\/uploads\/2024\/04\/image-8.png 336w, https:\/\/netcontrol2.ru\/kb\/wp-content\/uploads\/2024\/04\/image-8-300x166.png 300w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b <strong>\/etc\/dnsmasq.conf<\/strong>, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0442\u0440\u043e\u043a\u0438::<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background wp-block-paragraph\">no-resolv<br>strict-order<br>domain-needed<br>bogus-priv<br>port=53<br>listen-address=127.0.0.1<br>server=8.8.8.8<br>server=8.8.4.4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c IP \u0430\u0434\u0440\u0435\u0441\u0430 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0430\u0434\u0440\u0435\u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430, \u043b\u0438\u0431\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0441\u043b\u0443\u0436\u0431 DNS, \u043a\u0430\u043a Google Public DNS 8.8.8.8 \u0438 8.8.4.4<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b<br>\/etc\/resolv.conf<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 nameserver 127.0.0.53<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>#nameserver 127.0.0.53<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443<br><strong>nameserver 127.0.0.1<\/strong><br><span style=\"text-decoration: underline;\">\u043f\u0435\u0440\u0435\u0434<\/span> (!) \u043b\u044e\u0431\u044b\u043c\u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 <em>&#8220;nameserver&#8221;<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u043b\u0443\u0436\u0431\u0443 systemd-resolved \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0435\u0435 \u043d\u0430 dnsmasq:<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background wp-block-paragraph\">sudo systemctl stop systemd-resolved<br>sudo systemctl disable systemd-resolved<br>sudo systemctl enable dnsmasq<br>sudo systemctl start dnsmasq<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u043b\u0443\u0436\u0431\u044b:<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background wp-block-paragraph\">sudo systemctl status dnsmasq<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/p>\n\n\n\n<p class=\"has-light-gray-background-color has-background wp-block-paragraph\">sudo shutdown -r now<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dnsmasq &#8211; \u044d\u0442\u043e \u043c\u043e\u0449\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f Linux. Net Control 2 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c dnsmasq \u0434\u043b\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430 Linux \u043c\u0430\u0448\u0438\u043d\u0430\u0445. Net Control 2 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f dnsmasq \u0432 \u043f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043d\u043e, \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445, \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c dnsmasq \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435\u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c &hellip; <a href=\"https:\/\/netcontrol2.ru\/kb\/kb\/%d0%ba%d0%b0%d0%ba-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%b8%d1%82%d1%8c-dnsmasq-%d0%bd%d0%b0-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c dnsmasq \u043d\u0430 Linux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[41],"doc_tag":[],"class_list":["post-241","docs","type-docs","status-publish","hentry","doc_category-41"],"year_month":"2026-05","word_count":104,"total_views":null,"reactions":{"happy":null,"normal":null,"sad":null},"author_info":{"author_nicename":"kbadmin","author_url":"https:\/\/netcontrol2.ru\/kb\/author\/kbadmin\/"},"doc_category_info":[{"term_name":"\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442","term_url":"https:\/\/netcontrol2.ru\/kb\/cat\/%d0%be%d0%b3%d1%80%d0%b0%d0%bd%d0%b8%d1%87%d0%b5%d0%bd%d0%b8%d1%8f-%d0%b4%d0%be%d1%81%d1%82%d1%83%d0%bf%d0%b0-%d0%ba-%d0%b8%d0%bd%d1%82%d0%b5%d1%80%d0%bd%d0%b5%d1%82\/"}],"doc_tag_info":[],"author_list":[{"ID":"1","user_login":"kbadmin","display_name":"kbadmin","id":"1"}],"_links":{"self":[{"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/docs\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":1,"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/docs\/241\/revisions"}],"predecessor-version":[{"id":244,"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/docs\/241\/revisions\/244"}],"wp:attachment":[{"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/doc_category?post=241"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/netcontrol2.ru\/kb\/wp-json\/wp\/v2\/doc_tag?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}