diff --git a/README.md b/README.md index ccf9b22..d4d9092 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,6 @@ the need to parse `ub_result.data` yourself. The website for Unbound is https://unbound.net/, were you can find further documentation. -Tested/compiled to work for versions: 1.4.19, 1.4.20, 1.4.21. +Tested/compiled to work for versions: 1.4.22 Note: using cgo means the executables will use shared libraries (for OpenSSL, ldns and libunbound). diff --git a/tutorial6/example.go b/tutorial6/example.go index 47b84f5..bb0ec94 100644 --- a/tutorial6/example.go +++ b/tutorial6/example.go @@ -21,11 +21,11 @@ func main() { log.Fatalf("error %s\n", err.Error()) } - if err := u.AddTaFile("keys"); err != nil { + if err := u.AddTaFile("skydns.keys"); err != nil { log.Fatalf("error %s\n", err.Error()) } - r, err := u.Resolve("nlnetlabs.nl.", dns.TypeA, dns.ClassINET) + r, err := u.Resolve("server2.miek.skydns.dnssex.nl.", dns.TypeA, dns.ClassINET) if err != nil { log.Fatalf("error %s\n", err.Error()) } diff --git a/unbound.go b/unbound.go index f188a21..c032d4d 100644 --- a/unbound.go +++ b/unbound.go @@ -63,7 +63,7 @@ import ( ) type Unbound struct { - ctx *C.struct_ctx + ctx *C.struct_ub_ctx version [3]int }