mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
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.
This commit is contained in:
parent
00be9b33b1
commit
a9ec2225a5
6 changed files with 48 additions and 11 deletions
|
@ -44,6 +44,10 @@ Optional<DNSResponse> DNSResponse::from_raw_response(const u8* raw_data, size_t
|
|||
|
||||
DNSResponse response;
|
||||
response.m_id = response_header.id();
|
||||
response.m_code = response_header.response_code();
|
||||
|
||||
if (response.code() != DNSResponse::Code::NOERROR)
|
||||
return response;
|
||||
|
||||
size_t offset = sizeof(DNSPacket);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue