< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] ares doesn't send query to DNS servers of othersubnets


Hi Van,

I'm not sure I understand why the subnet is stored, how it is used, and
why the subnet is equal to: (subnet mask applied to DNS server
IP).  Can you explain this a bit more?

Thanks,
Scott

> 3.0) Proposed solution
> 
> * Ares (struct server_state) should associate each DNS servers with
its
> subnet, by way of its subnet address (subnet mask applied to DNS
server
> IP,
> for V4 and subnet address bit range for V6 (2002::/64).
> 
> * For each subnets/adapters, there's a set of DNS servers: be it
> primary,
> secondary or tertiary. For each set, one and only one of the servers
> will be
> tried should the query response 'No such name' be received. All the
> sets are
> tried until, of course, success or exhausted.
> 
> * Save the subnet address in ares' server_state structure.
> 
> * Check for rcode of 3 in process_answer and call the new function
> 'next_server_of_subnet_which_we_havent_visited_before' or something
> shorter.
> 
> Will post a patch sometime next week.
> 
> Van.
> 
>