Skip to content
Browse files

Compile fix for either new go or new unbound

  • Loading branch information...
1 parent 548db5f commit 01f99a3df63706031ed81c8454be6f6b700db392 @miekg committed
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +2 −2 tutorial6/example.go
  3. +1 −1 unbound.go
View
2 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).
View
4 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())
}
View
2 unbound.go
@@ -63,7 +63,7 @@ import (
)
type Unbound struct {
- ctx *C.struct_ctx
+ ctx *C.struct_ub_ctx
version [3]int
}

0 comments on commit 01f99a3

Please sign in to comment.
Something went wrong with that request. Please try again.