A LaTeX package for typesetting DNS records, zone files, propagation status tables, and DNSSEC indicators in technical documents.
- Color-coded record type badges (A, AAAA, CNAME, MX, NS, TXT, SOA, PTR, SRV, CAA)
- Shorthand commands for all common DNS record types
dnszoneenvironment for complete zone file tablesdnspropagationenvironment for multi-server propagation checks- DNSSEC status indicators (valid, invalid, unsigned)
- Configurable: colors, monospace, TTL display, compact mode
\usepackage{dnsrecord}
% Inline records
\dnsA{example.com}{93.184.216.34}[300]
\dnsMX{example.com}{10}{mail.example.com}[3600]
% Zone table
\begin{dnszone}{example.com}
\dnsentry{A}{@}{93.184.216.34}[300]
\dnsentry{CNAME}{www}{example.com}[3600]
\dnsentry{MX}{@}{mail.example.com (pri 10)}[3600]
\end{dnszone}
% Propagation check
\begin{dnspropagation}{example.com}{A}
\dnsserver{Google}{8.8.8.8}{93.184.216.34}{propagated}
\dnsserver{Cloudflare}{1.1.1.1}{93.184.216.34}{propagated}
\end{dnspropagation}booktabs, tabularx, xcolor, xparse, etoolbox, pgfkeys (all in TeX Live / MiKTeX).
LaTeX Project Public License v1.3c or later. See https://www.latex-project.org/lppl.txt
Vahid Shaik — https://dnsrobot.net