How to Set Up a DNS Server (Bind9)
Bind9 can run authoritative or caching DNS. Here we set the minimum for your own zone on Ubuntu.
Steps
Install Bind9.
sudo apt updatesudo apt install -y bind9 bind9utils bind9-docSet safer options (listen addresses; recursion local-only if authoritative) in named.conf.options.