On Fri, Sep 13, 2019 at 02:48:22PM +0100, Stuart Henderson wrote: > --- > doh is a simple tool that uses libcurl to resolve a host name > using a POST request to a DNS-over-HTTPS (DoH) server. > --- > > ok to import? (the syntax is friendlier than sdig for simple tests) >
buids and works fine here: openbsd-dev$ doh trusted.com.br trusted.com.br from https://dns.cloudflare.com/dns-query TTL: 3064 seconds A: 45.76.92.19 Noticed a bug though, seems argc is not well-handled: openbsd-dev$ doh -t Segmentation fault (core dumped) Also, Would be useful installing the README as pkg-readme. <snip: README> If DOH URL is left out, the Cloudflare DOH server will be used. See also [list of public servers](https://github.com/curl/curl/wiki/DNS-over-HTTPS#publicly-available-servers) </snip> :-)
