Re: Split DNS et serveur esclave

Yohann Lepage <[email protected]>
Newsgroups gmane.network.dns.french
Message-ID <[email protected]>
Bonjour,

La méthode ci-dessous fonctionne avec 2..n vues assez simplement :

cf : http://www.bind9.net/BIND-FAQ


Q: 	
How do I share a dynamic zone between multiple views?

A: 	
You choose one view to be master and the second a slave and transfer the
zone between views.

Master 10.0.1.1:
	key "external" {
		algorithm hmac-md5;
		secret "xxxxxxxx";
	};

	key "mykey" {
		algorithm hmac-md5;
		secret "yyyyyyyy";
	};

	view "internal" {
		match-clients { !external; 10.0.1/24; };
		server 10.0.1.1 {
			/* Deliver notify messages to external view. */
			keys { external; };
		};
		zone "example.com" {
			type master;
			file "internal/example.db";
			allow-update { key mykey; };
			notify-also { 10.0.1.1; };
		};
	};

	view "external" {
		match-clients { external; any; };
		zone "example.com" {
			type slave;
			file "external/example.db";
			masters { 10.0.1.1; };
			transfer-source { 10.0.1.1; };
			// allow-update-forwarding { any; };
			// allow-notify { ... };
		};
	};


Cordialement,


Le 1 octobre 2010 07:46, <[email protected]> a écrit :
>
>
> Bonjour,
>
> Voila je me pose un petit problème.
> nous sommes entrain de faire le splitage des zones DNS pour une partie de nos
> locaux et je me retrouve face a un petit problème de configuration de bind.
>
> j'ai fait deux vues voici la config:
> view "internal" {
>  match-clients { 192.168.23.0/24; };
>  recursion yes;
>  zone "example.com" {
>   type master;
>   file "internal/master.example.com";
>  };
>  };
> view "external" {
>  match-clients {"any"; };
>  recursion no;
>  zone "example.com" {
>   type master;
>   file "external/master.example.com";
>  };
>  };
>
>
> La ca fonctionne sans souci sur le DNS maitre.
>
> par contre comment je configure les vues sur le DNS esclave ?
> Je sais pas trop comment le DNS va pouvoir récupéré la vue "externe" vu qu'il
> est en IP interne puisque appartenant au réseau local.
>
> Et autre petite question subsidiaire, est ce que je peux dans une vue mettre la
> directive forwarders pour indiqué suivant la vue ou aller chercher l'info
> manquante ?
>
> merci d'avance de votre aide.



--
Yohann L.
http://www.2xyo.info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.