Re:Robdns – A fast DNS server based on C10M principles
by nitinics on Saturday December 27, 2014 @12:25PM
(#8803180)
With the advent of DNSSEC, IPv6 and EDNS0 you're more likely to see DNS responses >512 bytes, therefore falling back to TCP (with truncate bit set). Therefore it is strongly recommended you do not drop/block tcp 53 on your middleboxes , firewalls etc.
[ Parent
| on HN ]
Re:Robdns – A fast DNS server based on C10M principles
by zaroth on Saturday December 27, 2014 @02:49PM
(#8803689)
Another interesting use-case for TCP in DNS is for anti-DDoS. If a botnet is abusing your DNS server to flood traffic to their target, flipping the 'TC' bit which will force the request to come back over TCP, exposing the spoof.
My long-winded write-up here: http://opine.me/cert-advisory-on-dns-amplification-offers-li...
Re:Robdns – A fast DNS server based on C10M principles
by jamiesonbecker on Saturday December 27, 2014 @07:36PM
(#8804607)
Very interesting, thx for the link!
Re:Robdns – A fast DNS server based on C10M principles
by colmmacc on Saturday December 27, 2014 @02:40PM
(#8803661)
EDNS0 includes a mechanism for clients/resolvers to signal that they can handle a large/fragmented UDP response. At this point about 85% of requesters can handle UDP responses of at least 4K. For the moment, DNSSEC and EDNS0 are making falling back to TCP far less common than it used to be.
That may change, as some providers are starting to put smaller limits on their response sizes (to mitigate certain kinds of DDOS and response spoofing attacks). Of course permitting TCP 53 is required for DNS to work; as is permitting UDP fragments (which poorly configured firewalls often block too).
Re:Robdns – A fast DNS server based on C10M principles
by justinsb on Saturday December 27, 2014 @01:04PM
(#8803300)
Sure; I'm not suggesting dropping TCP entirely, just that e.g. a 1MB request / response is not going to be legitimate, and so you can simply not implement a lot of TCP's complexity (e.g. window scaling)