Skip to content

t94j0/go-czds

Repository files navigation

Go CZDS API

GoDoc

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.

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 <tld>.zone
  icann.DownloadZoneReaders(zl, dir, "%s.zone")
}

Releases

No releases published

Packages

No packages published

Languages