差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| bind [2017/01/10 22:37] – jz | bind [2017/01/10 22:47] (目前版本) – jz | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== BIND ====== | ====== BIND ====== | ||
| - | + | ==== Install | |
| - | ==== install | + | |
| < | < | ||
| pkg install bind911 | pkg install bind911 | ||
| 行 8: | 行 7: | ||
| </ | </ | ||
| - | ==== generate | + | ==== Generate |
| < | < | ||
| rndc-confgen -a | rndc-confgen -a | ||
| </ | </ | ||
| - | ==== check config ==== | + | ==== Check config ==== |
| < | < | ||
| named-checkconf | named-checkconf | ||
| 行 19: | 行 18: | ||
| </ | </ | ||
| - | ==== set directory ==== | + | ==== Set directory ==== |
| ''/ | ''/ | ||
| < | < | ||
| options { | options { | ||
| - | | + | |
| - | // if any, and should be fully qualified. | + | |
| directory | directory | ||
| ... | ... | ||
| 行 30: | 行 28: | ||
| </ | </ | ||
| - | ==== logging | + | ==== Logging |
| + | create log file manually | ||
| + | |||
| + | <code bash> | ||
| + | touch / | ||
| + | chown bind:bind / | ||
| + | </ | ||
| ''/ | ''/ | ||
| < | < | ||
| 行 48: | 行 53: | ||
| </ | </ | ||
| - | ==== zone ==== | + | ==== Zone config |
| ''/ | ''/ | ||
| < | < | ||
| 行 62: | 行 67: | ||
| </ | </ | ||
| - | ==== zone file ==== | + | ==== Zone file ==== |
| ''/ | ''/ | ||
| < | < | ||
| 行 105: | 行 110: | ||
| 3 IN PTR | 3 IN PTR | ||
| </ | </ | ||
| + | |||
| + | ==== Start service ==== | ||
| + | <code bash> | ||
| + | service named start | ||
| + | </ | ||
| + | |||
| [[http:// | [[http:// | ||