Divert DNS traffic to another gateway

hello all,

i have a local bind9 dns server running on debian.
its default gateway is 10.0.0.x. This internet gateway
has limited bandwidth.

we have another high speed internet connection(adsl) and the gateway to access this connection is 10.0.0.y.

all users in the office are using 10.0.0.x as dns server(its distibuted by the dhcp server)

i want my bind dns server to use the adsl (10.0.0.y) connection to do lookups on external dns servers(e.g the isp dns server or google public dns server) instead of the 10.0.0.x gateway.

please help and advise, how can i solve out this issue.

thanks
coolatt

The obvious way would be to reconfigure your DHCP server to give out this new DNS configuration. As they are on the same subnet, routing tricks don't seem applicable; hosts don't go through the gateway at all to get to it, so there's nowhere to intercept and reroute it.

finally,,,i got a solution.

i installed bind9 on a machine(10.0.0.z) & configured it to use adsl gateway.

next,on my DNS server, in the conf of bind, i added 10.0.0.z as the only forwarder(as if it is an isp dns server)

I also configured bind9 to do logging so that i can debug very easily. :slight_smile: