Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/09/2006, à 08:16

Squall NTCK

Serveur Relay DNS

Bonjour tout le monde,

j'ai un petit problème, je n'arrive pas à configurer correctement mon bind (tournant sur la derniere  version serveur ) pour qu'il fasse office de relay dns. Voici un petit schéma de mon réseau

     
|-------------|                                  |-------------|                        |---------| 
| Client WiFi |                                  | Serveur     |                        |   DNS   |
|             |=============|Vlan1|==============| Ubuntu DNS  |========|Vlan 2|========|         |            
|-------------|                                  |-------------|                        |---------|
    ip 192.168.80.x                               eth0                   eth1                  ip 10.x.x.x

Voilà une petite idée de mon réseau, le but est d'isoler totalement mes clients wifi ( VLan, IP différent), donc on met en place une infrastructure differente ( DNS / proxy / DHCP / Firewall )

Le DHCP fonctionne et fournit les informations correctes, le DNS (Bind9) tourne et donne correctement les info sur les clients locaux, par contre, je n'arrive pas à obtenir les ip de site web. Voilà ou je configure mon DNS pour forwarder mes demandes.

        listen-on {192.168.80.1;};
        forwarders {
                10.129.64.35 port 53;
         };

        //include "/etc/rndc.key" ;

        auth-nxdomain yes; # conform to RFC1035

code qui provient biensur de mon fichier /etc/bind/named.conf.option

Dernière modification par Squall NTCK (Le 29/09/2006, à 08:22)

Hors ligne

#2 Le 29/09/2006, à 15:18

jdloic

Re : Serveur Relay DNS

Tu as précisé allow-recursion dans ta config (on peut pas en dire plus avec seulement une partie de la config).

Hors ligne

#3 Le 29/09/2006, à 16:29

Squall NTCK

Re : Serveur Relay DNS

Dans lequel tu ajoutes ton options?

root@HotSpot:~# vi /etc/bind/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.
        listen-on {192.168.80.1;};
        forwarders {
                10.129.64.35 port 53;
         };

        //include "/etc/rndc.key" ;

        auth-nxdomain yes; # conform to RFC1035

        //server 10.129.64.35{
        //};

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

Hors ligne

#4 Le 29/09/2006, à 21:18

jdloic

Re : Serveur Relay DNS

Essaye

root@HotSpot:~# vi /etc/bind/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.
        listen-on {192.168.80.1;};
        forwarders {
                10.129.64.35 port 53;
         };
         allow-recursion {192.168.80.0/24;};

        //include "/etc/rndc.key" ;

        auth-nxdomain yes; # conform to RFC1035

        //server 10.129.64.35{
        //};

};

Je ne suis pas spécialiste wink

Hors ligne