git: b4ec7306d64c - main - dns/zns: New port: CLI tool for querying DNS records with readable and colored output

From: Koichiro Iwao <meta_at_FreeBSD.org>
Date: Sat, 01 Mar 2025 14:21:12 UTC
The branch main has been updated by meta:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b4ec7306d64ca113c83db5c9dd80a497a16567d2

commit b4ec7306d64ca113c83db5c9dd80a497a16567d2
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2025-02-26 19:54:28 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2025-03-01 14:07:43 +0000

    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(+)

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 <bsd.port.subdir.mk>
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 <bsd.port.mk>
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