[Dnsmasq-discuss] Dnsmasq as forwarder can't cache replies from multiple dns server
meenakshi sundaram
meenakshi_sma at yahoo.com
Mon Mar 5 15:37:23 GMT 2018
Hi All, I would like to know the behavior of dnsmasq in the following scenario
PC --- Dnsmasq-as-Forwarder-------- |------ DNS-Server1 { abc.123.com ---- 1.1.1.1, abc.123.com ---- 1.1.1.2} | | |--------DNS-Server-2 { abc.123.com ---- 1.1.1.3, abc.123.com ---- 1.1.1.4}
When PC sends the query for abc.123.com, Dnsmasq forwards queries to both DNS-servers. Both servers sends the reply.PC receives only one reply with answer from either DNS-Server1 or DNS-Server2. it is expected as per design.
I was expecting the dnsmasq-forwarder to cache the replies/answers from both servers( Server1's reply {abc.123.com ---- 1.1.1.1, 1.1.1.2} Server2's reply {abc.123.com ---- 1.1.1.3, 1.1.1.4)} .
When i checked the cache of dnsmasq-forwarder, it only caches the first reply from either DNS-Server1 or DNS-Server2, NOT both.
So wondering, how to do the RoudRobin Load balancing among four servers(1.1.1.1/2/3/4) which serves abc.123.com.
i checked the code. Looks like " the after processing first reply, the frec is freed, so dnsmasq can't cache the entries."
Could you explain?
thanksS.Meenakshisundaram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20180305/383cffe2/attachment.html>
More information about the Dnsmasq-discuss
mailing list