bind9/README.md
2025-01-29 17:38:57 -05:00

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:

  1. Install bind9 and check its status
apt update -y && apt upgrade -y
apt install bind9 bind9utils bind9-doc -y
sudo systemctl status bind9
  1. Edit /etc/bind/named.conf.options and check its syntax with named-checkconf /etc/bind/named.conf.options. There should be no output.

  2. Edit /etc/bind/named.conf.local and check its syntax with named-checkconf /etc/bind/named.conf.local. There should be no output.

  3. 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. Replace example.com with your domain name.

  4. Check its syntax with named-checkzone example.com /etc/bind/zones/example.com.

  5. Restart bind9 with sudo systemctl restart bind9.