Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pior/dnsvalidator
Validate that a set of resource records are set on all nameservers
https://github.com/pior/dnsvalidator
checker dns validation
Last synced: 2 days ago
JSON representation
Validate that a set of resource records are set on all nameservers
- Host: GitHub
- URL: https://github.com/pior/dnsvalidator
- Owner: pior
- License: mit
- Created: 2019-07-13T23:45:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T23:48:57.000Z (over 5 years ago)
- Last Synced: 2024-12-04T18:41:22.480Z (about 2 months ago)
- Topics: checker, dns, validation
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DNS Validator
[![GoDoc](https://godoc.org/github.com/pior/dnsvalidator?status.svg)](https://godoc.org/github.com/pior/dnsvalidator)
Validate that a set of resource records are set on all nameservers.
Uses [github.com/domainr/dnsr](https://github.com/domainr/dnsr) as recursor to avoid external DNS caching.
## Usage:
```go
import "github.com/pior/dnsvalidator"
``````go
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](cmd/test/main.go)
## License
The MIT License (MIT)