| 1 |
# dnsrecord — Typeset DNS Records in LaTeX |
| 2 |
|
| 3 |
A LaTeX package for typesetting DNS records, zone files, propagation status |
| 4 |
tables, and DNSSEC indicators in technical documents. |
| 5 |
|
| 6 |
## Features |
| 7 |
|
| 8 |
- Color-coded record type badges (A, AAAA, CNAME, MX, NS, TXT, SOA, PTR, SRV, CAA) |
| 9 |
- Shorthand commands for all common DNS record types |
| 10 |
- `dnszone` environment for complete zone file tables |
| 11 |
- `dnspropagation` environment for multi-server propagation checks |
| 12 |
- DNSSEC status indicators (valid, invalid, unsigned) |
| 13 |
- Configurable: colors, monospace, TTL display, compact mode |
| 14 |
|
| 15 |
## Quick Start |
| 16 |
|
| 17 |
```latex |
| 18 |
\usepackage{dnsrecord} |
| 19 |
|
| 20 |
% Inline records |
| 21 |
\dnsA{example.com}{93.184.216.34}[300] |
| 22 |
\dnsMX{example.com}{10}{mail.example.com}[3600] |
| 23 |
|
| 24 |
% Zone table |
| 25 |
\begin{dnszone}{example.com} |
| 26 |
\dnsentry{A}{@}{93.184.216.34}[300] |
| 27 |
\dnsentry{CNAME}{www}{example.com}[3600] |
| 28 |
\dnsentry{MX}{@}{mail.example.com (pri 10)}[3600] |
| 29 |
\end{dnszone} |
| 30 |
|
| 31 |
% Propagation check |
| 32 |
\begin{dnspropagation}{example.com}{A} |
| 33 |
\dnsserver{Google}{8.8.8.8}{93.184.216.34}{propagated} |
| 34 |
\dnsserver{Cloudflare}{1.1.1.1}{93.184.216.34}{propagated} |
| 35 |
\end{dnspropagation} |
| 36 |
``` |
| 37 |
|
| 38 |
## Dependencies |
| 39 |
|
| 40 |
booktabs, tabularx, xcolor, xparse, etoolbox, pgfkeys (all in TeX Live / MiKTeX). |
| 41 |
|
| 42 |
## License |
| 43 |
|
| 44 |
LaTeX Project Public License v1.3c or later. |
| 45 |
See https://www.latex-project.org/lppl.txt |
| 46 |
|
| 47 |
## Author |
| 48 |
|
| 49 |
Vahid Shaik — https://dnsrobot.net |
| 50 |
|
| 51 |
## Bug Reports |
| 52 |
|
| 53 |
https://github.com/dnsrobot/latex-dnsrecord |