20110329

DNS forwarding de un domino - Per-domain DNS forwarding

Días atrás me ha tocado configurar una nueva línea de comunicaciones por la que se va a acceder a un amplio abanico de servicios ofertados por otra organización. Para acceder a estos servicios necesito resolver los nombres desde sus servidores DNS, pero no quiero dejar de utilizar mis forwarders para el resto de sitios externos a mi organización, así que las consultas DNS van a ser resueltas del siguiente modo:
1.- las consultas a mi dominio corporativo midom.local van a ser resueltas por mis servidores corporativos.
2.- las consultas al dominio de esta otra organización otrodom.local van a ser reenviadas al servidor DNS ns1.otrodom.local de esta otranización, que actuará como forwarder para este dominio.
3.- el resto de consultas no resueltas anteriormente serán reenviadas a los forwarders ya configurados.

Para resolver el punto 2 y teniendo en cuenta que los servidores DNS de la otra organización son 192.168.209.1 y 192.168.204.1, he hecho lo siguiente:
- BIND en GNU/Linux:
he añadido al fichero named.conf la siguiente sección:
zone "otrodom.local" in {
    type forward;
    forwarders { 192.168.209.1; 192.168.204.1; };
};

- Microsoft Windows:
En las propiedades del servidor DNS dentro de la consola de administración (mmc), he configurado la zona de reenvío como se puede ver en la imagen.

Bastaría con aplicar la configuración en el servidor DNS de MS Windows, y recargarla en BIND, comprobar su funcionamiento y listo.

Few days ago I have to a new line to access some services served by other organization. To access these new services I have to query the DNS server owned by this other organization but I didn't want to stop using the forwarders I have configured, so to solve I configured my DNS servers to answer the queries in the following way:

1.- queries to my local domain mydom.local are answered by the corporate DNS servers.
2.- queries to the anotherdom.local domain of the other organization are forwarded to the external DNS server ns1.otrodom.local.
3.- the rest of the queries are forwarded to the other forwarders already configured .

If the DNS servers of the anotherdom.local are 1982.168.209.1 and 192.168.204.1 we could solve the second point on this way::
BIND on GNU/Linux:
adding the following section to the named.conf file:
zone "anotherdom.local" in {
    type forward;
    forwarders { 192.168.209.1; 192.168.204.1; };
};

Microsoft Windows:
To configure the Microsoft Windows DNS servers you have to go to the DNS server properties (forwarders tab) using the management console and configure the zone as you can see on the image beside.

PS. I know, I know. My English is not good enought but, the more you help me, the more I learn.

No hay comentarios: