百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

czds-api-client-java

> 编程语言
开源

一个用于 CZDS 下载区文件 API 的 Java 参考实现

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个用于 CZDS 下载区文件 API 的 Java 参考实现

CZDS API client in Java

This repository provides a Java example of how to download zone files via CZDS (Centralized Zone Data Service) REST API. A detail API Specs is included in this reposity in the docs directory.

There is also an example provided in Python. It can be found in this repo.

Environment

Language: Java 17

Build Tool: Maven 3.8+

Configurations

You can provide default configurations in application.properties file.

…

Command line Options

Use command line -t to specify the TLDs you want to download zone files for. By default, all APPROVED zone files will be downloaded. You can also use command line options to pass in your account credential and output directory. The command line options have higher precedence than the application.properties file.

usage: ZoneFileDownloader [-a ] [-c ] [-h] [-o ] [-p ] [-t ] [-u ]
 -a,--authen-url    Specify the authentication REST endpoint base URL.
 -c,--czds-url      Specify the CZDS REST endpoint base URL.
 -h,--help               Print usage.
 -d,--directory     Specify the directory where the file(s) will be saved.
 -p,--password      Specify your password
 -t,--tld           Specify the TLD(s) you want to download zone file(s) for. Comma separated multiple TLDs. 
                         By default, all APPROVED zone files will be downloaded.
 -u,--username      Specify your username.

Build

mvn clean install

It produces an executable jar ./target/zonefile-downloader.jar

Run

  • To download all of your APPROVED zone files assume that you have set all the required configurations in application.properties

    • run
    java -jar ./target/zonefile-downloader.jar
  • To download zone files for one or more TLDs (for example, abb, booking), assume that you have set all the required configurations in application.properties

    • run
    java -jar ./target/zonefile-downloader.jar -t abb,booking
  • To pass in all commandline options,

    • run
bash
       java -jar ./target/zonefile-downloader.jar \
       -a https://account-api.icann.org \
       -c https://czds-api.icann.org \
       -t booking \
       -d /where/you/want/to/save/zonefiles \
       -u [email protected] \
       -p 1234567#Abcdefg

Release

The org.icann.czd:czds-client library has been published in Maven Central Repository. You can include the following artifact in your project:


    org.icann.czds
    czds-client
    1.x.x

Documentation

  • CZDS REST API Specs - https://github.com/icann/czds-api-client/blob/master/docs/ICANN_CZDS_api.pdf

Contributing

Contributions are welcome.

Other

Reference Implementation in Python: https://github.com/icann/czds-api-client-python

Java: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Apache Maven 3: https://maven.apache.org/download.cgi

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言