This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * NJS script to implement a DNS‑over‑HTTPS (DoH) reverse proxy with | |
| * special handling for Ethereum (.eth) and Solana (.sol) domains. | |
| * | |
| * When a request hits `/dns‑query` the `handle()` function determines | |
| * the queried name and record type. Standard RFC 8484 GET requests | |
| * include a `?dns=` parameter containing a Base64Url encoded DNS | |
| * message, while the JSON API uses `?name=` and `?type=` parameters | |
| * for textual queries. POST requests carry a raw DNS message with | |
| * `Content‑Type: application/dns‑message`【742873960042857†L96-L108】. The |
OlderNewer