Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t94j0/go-czds
ICANN CZDS zone file API
https://github.com/t94j0/go-czds
api-client czds dns golang icann zone-files
Last synced: about 2 months ago
JSON representation
ICANN CZDS zone file API
- Host: GitHub
- URL: https://github.com/t94j0/go-czds
- Owner: t94j0
- Created: 2019-10-14T23:52:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-15T00:17:18.000Z (about 5 years ago)
- Last Synced: 2024-03-19T11:04:22.609Z (9 months ago)
- Topics: api-client, czds, dns, golang, icann, zone-files
- Language: Go
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go CZDS API
[![GoDoc](https://godoc.org/github.com/t94j0/go-czds?status.svg)](https://godoc.org/github.com/t94j0/go-czds)
Makes life easy Go developers who work with CZDS. I made this for a long-term research project I'm working on, so it'll likely be supported for a good bit.
## Example
Simple way to get all zone files available.
```go
func main() {
// Create CZDS object with username and password
icann := czds.New("example", "password")
// Get access token
icann.RefreshAccessToken()// Get all available zones reachable by user
zl, _ := icann.ZoneList()
dir, _ := ioutil.TempDir("", "example")
fmt.Println("Output to:", dir)// Download all zones into `dir` with the name .zone
icann.DownloadZoneReaders(zl, dir, "%s.zone")
}
```