[user@server1 ~]$ su
Mot de passe :
1-
[root@server1 ]# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Server1.societe.m?a
[root@server1 ]# vi /etc/hosts
127.0.0.1 Server1.societe.ma
2-
[root@server1 ]# service network start
3-
[root@server1 ]# ifconfig eth0 192.168.100.1/24
4-
[root@server1 ]# rpm -q bind
le paquetage bind n'est pas installé
5-
[root@server1 ]# rpm -ivh '/home/khalid/Bureau/bind-?9.7.0-9.P1.fc13.i686.rpm'
Préparation... ##########################?################# [100%]
1:bind ##########################?################# [100%]
6-
[root@server1 ]# vi /etc/named.conf
options {
listen-on port 53 { 127.0.0.1; 192.168.100.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dum?p.db";
statistics-file "/var/named/data/named_sta?ts.txt";
memstatistics-file "/var/named/data/named_mem?_stats.txt";
allow-query { localhost; 192.168.100.0/24; };
recursion yes;
[root@server1 ]# vi /etc/named.rfc1912.zones
zone "societe.ma" IN {
type master;
file "/var/named/societe.ma";
};
7-
zone "100.168.192.in-addr.arpa"? IN {
type master;
file "/var/named/societe.ma.rev?";
};
8-
[root@server1 ]# cd /var/named
[root@server1 named]# ls
data dynamic named.ca named.empty named.localhost named.loopback slaves
[root@server1 named]# more named.localhost
$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
[root@server1 named]# vi societe.ma
$TTL 2D
@ IN SOA Server1.societe.ma. root.societe.ma. (
2606201101 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS Server1.societe.ma.
Server1.societe.ma. IN A 192.168.100.1
[root@server1 named]# vi societe.ma.rev
$TTL 2D
@ IN SOA Server1.societe.ma. root.societe.ma. (
2606201101 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS Server1.societe.ma.
1 IN PTR Server1.societe.ma.
9-
[root@server1 named]# service named start
Démarrage de named : [ OK ]
10-
[root@server1 named]# nslookup
> 192.168.100.1
Server: 127.0.0.1
Address: 127.0.0.1#53
1.100.168.192.in-addr.arpa? name = Server1.societe.ma.
> Server1.societe.ma
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: Server1.societe.ma
Address: 192.168.100.1
0 commentaires:
Enregistrer un commentaire