0% found this document useful (0 votes)
21 views6 pages

Nom: Atifi Prénom: Adil Class: SRI1: DNS Configuration TP

This document provides instructions for configuring a primary DNS server, secondary DNS server, and DNS client in an Ubuntu 22.04 network. It describes installing bind9 on three systems - one for the primary server with IP 192.168.1.1, one for the secondary server with IP 192.168.1.2, and one client system with IP 192.168.1.3. It then provides steps to configure the named.conf.local files and zone files on the primary and secondary servers to set up forwarding and reverse lookups between the servers and client.

Uploaded by

saad Elqadirir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views6 pages

Nom: Atifi Prénom: Adil Class: SRI1: DNS Configuration TP

This document provides instructions for configuring a primary DNS server, secondary DNS server, and DNS client in an Ubuntu 22.04 network. It describes installing bind9 on three systems - one for the primary server with IP 192.168.1.1, one for the secondary server with IP 192.168.1.2, and one client system with IP 192.168.1.3. It then provides steps to configure the named.conf.local files and zone files on the primary and secondary servers to set up forwarding and reverse lookups between the servers and client.

Uploaded by

saad Elqadirir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

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 pri.adeelatfi.com 192.168.1.1/24
Server
sec Secondary DNS sec.adeelatfi.com 192.168.1.2/24
Server
Client1 Host 1 client1.adeelatfi.com 192.168.1.3/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 Adeelatfi.com as a FQDN


#sudo nano /etc/bind/named.conf.local

 We need to create the corresponding forward and reverse zone


files:
#sudo nano /etc/bind/db.adeelatfi.com
 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 named.conf.local file

#sudo nano /etc/named.conf.local

 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 01-network-manager-all.yaml
 Starting the primary and the secondary servers, Test the client
using commands: dig nslookup dig –x

You might also like