[Dnsmasq-discuss] force --local/--server protocol

Simon Kelley simon at thekelleys.org.uk
Wed Jan 2 10:33:03 GMT 2013


On 01/01/13 13:33, Mr Dash Four wrote:
> I would like to force dnsmasq to use a particular protocol (tcp or udp)
> when connecting to the underlying dns server.
> 
> As I see it, currently there is no way for me to specify that in either
> "--local" or "--server" options ("local" and "server" in dnsmasq.conf).
> For various reasons, I use TCP-only dns server and would like to be able
> to get dnsmasq to use that server for a certain group of requests. Is
> there any way I could do that? Thanks!
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 

Dnsmasq always uses TCP to connect to the upstream server when it gets a
DNS request via TCP, and the same for UDP. If you can control what
protocol your clients use, the problem is solved. If you can't, then the
problem is very difficult, since changing the dnsmasq code to
mix-and-match TCP and UDP would be rather difficult.


Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list