1.0 KiB
1.0 KiB
bind9
This repo details the configuration for BIND DNS on Ubuntu 22.04. You can set up your own DNS server by following this guide.
The basic configuration is as below:
- Install bind9 and check its status
apt update -y && apt upgrade -y
apt install bind9 bind9utils bind9-doc -y
sudo systemctl status bind9
-
Edit
/etc/bind/named.conf.options
and check its syntax withnamed-checkconf /etc/bind/named.conf.options
. There should be no output. -
Edit
/etc/bind/named.conf.local
and check its syntax withnamed-checkconf /etc/bind/named.conf.local
. There should be no output. -
Create a directory for your zone files with
mkdir /etc/bind/zones
and create your zone file in it as/etc/bind/zones/example.com
. Replaceexample.com
with your domain name. -
Check its syntax with
named-checkzone example.com /etc/bind/zones/example.com
. -
Restart bind9 with
sudo systemctl restart bind9
.