Nom: Atifi
Prénom: Adil
Class: SRI1
DNS CONFIGURATION
TP :
DNS is the server that resolves IP Addresses into domain
names or the reverse. This TP describes how to install and
configure DNS server in Ubuntu 22.04. For the purpose of
this guide, I will be using three Systems, one for primary
DNS server, second for the secondary DNS and the third is
for the DNS client.
Be sure to create each server in the same private network:
A fresh Ubuntu 22.04 server to serve as the Primary DNS
server, pri.
A second Ubuntu 22.04 server to serve as a Secondary DNS
server, sec.
At least one additional server. which will be referred to as client
servers, client1
HOST ROLE FQDN IP ADDRESSES
pri Primary DNS [Link] [Link]/24
Server
sec Secondary DNS [Link] [Link]/24
Server
Client1 Host 1 [Link] [Link]/24
I will use the Bind name server software (BIND9) to resolve
private Hostnames and private IP Addresses.
#sudo apt-get install bind9 bind9utils bind9-doc
PRIMARY DNS SERVER:
I will be using [Link] as a FQDN
#sudo nano /etc/bind/[Link]
We need to create the corresponding forward and reverse zone
files:
#sudo nano /etc/bind/[Link]
The forward zone file is where you define DNS records for
forward DNS lookups
#sudo nano /etc/bind/db.192.168.1
Next create the reverse zone
SECONDARY DNS SERVER :
You need a separate System to set up this server, after installing
bind9 packages. Edit the [Link] file
#sudo nano /etc/[Link]
DNS CLIENT:
Now you have primary and secondary dns servers for private
network name and IP Address resolution. Now you must
configure your client servers to use your private DNS servers.
#cd /etc/netplan
#sudo nano [Link]
Starting the primary and the secondary servers, Test the client
using commands: dig nslookup dig –x