AI-generated summary
To set up a DNS server using BIND9 on a Linux system, follow these steps:
1. **Install BIND9**: Use the command `yum install -y bind bind-utils`.
2. **Start the Service**: Run `systemctl start named`.
3. **Check Service Status**: Use `systemctl status named` to verify it's running.
4. **Enable Auto-Start**: Configure the service to start on boot with `systemctl enable named`.
5. **Configure named.conf**: Edit `/etc/named.conf` to set options like listening ports, log file paths, and allowed query IPs.
6. **Set Up DNS Zones**: Modify `/etc/named.rfc1912.zones` to define zones for localhost and a custom domain (e.g., "elk.com").
7. **Create Zone Data File**: Create `/var/named/elk.com.zone` to define DNS records for the domain and its subdomains.
8. **Set Permissions and Firewall**: Create a log directory, set permissions, and allow DNS service through the firewall using `firewall-cmd`.
9. **Update Network DNS**: Change the DNS server to `10.10.2.103` using `nmtui` and restart the network.
10. **Verify Configuration**: Test the DNS setup by pinging external and internal domains.
Ensure to restart the named service and the network manager for changes to take effect.