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?
1.1.1.1 is a DNS resolver for Cloudflare and resolves to one.one.one.one.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".
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (0 / 10) |
Uptime: | 81:55:05 |
Calls: | 12,949 |
Calls today: | 3 |
Files: | 186,574 |
Messages: | 3,264,677 |