GoLang SDK
Official ActiveDNS Go package.
Project home is at GitHub
package main
import (
"context"
"fmt"
"log"
"github.com/activedns/activedns-go"
)
func main() {
// Tell me what tool you are making, change mytool/1.0
client, err := activedns.NewClient("mytool/1.0")
if err != nil {
log.Fatal(err)
}
ctx := context.Background()
page, err := client.Query(ctx, "*.example.com")
if err != nil {
log.Fatal(err)
}
for _, record := range page.Records {
fmt.Println(record.Domain, record.IPAddress, record.Observed)
}
}
Please use a proper tool name, such as mytool/1.0, when querying ActiveDNS. This allow me to optimize the API,
rate limiting and database to accommodate your request.
