doq-go

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2023 License: MIT

README

doq-go

DoQ client library written in Golang, it is built on top quic-go and dns libraries.

Usage in your project

add dependency

go get github.com/tantalor93/doq-go

Examples

// create new DoQ Client
client, err := doq.NewClient("dns.adguard-dns.com:853", doq.Options{})
if err != nil {
    panic(err)
}

// create new query
q := dns.Msg{}
q.SetQuestion("www.google.com.", dns.TypeA)

// send query
var resp *dns.Msg
resp, err = client.Send(context.Background(), &q)
fmt.Println(resp ,err)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL