Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5b9ffb27 authored by Mike Yu's avatar Mike Yu
Browse files

Fix using EDNS0 when no private DNS validated

Do not add NET_CONTEXT_FLAG_USE_EDNS to android_net_context flag
if there is no private DNS server validated.

A server not supporting EDNS might respond with FORMERR or ignore
the request. In former case, we will remove OPT RR and retry again.
In later case, we will not retry, so the DNS query might timeout.

Also fix the bug which dns_responder responds to the query even
though it's been set unresponsive.

Bug: 120257033
Test: system/netd/tests/runtests.sh passed
      Checked packets not containging OPT RR when using cleartext DNS
Change-Id: I8250a800ddade0ff810445bc912ea5799b99ec8c
parent c68f1b9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment