computers:dns_server_configuration
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computers:dns_server_configuration [2017/08/01 15:14] – chkuo | computers:dns_server_configuration [2020/08/16 01:53] (current) – chkuo | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Download and install the packages | Download and install the packages | ||
| <code bash> | <code bash> | ||
| - | sudo apt-get install bind9 | + | sudo apt install bind9 bind9utils bind9-doc bind9-host |
| - | sudo apt-get install | + | |
| </ | </ | ||
| Line 59: | Line 58: | ||
| <code bash> | <code bash> | ||
| sudo mkdir -p / | sudo mkdir -p / | ||
| + | sudo chown bind:bind / | ||
| </ | </ | ||
| - | |||
| - | restart service | ||
| - | <code bash> | ||
| - | sudo / | ||
| - | </ | ||
| - | |||
| note: | note: | ||
| - | the log directory "/ | + | the log directory "/ |
| <code bash> | <code bash> | ||
| # some people like to put logs in / | # some people like to put logs in / | ||
| Line 75: | Line 69: | ||
| </ | </ | ||
| this part would need to be changed if a custom log directory is used. | this part would need to be changed if a custom log directory is used. | ||
| - | ===== Activation ===== | + | |
| - | To start/stop/restart | + | |
| + | start service | ||
| + | <code bash> | ||
| + | # enable auto start at boot time: | ||
| + | sudo systemctl enable named | ||
| + | # start | ||
| + | sudo systemctl start named | ||
| + | </code> | ||
| + | |||
| + | check status | ||
| + | <code bash> | ||
| + | systemctl status named | ||
| + | </code> | ||
| + | |||
| + | check the " | ||
| + | <code bash> | ||
| + | systemd-resolve --status | ||
| + | </ | ||
| + | |||
| + | To set BIND as the default resolver, edit ''/ | ||
| + | In the [Resolve] section, add '' | ||
| <code bash> | <code bash> | ||
| - | sudo / | + | # restart and check again |
| - | sudo / | + | sudo systemctl restart systemd-resolved |
| - | sudo / | + | systemd-resolve --status |
| </ | </ | ||
| Line 132: | Line 146: | ||
| ===== References ===== | ===== References ===== | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
computers/dns_server_configuration.1501571662.txt.gz · Last modified: by chkuo