• Stars
    star
    367
  • Rank 116,257 (Top 3 %)
  • Language
    C
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

stand-alone application for DoH (DNS-over-HTTPS) name resolves and lookups

doh

Build Status

A libcurl-using application that resolves a host name using DNS-over-HTTPS (DoH).

This code uses POST requests unconditionally for this.

Install

make
sudo make install

Usage

doh [options] host [DoH URL]

If DoH URL is left out, the Cloudflare DoH server will be used. See also list of public servers

Examples

$ doh www.example.com
www.example.com from https://dns.cloudflare.com/dns-query
TTL: 2612 seconds
A: 93.184.216.34
AAAA: 2606:2800:0220:0001:0248:1893:25c8:1946

$ doh www.yahoo.com https://dns.google/dns-query
www.yahoo.com from https://dns.google/dns-query
TTL: 36 seconds
A: 87.248.98.8
A: 87.248.98.7
AAAA: 2a00:1288:0110:001c:0000:0000:0000:0004
AAAA: 2a00:1288:0110:001c:0000:0000:0000:0003
CNAME: atsv2-fp.wg1.b.yahoo.com
CNAME: atsv2-fp.wg1.b.yahoo.com

More Repositories

1

curl

A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features
C
31,356
star
2

trurl

trurl is a command line tool for URL parsing and manipulation.
C
3,084
star
3

everything-curl

The book documenting the curl project, the curl tool, libcurl and more. Simply put: everything curl.
Perl
2,043
star
4

curl-for-win

Reproducible curl binaries for Linux, macOS and Windows
Shell
684
star
5

curl-cheat-sheet

A single page document with the most important curl options for HTTP explained
353
star
6

h2c

headers 2 curl. Provided a set of HTTP request headers, output the curl command line for generating that set. Try the converter online at
Perl
258
star
7

wcurl

a simple wrapper around curl to easily download files
Shell
245
star
8

curl-docker

official docker image for curl
Makefile
167
star
9

curl-www

The curl.se website
HTML
100
star
10

curl-fuzzer

Quality assurance testing for the curl project
C++
82
star
11

curl-container

curl images
Shell
60
star
12

stats

Scripts for generating project statistics and for plotting them as graphs.
Perl
59
star
13

curl-up

All things related to the curl up conference series
41
star
14

fcurl

fcurl - fopen, fread, fwrite style functions for URL operations using libcurl
C
35
star
15

relative

Tools to measure libcurl performance delta between versions
C
16
star
16

build-images

repository for curl build images
Shell
11
star
17

curl.dev

The curl.dev website
HTML
10
star