LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   BIND9 as forwarder, IPv6 queries from IPv6 forwarders (https://www.linuxquestions.org/questions/linux-server-73/bind9-as-forwarder-ipv6-queries-from-ipv6-forwarders-770998/)

Nonoo 11-23-2009 09:49 AM

BIND9 as forwarder, IPv6 queries from IPv6 forwarders
 
Hello,

I have an IPv4 and an IPv6 link on my home server. My provider has 2 IPv4 and 2 IPv6 domain name servers. I'm using BIND9 as a caching DNS server, I configured my provider's 4 DNS servers as forwarders.

The problem is when an IPv4 DNS query arrives, BIND forwards the query to the first server in the forwarders list, not to the server with the same protocol. I would like BIND to forward a query coming from an IPv4 host to an IPv4 domain server, and a query coming from an IPv6 host to an IPv6 domain server.

I think the only resolution for this problem is to run 2 BIND9 processes, one listening on IPv4 and one on IPv6, the first configured with IPv4 forwarders only, and the second with IPv6 forwarders only.

Can this be done with only one BIND9 instance?

Thanks for the help.

janoszen 11-23-2009 01:57 PM

Independent
 
There is absolutely no reason for BIND to do that. The DNS protocol is independendent from the underlying IP transport. Your resolver doesn't even need IPv6 connectivity to resolve AAAA records as long as there aren't any IPv6-only nameservers.

Enabling IPv6 for stylish reasons without knowing about the technology is a bad idea and brings security risks. The very least I can recommend is you do a lot more reading before changing the way things work.


All times are GMT -5. The time now is 06:35 AM.