[PLUG] named.conf forwarders ....... for .in domain

Milind Arun Choudhary milindchoudhary at gmail.com
Fri Jan 16 15:00:45 IST 2009


Hi,

I haven't done this myself, but may be reversing the order will help.
Put all the specific cases above and if it falls through then the last
generic case will take care.

block for <domain123.co.in">
block for <domainXYZ.co.in">
block for <in>

I used similar rules in my spam filter.


Milind Arun Choudhary


On Fri, Jan 16, 2009 at 2:52 PM, Agnello George
<agnello.dsouza at gmail.com> wrote:
>
> Hi
>
> i have a small query .... i am adding a forwarder to my named.conf to
> forward all request coming to  domain ending with .in  to 192.168.2.2
> , however  i need to  forward all request coming for  domain123.co.in
>  to 192.168.2.123
>
> this is what i have done :
>
> zone "in" IN {
> type forward;
> forward only;
> forwarders {
> 192.168.2.2 port 530;
> };
> };
>
> zone "domain123.co.in" {
>  type forward;
>  forwarders {
>     192.168.2.123;
>     };
>  };
>
>
> however if do a # dig domain123.co.in -----------------> it still
> does'nt  forward to 192.1682.123  instead it forwards it to 192.1682.2
>
> Is there a regex i can use to do this ............ or is there any
> other way to do this
>
> Thanks a lot !!
> --
> Regards
> Agnello D'souza
>
> --
> ______________________________________________________________________
> Pune GNU/Linux Users Group Mailing List:      (plug-mail at plug.org.in)
> List Information:  http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail
> Send 'help' to plug-mail-request at plug.org.in for mailing instructions.




More information about the Plug-mail mailing list