Installation serveur DNS
: suivi les etapes
root@localhost ~]# ls]
anaconda-ks.cfg
Desktop install.log install.log.syslog
/root@localhost ~]# cd Desktop]
root@localhost Desktop]# ls]
gnome-terminal.desktop RPMS
/root@localhost Desktop]# cd RPMS]
root@localhost RPMS]# ls]
cisco1.jpg
DHCP DNS FTP
LDAP NFS SAMBA
SSH TELNET
/root@localhost RPMS]# cd DNS]
root@localhost DNS]# ls]
bind-9.3.1-4.i386.rpm bind-libs-9.3.1-4.i386.rpm
bind-chroot-9.3.1-4.i386.rpm bind-sdb-9.3.1-4.i386.rpm
bind-devel-9.3.1-4.i386.rpm bind-utils-9.3.1-4.i386.rpm
bind-libbind-devel-9.3.1-4.i386.rpm binutils-2.15.94.0.2.2-2.i386.rpm
root@localhost DNS]# rpm -ivh
bind-9.3.1-4.i386.rpm]
attention: bind-9.3.1-4.i386.rpm: Entête signature
V3 DSA: NOKEY, key ID 4f2a6fd2
[Préparation... ########################################### [100%
paquetage bind-9.3.1-4 déjà installé
root@localhost DNS]# rpm -ivh
bind-chroot-9.3.1-4.i386.rpm]
attention: bind-chroot-9.3.1-4.i386.rpm: Entête
signature V3 DSA: NOKEY, key ID 4f2a6fd2
[Préparation...
########################################### [100%
[bind-chroot
########################################### [100%
root@localhost DNS]# cd /etc]
root@localhost etc]# gedit named.conf]
Nous choisirons les les zones 1 présents avantla zone 2 est copier aussi avant la zone 2
: est modifier les zones 1 comme la suit
/root@localhost etc]# cd
/var/named/chroot/var/named]
root@localhost named]# ls]
data
localhost.zone named.ca named.local slaves
localdomain.zone
named.broadcast
named.ip6.local named.zero
root@localhost named]# cat localhost.zone]
root@localhost named]# vi ofppt.com.zone]
root@localhost named]# vi ofppt.com.rev]
root@localhost named]# ls]
data
localhost.zone named.ca named.local ofppt.com.zone
ofppt.com.rev localdomain.zone
named.broadcast
named.ip6.local named.zero slaves
root@localhost named]# ln -s ofppt.com.zone /var/named]
root@localhost named]# ln -s ofppt.com.rev /var/named]
root@localhost named]# cd /var/named]
root@localhost named]# ls]
chroot
localhost.zone
named.ip6.local ofppt.com.rev
data
named.broadcast named.local ofppt.com.zone
localdomain.zone
named.ca named.zero slaves
root@localhost named]# cd /etc]
root@localhost etc]# vi resolv.conf]
en ajoute une ligne "search ofppt.com " dans le fichier resolv.conf
root@localhost etc]# service network restart]
[ Arrêt de l'interface eth0 : [ OK
[ Arrêt de l'interface de loopback : [ OK
[ Activation de l'interface loopback : [ OK
[ Activation de l'interface eth0 : [ OK
[root@localhost etc]# service named restart]
[ Arrêt de named : [ OK
[ Démarrage de named : [ OK
root@localhost etc]# nslookup]
ofppt.com <
Server:
127.0.0.1
Address:
127.0.0.1#53
Name:
ofppt.com
Address: 192.168.1.1
192.168.1.1 <
Server:
127.0.0.1
Address:
127.0.0.1#53
1.1.168.192.in-addr.arpa name = localhost.ofppt.com.
#[root@localhost etc]
ليست هناك تعليقات :
???????