Validate that a set of resource records are set on all nameservers.
Uses github.com/domainr/dnsr as recursor to avoid external DNS caching.
import "github.com/pior/dnsvalidator"
dnsv := dnsvalidator.New()
ctx := context.Background()
report, err := dnsv.Inspect(ctx, name, type)
expected := []RR{{Name: "...", Type: "CNAME", Value: "..."},}
err = report.Validate(expected)
See example: cmd/test
The MIT License (MIT)