Bind9

Fermé
s0s0 Messages postés 18 Date d'inscription mardi 15 janvier 2008 Statut Membre Dernière intervention 16 juin 2008 - 15 janv. 2008 à 10:00
s0s0 Messages postés 18 Date d'inscription mardi 15 janvier 2008 Statut Membre Dernière intervention 16 juin 2008 - 16 janv. 2008 à 07:15
Bonjour,

J'ai un gros problème avec bind9. J'ai installé Bind9 et configuré ce dernier. Les named-checkconf et named-checkzone me retournent aucune erreur, sauf que quand je tape ping www.jerthi.fr, ça ne fonctionne pas, idem quand je tape www.jerthi.fr dans l'url.Pouvez-vous m'aider svp. Voici toute mes fichiers de configuration.

=================================================
fichier named.conf

// 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 master
zone "jerthi.fr" {
type master;
file "etc/bind/db.jerthi";
};

//zone inverse
zone "203.168.192.in-addr.arpa" {
type master;
file "etc/bind/db.203.168.192";
};

// 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"; };

include "/etc/bind/named.conf.local";

================================================
fichier named.conf.options

options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.

// query-source address * port 53;

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.

// forwarders {
// 0.0.0.0;
// 127.0.0.1;
// };

auth-nxdomain no; # conform to RFC1035

};
================================================

fichier zone maitre

$TTL 864000
@ IN SOA test.jerthi.fr. root.jerthi.fr. (
2000042702 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
@ IN NS test.jerthi.fr ; Nom du serveur DNS
@ IN MX 10 test.jerthi.fr ; Champ MX qui définit les noms

serveur IN A 192.168.203.x ; On attribue le nom serveur à l'ip 192.168.203.x
twin1 IN A 192.168.203.x; Idem

www IN CNAME serveur.jerthi.fr.

================================================

fichier zone reverse

$TTL 86400
@ IN SOA test.jerthi.fr. root.jerthi.fr. (
2000042702 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)

@ IN NS test.jerthi.fr.

1 IN PTR serveur.jerthi.fr.

==============================================

Merci d'avance.
A voir également:

2 réponses

dans /etc/resolv.conf de tous les clients
il faut
nameserver 192.168.203.1

ce bind ne marche que dans un intranet
jerthi.fr n'est pas enregistré à l'afnic et les adresses en 192.168. ne sont pas des adresses publiques

il faudra également forwarder les requêtes vers un vrais serveur pour que les clients puis accéder à internet

http://aptgetinstall.free.fr
0
s0s0 Messages postés 18 Date d'inscription mardi 15 janvier 2008 Statut Membre Dernière intervention 16 juin 2008
16 janv. 2008 à 07:15
Merci pour la réponse, je vais essayer ce que tu m'as dit et je te tiendrais au courant ;)
0