|
|
Строка 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 <span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,"trebuchet ms"; 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,"trebuchet ms"; 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>
| |
− | Далее включаем в автозагрузку выполнение /<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,"trebuchet ms"; 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>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,"trebuchet ms"; 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,"trebuchet ms"; 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> | |
− |
| |