Показаны различия между двумя версиями страницы.
| Следующая версия | Предыдущая версия | ||
|
кеширующий_dns [2013/03/05 12:39] 46.231.215.230 создано |
кеширующий_dns [2013/03/05 16:44] (текущий) |
||
|---|---|---|---|
| Строка 5: | Строка 5: | ||
| Конфигурационный файл: | Конфигурационный файл: | ||
| - | options { | + | '' |
| - | listen-on port 53 { 127.0.0.1; 172.16.0.78; | + | listen-on port 53 { 127.0.0.1; 172.16.0.78; |
| - | listen-on-v6 port 53 { ::1; }; | + | listen-on-v6 port 53 { ::1; };\\ |
| - | directory "/ | + | directory "/ |
| - | dump-file "/ | + | dump-file "/ |
| - | statistics-file "/ | + | statistics-file "/ |
| - | memstatistics-file "/ | + | memstatistics-file "/ |
| - | // Those options should be used carefully because they disable port | + | // Those options should be used carefully because they disable port\\ |
| - | // randomization | + | // randomization\\ |
| - | query-source | + | query-source |
| - | // query-source-v6 port 53; | + | // query-source-v6 port 53;\\ |
| - | allow-query | + | allow-query |
| - | allow-query-cache { localhost; 172.16.0.0/ | + | allow-query-cache { localhost; 172.16.0.0/ |
| - | allow-recursion {127.0.0.1; 172.16.0.0/ | + | allow-recursion {127.0.0.1; 172.16.0.0/ |
| - | forwarders {8.8.8.8; | + | forwarders {8.8.8.8;};\\ |
| - | }; | + | };\\ |
| - | logging { | + | logging {\\ |
| - | channel default_debug { | + | channel default_debug {\\ |
| - | file " | + | file " |
| - | severity dynamic; | + | severity dynamic;\\ |
| - | }; | + | };\\ |
| - | }; | + | };\\ |
| - | view localhost_resolver { | + | view localhost_resolver {\\ |
| - | match-clients { localhost; }; | + | match-clients { localhost; };\\ |
| - | match-destinations { localhost; }; | + | match-destinations { localhost; };\\ |
| - | recursion yes; | + | recursion yes;\\ |
| - | include "/ | + | include "/ |
| + | };\\ | ||
| + | |||
| + | view net_resolver {\\ | ||
| + | match-clients { 172.16.0.0/ | ||
| + | match-destinations { 172.16.0.0/ | ||
| + | recursion yes;\\ | ||
| + | include "/ | ||
| }; | }; | ||
| - | view net_resolver { | ||
| - | match-clients { 172.16.0.0/ | ||
| - | match-destinations { 172.16.0.0/ | ||
| - | recursion yes; | ||
| - | include "/ | ||
| - | }; | ||
| + | '' | ||