I have a DC in charge of 2 networks,
network A (192.168.1.0/24) and
network B (192.168.2.0/24)
Network A has Gateway A (192.168.1.254)
Network B has Gateway B (192.168.2.254)
The DC runs a DNS which resolves all IPs for our workstations. The DNS links up to OpenDNS.
We are a school, so network A is our administration net, and network B is our student net. The student network is filtered by OpenDNS, the admin net is unfiltered.
DNS requests from workstations in network A should be routed by the server to gateway A, requests from workstations in network B should go to gateway B. If they do not, OpenDNS will not properly filter.
Currently, the DNS server routes all requests through gateway A, regardless of whether the request came from network A or B.
Network A is unfiltered at OpenDNS, so they return correct results which then get sent to workstations in network B, who can then surf unfiltered.
How can I force the DNS server to route the requests based on what network the request came from?
Since the DNS listens on 2 IP addresses, one in each network, I assume it is possible somehow to send the requests back to the gateways of their respective networks.
I have tried setting static default routes for each network to their respective gateway, but that does not seem to do the trick.