How to Setup DNS Server (Bind9) on Ubuntu 24.04 | Step-by-Step Guide

22K views Nov 6, 2024
linuxtechi.com

Learn how to set up a powerful DNS server on Ubuntu 24.04 with Bind9, perfect for internal networks and custom domain resolution. This comprehensive step-by-step tutorial covers everything from installation to configuration and testing. ### Steps Covered: **1. Update System Packages** - Ensure your server is up-to-date before installation: sudo apt update && sudo apt upgrade -y **2. Install Bind9** - Install Bind9 along with utilities and documentation: sudo apt install bind9 bind9utils bind9-doc -y **3. Configure Bind9** - Edit the primary configuration file to define access control and DNS settings: sudo vi /etc/bind/named.conf.options - Set up an internal network ACL and configure options such as forwarders, recursion, and query access. acl internal-network {192.168.1.0/24;}; options {