Enable EDNS and the DO-bit if the netcontext asks

This effectively enables these features only in TLS mode
Test: Integration tests pass
Bug:69623036

Change-Id: I153a259b0c07717f664ee268b43da867a9b42152
diff --git a/libc/dns/resolv/res_init.c b/libc/dns/resolv/res_init.c
index 302a62b..2fb2a3d 100644
--- a/libc/dns/resolv/res_init.c
+++ b/libc/dns/resolv/res_init.c
@@ -774,6 +774,9 @@
 		statp->netid = netcontext->dns_netid;
 		statp->_mark = netcontext->dns_mark;
 		statp->qhook = netcontext->qhook;
+		if (netcontext->flags & NET_CONTEXT_FLAG_USE_EDNS) {
+			statp->options |= RES_USE_EDNS0 | RES_USE_DNSSEC;
+		}
 	}
 }