Bonjour,
Voila je vous explique mon problème.
Tout d'abord je précise que je suis débutant en linux et en réseau donc je vous demanderai de me pardonner si je dis des conn***** .
Voila donc mon but est de faire un serveur DNS, ftp, web, mail en LAN.
Dans l ordre des chose .. j'install debian
- configuration ip
- telechargement des paquets
- ...
et voila la premiere question stupide.
a l installation on ma demander un domaine. moi j'ai mis workgroup vu que tout les pc ici sont en workgroup ... est ce que c est bon ?
je continue j instal l editeur de texte VIM
puis SSH
puis Bind9
la ca pose probleme au nivau de la configuration
je dois declarer une zone. dans le fichier /etc/bind/named.conf
==> vi /etc/bind/named.conf
la j obtiens ca:
Comme vous pouvez le voir j ai ici declarer une zone ...// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "debian.lan" {
type master;
file "etc/bind/db.debian.lan";
forwarders{};
};
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };
// From the release notes:
// Because many of our users are uncomfortable receiving undelegated answers
// from root or top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some length of time, we have now
// introduced the "root-delegations-only" feature which applies delegation-only
// logic to all top level domains, and to the root domain. An exception list
// should be specified, including "MUSEUM" and "DE", and any other top level
// domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };
le nom de mon serveur etant debian ... (test)zone "debian.lan" {
type master;
file "etc/bind/db.debian.lan";
forwarders{};
ensuite je dois creer un fichier pour definir une zone:
vi /etc/bind/db.debian.lan
dans lequel je rajoute:
apres ... resolution inverse. donc creation d un autre fichier$TTL 604800
@ IN SOA debian.lan. webmaster.debian.lan. (
20070409 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Minimum
@ IN NS ns.debian.lan.
@ IN MX 10 ns.debian.lan.
@ A 192.168.1.200
ns CNAME @
www CNAME @
ftp CNAME @
smtp CNAME @
pop CNAME @
imap CNAME @
==> vi /etc/bind/ns.debian.lan
dans lequel j insere:
apresz toutes ces manipulations ... un pti teste$TTL 604800
@ IN SOA ns.debian.lan. admin.debian.lan. (
20070409
604800
86400
2419200
604800 )
NS ns.debian.lan.
@ A 192.168.1.200
200 PTR debian.lan
200 PTR francois.lan
200 PTR papa.lan
==>et voila le resulta:/etc/init.d/bind9 reload
voila mon probleme ... si quelqu un pouvait m aider ... ce serait le plus gentils des humain...Reloading domain name service...: bindrndc: 'reload' failed: failure
failed!
Merci d avance.
J espèere avoir ete correctement explicite.
Partager