(no subject)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

baalchina
Hi all, 

I had a bind 9.16.4 as recursive name server. I want to forward all queries to a specific dns server out of my net such as 8.8.8.8. While I have a new domain( such as abc.com) I want to forward to a new dns server such as 9.9.9.9.

Here is my named.conf:


options {
        listen-on port 53 {192.168.1.1;};
        recursion yes;
        allow-recursion {any;};
        forwarders {
                8.8.8.8;
        };
};

zone "abc.com" {
        type forward;
        forwarders {1.1.1.1;};

};

So, in this configuration, the abc.com will be forward to 8.8.8.8 or 1.1.1.1?

Thanks.




--
from:baalchina

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

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re:

Michael De Roover

I just tried to make an exception like this in /etc/bind/named.conf.local for .oss (at least its lack of ICANN accreditation is useful for something now) and it did indeed use the other name server (theirs rather than my usual Cloudflare).

On 6/28/20 6:43 AM, baalchina wrote:
Hi all, 

I had a bind 9.16.4 as recursive name server. I want to forward all queries to a specific dns server out of my net such as 8.8.8.8. While I have a new domain( such as abc.com) I want to forward to a new dns server such as 9.9.9.9.

Here is my named.conf:


options {
        listen-on port 53 {192.168.1.1;};
        recursion yes;
        allow-recursion {any;};
        forwarders {
                8.8.8.8;
        };
};

zone "abc.com" {
        type forward;
        forwarders {1.1.1.1;};

};

So, in this configuration, the abc.com will be forward to 8.8.8.8 or 1.1.1.1?

Thanks.




--
from:baalchina

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

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
--
Met vriendelijke groet / Best regards,
Michael De Roover

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

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re:

Ben Croswell
In reply to this post by baalchina
In this case a zone level forwarder takes priority over the global forwarder. Abc.com would go to 1.1.1.1

On Sat, Jun 27, 2020, 11:44 PM baalchina <[hidden email]> wrote:
Hi all, 

I had a bind 9.16.4 as recursive name server. I want to forward all queries to a specific dns server out of my net such as 8.8.8.8. While I have a new domain( such as abc.com) I want to forward to a new dns server such as 9.9.9.9.

Here is my named.conf:


options {
        listen-on port 53 {192.168.1.1;};
        recursion yes;
        allow-recursion {any;};
        forwarders {
                8.8.8.8;
        };
};

zone "abc.com" {
        type forward;
        forwarders {1.1.1.1;};

};

So, in this configuration, the abc.com will be forward to 8.8.8.8 or 1.1.1.1?

Thanks.




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

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users

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

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: your mail

Matus UHLAR - fantomas
In reply to this post by baalchina
On 28.06.20 12:43, baalchina wrote:
>I had a bind 9.16.4 as recursive name server. I want to forward all queries
>to a specific dns server out of my net such as 8.8.8.8.

it makes no sense to foward queries to 8.8.8.8, BIND can do the resolution
itself. Unless your access to internet is blocked, but access to 8.8.8.8
(and 1.1.1.1) is not.

> While I have a new
>domain( such as abc.com) I want to forward to a new dns server such as
>9.9.9.9.
>
>Here is my named.conf:
>
>
>options {
>        listen-on port 53 {192.168.1.1;};
>        recursion yes;
>        allow-recursion {any;};
>        forwarders {
>                8.8.8.8;
>        };
>};


>zone "abc.com" {
>        type forward;
>        forwarders {1.1.1.1;};

of 1.1.1.1 is IP of nameserver for abc.com, you should better configure it
as "type stub" or "type static-stub".

Note that resolving BIND can do that itself, so it really only matters if
1.1.1.1 is not accessible from internet.

>};

>So, in this configuration, the abc.com will be forward to 8.8.8.8 or
>1.1.1.1?

the latter.
--
Matus UHLAR - fantomas, [hidden email] ; 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.
Microsoft dick is soft to do no harm
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: your mail

@lbutlr
On 28 Jun 2020, at 09:13, Matus UHLAR - fantomas <[hidden email]> wrote:
>> zone "abc.com" {
>>       type forward;
>>       forwarders {1.1.1.1;};
>
> of 1.1.1.1 is IP of nameserver for abc.com, you should better configure it
> as "type stub" or "type static-stub".

1.1.1.1 is a DNS resolver for Cloudflare and resolves to one.one.one.one.

(I know the sis old, but since it is a DNS server that I use, I found it odd os see acclaim that it was abc.com which is 143.204.25.15, 143.204.25.61, 143.204.25.54, and 143.204.25.50.



--
"Are you pondering what I'm pondering?"
"I think so, Brain. But Trojans won’t arrive on the scene for another
        300 years."

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

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users