Software & Apps

Znscli / zns: cli tool for DNS records with readable, colored output.

ZNN is a Utility-Line-line Utility for DNS records, which shows it in a readable, colored format that includes type, name, TTL, and value.

  • Supports different types of DNS recordings
  • Robbed and tabular output for easy reading
  • Interview questions for improved performance
  • JSON output format for engine-read results
  • The option of writing output in a file
  • Option of asking a specific DNS server
brew install znscli/tap/zns
$ zns example.com
A      example.com.   36m22s      93.184.215.14
NS     example.com.   22h27m45s   a.iana-servers.net.
NS     example.com.   22h27m45s   b.iana-servers.net.
SOA    example.com.   01h00m00s   ns.icann.org. noc.dns.icann.org.
MX     example.com.   22h00m56s   0 .
TXT    example.com.   24h00m00s   v=spf1 -all
TXT    example.com.   24h00m00s   wgyf8z8cgvm2qmxpnbnldrcltvk4xqfn
AAAA   example.com.   17m11s      2606:2800:21f:cb07:6820:80da:af6b:8b2c

Ask a specific type of record

$ zns example.com -q NS
NS   example.com.   21h13m27s   a.iana-servers.net.
NS   example.com.   21h13m27s   b.iana-servers.net.

Use a specific DNS server

$ zns example.com -q NS --server 1.1.1.1
NS   example.com.   23h11m50s   a.iana-servers.net.
NS   example.com.   23h11m50s   b.iana-servers.net
$ zns example.com --json -q A | jq
{
  "@domain": "example.com",
  "@level": "info",
  "@message": "Successful query",
  "@record": "93.184.215.14",
  "@timestamp": "2024-12-17T01:04:06.104173+01:00",
  "@ttl": "33m10s",
  "@type": "A",
  "@version": "dev",
  "@view": "json"
}
...
export ZNS_LOG_FILE=/tmp/zns.log
$ zns example.com

Contributions are highly appreciated and often accepted. Have a look already existing ISSUES and Request Requests that you can help.

This project is licensed under MIT license. You are free to use, again, and distribute the software, provided that you include the original license of any software copies. Look at the can file for more details.


https://opengraph.githubassets.com/20347551cf8e7c166e0cef0728de79f0f9c65271ac112b427b5cc22c01b039a9/znscli/zns

2025-02-22 19:07:00

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button