Service Management
Check the service:
systemctl status bind9
Start BIND9:
systemctl start bind9
Stop BIND9:
systemctl stop bind9
Restart BIND9:
systemctl restart bind9
View BIND9 service logs:
journalctl -u bind9 -f
Important Paths
- Configuration directory:
/etc/bind/ - Main configuration:
/etc/bind/named.conf - Options:
/etc/bind/named.conf.options - Local zones:
/etc/bind/named.conf.local - Cache/data directory:
/var/cache/bind/ - Systemd unit:
/usr/lib/systemd/system/named.service - Systemd alias/symlink:
/etc/systemd/system/bind9.service
Notes
- Configure BIND9 according to your DNS requirements and preferences.
- Before restarting BIND9 after making configuration changes, validate the configuration:
named-checkconf - Use RNDC to control and manage the BIND9 server:
rndc status