Re: Redirecting subdomain to different resolver

2011-10-20 Thread Matus UHLAR - fantomas

On 19.10.11 17:26, feralert wrote:

I have a domain defined within a zone statement so it resolves
hostnames via the intranet, just like this:

   zone intradomain.com { type forward; forwarders {
10.222.1.21;};};


Now there is this host which does not resolve internally (with an
intranet ip) but it does externally (wan ip): www.sub.intradomain.com.
And my problem is that I need to, somehow, override de 'zone
intradomain.com' statement, so this particular host/subdomain would
resolve externally.


you must configure another zone www.sub.intradomain.com or 
sub.intradomain.com.


You can use type static-stub since 9.8 instead of forward, it just
requires using of server-names or server-addresses instead of 
forwarders.


Note that forward ask other servers to resolve a domain (sends 
recursive request), while static-stub defines servers that provide 
the destination domain (sends iterative requests).


So, the forward can be configured to fall-back to standard 
resolution, and it can resolve delegated subdomains, if the forwarders 
allow recursion to you.


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Despite the cost of living, have you noticed how popular it remains? 
___

Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Redirecting subdomain to different resolver

2011-10-20 Thread feralert
Thank you guys, I have finally solved it.

Eduardo: Sorry, I think you didnt get me right or I didnt explain
myself properly, thats not what i was looking for, but thanks for
replying.

Matus: Unfortunately I am running bind 9.4 so I couldn't try what you
propose, altough what i finally did was in the same direction.

Luckily enough I found this page:
http://www.brandonhutchinson.com/Overriding_global_forwarding_with_BIND.html;
and it did the trick for me.

What I did was add a zone for the FQDN with an empty 'forwarders' stanza:

zone www.sub.intradomain.com { type forward; forwarders { }; };

And it did work! Now it goes resolve this particular host externally.



Thanks again for your help,
Fred.



“Free software” is a matter of liberty, not price. To understand the
concept, you should think of “free” as in “free speech”, not as in
“free beer”.

Free software is a matter of the users' freedom to run, copy,
distribute, study, change and improve the software.



On Thu, Oct 20, 2011 at 9:22 AM, Matus UHLAR - fantomas
uh...@fantomas.sk wrote:
 On 19.10.11 17:26, feralert wrote:

 I have a domain defined within a zone statement so it resolves
 hostnames via the intranet, just like this:

               zone intradomain.com { type forward; forwarders {
 10.222.1.21;};};


 Now there is this host which does not resolve internally (with an
 intranet ip) but it does externally (wan ip): www.sub.intradomain.com.
 And my problem is that I need to, somehow, override de 'zone
 intradomain.com' statement, so this particular host/subdomain would
 resolve externally.

 you must configure another zone www.sub.intradomain.com or
 sub.intradomain.com.

 You can use type static-stub since 9.8 instead of forward, it just
 requires using of server-names or server-addresses instead of
 forwarders.

 Note that forward ask other servers to resolve a domain (sends recursive
 request), while static-stub defines servers that provide the destination
 domain (sends iterative requests).

 So, the forward can be configured to fall-back to standard resolution, and
 it can resolve delegated subdomains, if the forwarders allow recursion to
 you.

 --
 Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
 Warning: I wish NOT to receive e-mail advertising to this address.
 Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
 Despite the cost of living, have you noticed how popular it remains?
 ___
 Please visit https://lists.isc.org/mailman/listinfo/bind-users to
 unsubscribe from this list

 bind-users mailing list
 bind-users@lists.isc.org
 https://lists.isc.org/mailman/listinfo/bind-users

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Redirecting subdomain to different resolver

2011-10-19 Thread feralert
Hi all,

I have a domain defined within a zone statement so it resolves
hostnames via the intranet, just like this:

zone intradomain.com { type forward; forwarders {
10.222.1.21;};};


Now there is this host which does not resolve internally (with an
intranet ip) but it does externally (wan ip): www.sub.intradomain.com.
And my problem is that I need to, somehow, override de 'zone
intradomain.com' statement, so this particular host/subdomain would
resolve externally.

I hope I explained myself properly, please do ask if it's not clear enough.

¿Is this at all possible?, if so ¿how?


Cheers,
Fred.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users