FICHIER TOTO.EDU
 
$TTL 86400
 
@  IN	SOA	serveur.toto.edu. root.toto.edu. (
   	2004090300
   	7200	;raffraichissement 2 heures
   	1200	;reessai 20 minutes
   	1209600	;obsolescence 2 semaines
   	86400 )	;durée de vie 1/2 jour
 
@  IN	NS	serveur.toto.edu.
   HINFO	PIII-BI-500/1Go/Mandrake 9.1
   A	192.168.168.4
   TXT	"Serveur toto"
 
pc1  IN	A	192.168.168.1
pc2        	IN	A	192.168.168.2
pc3  IN	A	192.168.168.3
serveur  IN	A	192.168.168.4
 
voila ce que j'ai !!!
ca fait un bail que je l'avais fait par contre j'pourrais te donner l'reste si tu y arrives point  
 
edit: NAMED.CONF
 
options {
 directory "/var/named";
 pid-file "/var/run/named/named.pid";
 
 forwarders {
 	193.X.X.X;
 	};
 
 forward first;
 
 query-source port *;
 version "SECRET";
 allow-query { 192.168.168.0/24; 127.0.0.1; };
 allow-recursion { 192.168.168.0/24; 127.0.0.1; };
 listen-on { 192.168.168.4; 127.0.0.1; };
 };
 
# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
       algorithm hmac-md5;
       secret "CZv1QXTcrgkYbRfIZ8jsEw==";
};
 
controls {
       inet 127.0.0.1 port 953
               allow { 127.0.0.1; } keys { "rndc-key"; };
};
 
logging {
 category lame-servers { null; };
// category cname { null; };
};
 
zone "." IN {
        type hint;
        file "zone/root.hint";
};
 
zone "toto.edu" IN {
 type master;
 file "zone/iutogp.edu";
 allow-query { any; };
};
 
zone "0.0.127.in-addr.arpa" IN {
 type master;
 file "zone/127.0.0";
 allow-query { any; };
};
 
zone "168.168.192.in-addr.arpa" IN {
 type master;
 file "zone/192.168.168";
};
 
Message édité par asgardcfr le 14-09-2005 à 14:41:28