mirror of
https://github.com/KevinMidboe/bind9-config.git
synced 2026-01-10 03:05:36 +00:00
added logrotate config dep & example to readme
This commit is contained in:
22
README.md
22
README.md
@@ -11,6 +11,28 @@ tsig-keygen -a hmac-sha512 >> /etc/bind/keys.conf
|
|||||||
tsig-keygen -a hmac-sha512 rndc-key >> /etc/bind/keys.conf
|
tsig-keygen -a hmac-sha512 rndc-key >> /etc/bind/keys.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Logrotate
|
||||||
|
|
||||||
|
We want to print log to disk and have it managed by logrotate. Either comment out import of `named.conf.log` or make sure `logrotate` is installed and add following to file: `/etc/logrotate.d/bind.log`
|
||||||
|
|
||||||
|
```
|
||||||
|
/var/log/bind/bind.log
|
||||||
|
{
|
||||||
|
rotate 90
|
||||||
|
daily
|
||||||
|
dateext
|
||||||
|
dateformat _%Y-%m-%d
|
||||||
|
missingok
|
||||||
|
create 644 bind bind
|
||||||
|
delaycompress
|
||||||
|
compress
|
||||||
|
notifyempty
|
||||||
|
postrotate
|
||||||
|
/bin/systemctl reload bind9
|
||||||
|
endscript
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Using as a template
|
## Using as a template
|
||||||
|
|
||||||
The main files to edit are the `named.conf.local` and `zones/*` files. These are currently referencing `schleppe` as a TLD. First rename or crate a new `zones/db.[YOUR_DOMAIN_HERE]` file, then update `named.conf.local` import to reflect name change.
|
The main files to edit are the `named.conf.local` and `zones/*` files. These are currently referencing `schleppe` as a TLD. First rename or crate a new `zones/db.[YOUR_DOMAIN_HERE]` file, then update `named.conf.local` import to reflect name change.
|
||||||
|
|||||||
Reference in New Issue
Block a user