ChinaDNS
ChinaDNS copied to clipboard
fix bug: message too long
the global buffer used to receive and send message is set to 512 bytes, which is too small. This will cause 'Message too long' error, which will cause the many outside world dns query fail.
I test on macos, the longest message I see is large than 1024. I change the buffer size to 2048 and it works well.