0% found this document useful (0 votes)
14 views2 pages

Dns Commands

This document outlines the steps to install and configure the BIND DNS server on a Linux system. It includes commands for package verification, hostname setting, DNS configuration, and firewall adjustments. Additionally, it provides instructions for creating zone files and verifying configurations to ensure proper DNS functionality.

Uploaded by

Amira rkiouak
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)
14 views2 pages

Dns Commands

This document outlines the steps to install and configure the BIND DNS server on a Linux system. It includes commands for package verification, hostname setting, DNS configuration, and firewall adjustments. Additionally, it provides instructions for creating zone files and verifying configurations to ensure proper DNS functionality.

Uploaded by

Amira rkiouak
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/ 2

 Verifier lexistance de packag bind

rpm -qa | grep -i bind


 Hostname set-hostname (name)
 Install bind
Dnf install bind bind-utils ou yum install bind bind-utils
 Configurer le fichier dns : /etc/named.conf
1. Vim /etc/named.conf
 listen-on port 53 { 127.0.0.1;(address de cart reseau; ); };
 allow-query { localhost;(les reseau permet/24; };
 declarair les zone direct et indirect
};
zone "ntic.local." IN {
type master;
file "ntic.local.direct";
allow-update { none; };
};
zone "10.168.192.in-addr.arpa." IN {
type master;
file "ntic.local.rev";
allow-update { none; };
};
 vim /etc/resolv.conf

search ntic.local

nameserver 192.168.10.1

 cat /var/named/named.localhost
o copy 
o cd /var/named/
 cp named.localhost ntic.local.dir
 vim ntic.local.dir
$TTL 1D
@ IN SOA (nom domain)ns1.ntic.local.
admin.ntic.local.<==(gmail de admin) (
0 ; serial  date
synchronization
1D ; refresh  date des
mises a jour
1H ; retry 
1W ; expire  la period
Avant expir
3H ) ; minimum 
)
@ IN NS DNS.ntic.local.
DNS IN A 192.168.10.1
clt1 IN A 192.168.10.5

www IN CNAME DNS.ntic.local.


ftp IN CNAME DNS.ntic.local.
 vim ntic.local.inv
$TTL 86400
@ IN SOA DNS.ntic.local. root.ntic.local. (
20241205 ; serial
3600 ; refresh
1800 ; retry
604800 ; expire
86400 ; minimum TTL
)
@ IN NS DNS.ntic.local.
DNS IN A 192.168.10.1
5 IN PTR clt1
1 IN PTR DNS
 ll pour affichier les autorisation des fichier
 chown -R named:named ntic.local.direct  pour changer lea
autorisation user et group
 systemctl enable named  active named
 systemctl restart named  restarter named
 named-checkconf /etc/named.conf  verifier l error de fichier
named.conf
 named-checkzone ntic.local ntic.local.inv  verifier lerrour de inv et
direct
 firewall-cmd --add-service=dns  ajouter dns dans le firewall
 nmcli connection modify ens33 ipv4.dns 192.168.10.1  ajouter dns dans cart reseaux
ens33
 nmcli connection down ens33; nmcli connection up ens33  redimarer la cart reseaux
 nslookup
 systemctl stop firewalld

You might also like