Свой DNS сервер Bind9 для запуска ForkPlayer: различия между версиями

Материал из Браузер Fork - Wiki
Перейти к навигации Перейти к поиску
Новая страница: «Установка своего DNS сервера BIND9 на Debian для запуска сторонних приложений Выполните коман…»
 
Содержимое страницы заменено на «<parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">XML Parsing Error: syntax error</parsererror>»
Метка: замена
Строка 1: Строка 1:
Установка своего DNS сервера BIND9 на Debian для запуска сторонних приложений
<parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">XML Parsing Error: syntax error</parsererror>
 
Выполните команды
<blockquote>
apt-get install bind9 unzip nano
 
wget "http://wiki.forkplayer.tv/w/images/0/01/Etc_bind_configfiles.zip"
 
unzip -o&nbsp;<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,&quot;trebuchet ms&quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">Etc_bind_configfiles.zip /etc/bind/</span>
 
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,&quot;trebuchet ms&quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">chmod +x /</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">etc/bind/iptables</span>
 
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">/</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">etc/bind/iptables</span>
 
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">service bind9 start</span>
</blockquote>
Далее включаем в автозагрузку выполнение&nbsp; /<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,&quot;trebuchet ms&quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">etc/bind/iptables (Защита от&nbsp;</span>DNS Amplification)
<blockquote>
nano /etc/rc.local
</blockquote>
и вставляем перед exit 0 текст
<blockquote>
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,&quot;trebuchet ms&quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">/</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,&quot;trebuchet ms&quot;; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">etc/bind/iptables</span>
</blockquote>
Можно отредактировать конфиг с зонами и оставить там только необходимые переадресации (например оставить только Tvigle или IVI)
<blockquote>
nano /etc/bind/named.conf.local
</blockquote>  
&nbsp;

Версия от 03:16, 27 декабря 2018

<parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">XML Parsing Error: syntax error</parsererror>