neo-node icon indicating copy to clipboard operation
neo-node copied to clipboard

Add DNS oracle protocol

Open Jim8y opened this issue 3 months ago • 5 comments

Summary

  • add DNS-over-HTTPS oracle protocol and config wiring
  • document dns:// usage and add tests for certificate parsing

Testing

  • not run (not requested)

Jim8y avatar Nov 17 '25 03:11 Jim8y

I think that it's better to define the dns server, and make a dns query, instead of http query

We need DNS over HTTPS.

erikzhang avatar Nov 17 '25 09:11 erikzhang

I think that it's better to define the dns server, and make a dns query, instead of http query

We need DNS over HTTPS.

Then it's DoH no Dns, we should rename the oracle protocol

shargon avatar Nov 17 '25 12:11 shargon

I think that it's better to define the dns server, and make a dns query, instead of http query

DoH is very commom see https://www.rfc-editor.org/rfc/rfc8484.html

Can we follow rfc8484?

cschuchardt88 avatar Nov 22 '25 04:11 cschuchardt88

  • ✅ application/dns-json → application/dns-message (RFC 8484)
  • ✅ HTTP GET → HTTP POST
  • ✅ JSON parsing → DNS wire format (RFC 1035)
  • ✅ Support user-specified authority (dns://resolver/domain)
  • ✅ Fix CryptographicException handling in BuildPublicKey
  • ✅ Move Accept header to constructor
  • ✅ Integration tests covering Cloudflare, Google, Quad9

Jim8y avatar Dec 03 '25 03:12 Jim8y

@Jim8y, I found some issues during the way when trying to test it. But, as I could see, it is at least running with success and understanding the basic conditions for the Oracle Service.

But I needed to fix some parsing errors due to docker versions on my tools. The compiler had stop working.

Meanwhile, can you provide here examples of what to expect from the oracle calls in this PR, @Jim8y ?

I see that we could now do posting, is that correct? So, let's create an example of a smart contract for that that parses an object to it. I will do this during this week. If you already can provide it I will save some time.

vncoelho avatar Dec 03 '25 14:12 vncoelho

UT Failed.

Wi1l-B0t avatar Dec 17 '25 12:12 Wi1l-B0t