Andreas Kling
537a1d31c5
LookupServer: Add missing copyright headers
2020-01-26 13:53:36 +01:00
Andreas Kling
a9ec2225a5
LookupServer: Retry with 0x20 randomization turned off on EREFUSED
...
Apparently some authoritative servers don't handle 0x20 randomization
well and may send EREFUSED. Retry with randomization turned off then.
Reference: https://github.com/dns-violations/dns-violations/blob/master/2017/DVE-2017-0006.md
More work towards #10 .
2020-01-26 13:49:46 +01:00
Andreas Kling
b4d55b16b6
LookupServer: Randomize the 0x20 bit in DNS request ASCII characters
...
This adds a bit of extra entropy to DNS requests, making it harder to
spoof a valid response.
Suggested by @zecke in #10 .
2020-01-26 13:07:21 +01:00
Andreas Kling
02be23cf81
LookupServer: Randomize DNS request ID's
...
Suggested by @zecke in #10 .
2020-01-26 12:38:49 +01:00
Andreas Kling
871b6b4e1a
LookupServer: Minor overhaul
...
- Break out request building into a DNSRequest class.
- Break out response parsing into a DNSResponse class.
A DNSRequest contains one or more DNSQuestion objects.
A DNSResponse contains all the DNSQuestions asked, and a DNSAnswer
object for each answer.
2020-01-26 12:37:08 +01:00