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
This commit is contained in:
Yusuf Yaman 2025-02-26 22:54:28 +03:00 committed by Koichiro Iwao
parent e8b5d0d153
commit b4ec7306d6
4 changed files with 44 additions and 0 deletions

View file

@ -242,6 +242,7 @@
SUBDIR += yandex-ddns
SUBDIR += zdns
SUBDIR += zkt
SUBDIR += zns
SUBDIR += zonenotify
.include <bsd.port.subdir.mk>

26
dns/zns/Makefile Normal file
View file

@ -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>

5
dns/zns/distinfo Normal file
View file

@ -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

12
dns/zns/pkg-descr Normal file
View file

@ -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