DNS is a system that translates user-friendly domain names (like www.example.com) into IP addresses that computers use to locate each other on the internet.
It serves as a directory for the internet, making it easier for people to access websites without needing to remember numerical IP addresses.
A DNS server, or Domain Name System server, is a critical component of the internet infrastructure that translates human-readable domain names into machine-readable IP addresses.
1.1 Set up a DNS server (Bind) on a separate machine.
1.1.1 Install BIND DNS Server && dnsutils package
sudo apt-get update
sudo apt-get install bind9
sudo apt install dnsutils1.1.2 Adjust BIND Configuration Files:
Edit the BIND configuration file, typically located at /etc/bind/named.conf.options, and customize settings:
1.1.3 Specify Domain Name:
Edit the main BIND configuration file and specify your domain name:
1.1.4 Create DNS Zone Files
Creating DNS zone files involves defining resource records (RRs) for a domain, specifying information like IP addresses, mail servers, and other associated resources
1.1.5 Create Reverse DNS Zone
A reverse zone file, often called a Reverse DNS (rDNS) maps IP addresses to hostnames, aiding in identification, verification, and overall network management
1.1.6 Edit resolv.conf file : setting search domains, and defining resolver option.
1.1.7 Check Configuration Files and Dns Zone file:
ensures the correct syntax and structure, helping to prevent errors and ensure the proper functioning of the DNS zone within the BIND DNS server.
1.1.8 Restart server and verify resolution
dig main.projet.local
dig ldap.projet.local
dig openvpn.projet.localtest each FQDN in browser