This article provides a hands-on guide for implementing common DNS records using a BIND9 DNS server in a two-machine setup.
This article offers a practical, learn-by-doing session on implementing common DNS records using a BIND9 DNS server. In this demo, we will utilize a two-machine setup:
Node-01: Configured as the BIND9 DNS server.
Node-02: Hosts a web server (e.g., Nginx) to demonstrate real-world DNS resolution.
This environment simulates how a DNS server and a web server interact, allowing you to experiment locally without impacting production systems.
In this guide, the DNS server is configured for local experimentation only, ensuring that any configuration errors do not affect live internet services.
To check the current status of the BIND9 service, execute:
Copy
systemctl status named
A typical output might look like this:
Copy
● named.service - BIND Domain Name Server Loaded: loaded (/lib/systemd/system/named.service; enabled; vendor preset: enabled) Active: inactive (dead) Docs: man:named(8)
If the service status shows it as inactive (dead), make sure to start the service using the command provided below.
To start the BIND9 service, run:
Copy
sudo systemctl start named
After starting the service, check its status again to confirm that BIND9 is now active and running.With BIND9 installed, configured, and running, you can now proceed with further configurations and tests to explore how DNS resolution operates in our dual-machine setup.For more insights on DNS best practices and configurations, refer to our detailed documentation and additional resources.