You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/miekg/dns"
|
|
)
|
|
|
|
func TestCFDns(t *testing.T) {
|
|
cf := &CloudflareHTTPDns{}
|
|
m := new(dns.Msg)
|
|
m.SetQuestion("www.google.com.", dns.TypeA)
|
|
m1, _, err := cf.Exchange(m, "1.1.1.1")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
fmt.Println(m1.String())
|
|
}
|