Conf Dns

Vous aimerez peut-être aussi

Télécharger au format txt, pdf ou txt
Télécharger au format txt, pdf ou txt
Vous êtes sur la page 1sur 3

configuration dns

==================
par internet===>
par media ===>
rpm -q / -qa
rpm -e bind

yum install bind


rpm -ivh bind
bind

verification du paqutage est ce qu'il est deja install ou non

-----------rpm -ivh dnssec.conf 1.21.5.fc12.moarch.rpm


-python
-bind 9.6.1.p1.fc12.i386.rpm
cd ====>conf carte rseau
/etc/sysconfig/network-scripts/ifcfg-eth0
device=eth0
bootp=static
ipaddr=192.168.1.10
netmask=255.255.255.0
gateway=192.168.1.1
onboot=yes
type=ethernet
redemarage du @
service network restart
/etc/init.d/netowrking e

restart

========configuration du fichier principale named.conf


/etc/named.conf
yyu
{
listen-on port 53 {127.0.0.1;192.168.1.10(address @ du serveur)
.
-allow-query (localhost;192.168.1/24)
.;}
========================
{
zone "pimas.local" IN (
Type master;
File"pimas.local.zone"
}
===========================
{
zone "1.168.192.in-addr.arpa" IN (
Type master;
File"zone.rev "
======================
cd /var/named
cration des deux fichier
touch pimas.local.zone zone.rev

=====
cp named.localhost pimas.local.zone
((vi /etc/sysconfig/network==>> pour changer hostname ))
vi pimas.local.zone
--------------------------------------------------------------------------@
IN SOA
(hostname).pimas.local.zone.
root.pimas.local.zone.
42 ; serial
ID;refrech
IN;retry
LW;expire
3H );minimum
......................................./
/
example:
NS @
A 127.0.0.1
AAAA ;;1
/....................................../
@
IN
NS
e.
hostname.pimas.local.zone IN
A

hostname.pimas.local.zon
192.168.1.10

---------------------------------------------------------------------------

--------------------------------------------------------------------------les enregistrements de dns


NS---name server
A---rsolution de nom de domain a une address ip
AAAA--- ipv6
PTR----rsolution d'une adresse ip vers un nom de domaine
----------------------------------------------------------------------------------------------------------------------------------------------------cp pimas.local.zone zone.rev
vi zone.rev
--------------------------------------------------------------------------@
IN SOA
(hostname).pimas.local.zone.
root.pimas.local.zone.
42 ; serial
ID;refrech
IN;retry
LW;expire
3H );minimum
@
e.
10

IN

NS

IN

PTR

hostname.pimas.local.zon
hostname.pimas.local.z

one.
--------------------------------------------------------------------------vi /etc/resolv.conf
----------------------------search pimas.local
nameserver 192.168.1.10
----------------------------service named restart

la commande nslookup

Vous aimerez peut-être aussi