pforemski / dingo

A DNS client in Go that supports Google DNS over HTTPS
761 stars 66 forks source link

support other than Google Public DNS servers #8

Closed pforemski closed 8 years ago

pforemski commented 8 years ago

This is in progress: allow modules to implement clients for other servers & APIs (e.g. OpenDNS would be nice).

pforemski commented 8 years ago

Idea: provide one common HTTP client + JSON parsing function, using alternative JSON parser: https://github.com/buger/jsonparser

Implementation of particular DNS-over-HTTPS provider would input a full HTTP request (URL + headers + cookies?), and get parsed, unstructured JSON as the output. Then, it would need to rewrite into the Request struct.

pforemski commented 8 years ago

Preliminary implementation in https://github.com/pforemski/dingo/commit/c23c3addbd5651f20bd0391471b0e165d623f9ed