From b4ec7306d64ca113c83db5c9dd80a497a16567d2 Mon Sep 17 00:00:00 2001 From: Yusuf Yaman Date: Wed, 26 Feb 2025 22:54:28 +0300 Subject: [PATCH] dns/zns: New port: CLI tool for querying DNS records with readable and colored output zns is a command-line utility for querying DNS records, displaying them in a human-readable, colored format that includes type, name, TTL, and value. WWW: https://github.com/znscli/zns PR: 285058 --- dns/Makefile | 1 + dns/zns/Makefile | 26 ++++++++++++++++++++++++++ dns/zns/distinfo | 5 +++++ dns/zns/pkg-descr | 12 ++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 dns/zns/Makefile create mode 100644 dns/zns/distinfo create mode 100644 dns/zns/pkg-descr diff --git a/dns/Makefile b/dns/Makefile index b65cc1607f1f..d0648ee4001e 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -242,6 +242,7 @@ SUBDIR += yandex-ddns SUBDIR += zdns SUBDIR += zkt + SUBDIR += zns SUBDIR += zonenotify .include diff --git a/dns/zns/Makefile b/dns/zns/Makefile new file mode 100644 index 000000000000..d1d2092f2b56 --- /dev/null +++ b/dns/zns/Makefile @@ -0,0 +1,26 @@ +PORTNAME= zns +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.0 +CATEGORIES= dns + +MAINTAINER= nxjoseph@protonmail.com +COMMENT= CLI tool for querying DNS records with readable and colored output +WWW= https://github.com/znscli/zns + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules + +GO_MODULE= github.com/znscli/zns + +PLIST_FILES= bin/${PORTNAME} + +OPTIONS_DEFINE= JSON +OPTIONS_DEFAULT= JSON + +JSON_DESC= Enable JSON output processing support + +JSON_RUN_DEPENDS= jq:textproc/jq + +.include diff --git a/dns/zns/distinfo b/dns/zns/distinfo new file mode 100644 index 000000000000..0f75709e3028 --- /dev/null +++ b/dns/zns/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1740834061 +SHA256 (go/dns_zns/zns-v0.3.0/v0.3.0.mod) = 4cfbeecff7cd6f56e250005443c539a68e15ab7d43823517f8a061dc6bc5089c +SIZE (go/dns_zns/zns-v0.3.0/v0.3.0.mod) = 884 +SHA256 (go/dns_zns/zns-v0.3.0/v0.3.0.zip) = 143a1dbab6df751618a17e81286cc5e1a7761338883e6ef27a8d60f00942bb90 +SIZE (go/dns_zns/zns-v0.3.0/v0.3.0.zip) = 23695 diff --git a/dns/zns/pkg-descr b/dns/zns/pkg-descr new file mode 100644 index 000000000000..d451c3208191 --- /dev/null +++ b/dns/zns/pkg-descr @@ -0,0 +1,12 @@ +zns is a command-line utility for querying DNS records, +displaying them in a human-readable, colored format +that includes type, name, TTL, and value. + +Features: + +- Supports various DNS record types +- Colorized and tabular output for easy reading +- Concurrent queries for improved performance +- JSON output format for machine-readable results +- Option to write output to a file +- Option to query a specific DNS server