Install the complete package with local command reference and every published mode.
install dnsdnsUse
A and AAAA map names to addresses, MX describes mail routing, TXT often carries verification or policy data, NS shows delegation, CAA limits certificate authorities and PTR maps an address back to a name. An empty answer for one type does not mean the domain itself is missing.
dns <host|ip|me> [types] [-c]dns meuse the current host
dns example.comshow common records
dns example.com -mxshow only MX records
dns example.com -txtshow only TXT records
dns example.com <types>show selected record types
dns 1.2.3.4show a reverse PTR lookup
dns example.com -ccheck which selected record types exist
-a | -aaaaselect A or AAAA address records
-cnameselect CNAME alias records
-mxselect MX mail-exchanger records
-nsselect NS name-server records
-txtselect TXT text records
-soaselect the SOA authority record
-srvselect SRV service records
-caaselect CAA certificate-authority records
-ptrselect PTR reverse records
-allselect all supported types; the default common set omits SRV and PTR
Start with
example.test zone and prepared replies, not live
The default set is A, AAAA, CNAME, MX, NS, TXT, SOA and CAA. -all is intentionally not redundant: it additionally requests SRV and PTR, which are often absent and can make a broad query noisier. Multi-part record values use a visible “ · ” separator so priority, target and TTL remain easy to scan.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install dnsInstall the reduced package. Local reference is omitted;
install dns -mInstall exactly this published version.
install dns -v 1.2.4Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade dnsRemove the extension block while leaving the core and unrelated modules intact.
install dns -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
dns example.testOffline educational example — not a live lookup
A 192.0.2.80 · TTL 3600
AAAA 2001:db8::80 · TTL 3600
MX 10 · mail.example.test · TTL 3600
NS ns1.example.test · TTL 3600
TXT v=spf1 -all · TTL 3600
SOA ns1.example.test · admin.example.test · 2026110101 · 7200 · 3600 · 1209600 · 3600 · TTL 3600
CAA 0 · issue · letsencrypt.org · TTL 3600dns meOffline educational example — not a live lookup
A 192.0.2.80 · TTL 3600
AAAA 2001:db8::80 · TTL 3600
MX 10 · mail.example.test · TTL 3600
NS ns1.example.test · TTL 3600
TXT v=spf1 -all · TTL 3600
SOA ns1.example.test · admin.example.test · 2026110101 · 7200 · 3600 · 1209600 · 3600 · TTL 3600
CAA 0 · issue · letsencrypt.org · TTL 3600dns example.test -aOffline educational example — not a live lookup
A 192.0.2.80 · TTL 3600dns example.test -aaaaOffline educational example — not a live lookup
AAAA 2001:db8::80 · TTL 3600dns alias.example.test -cnameOffline educational example — not a live lookup
CNAME site.example.test · TTL 3600dns example.test -mxOffline educational example — not a live lookup
MX 10 · mail.example.test · TTL 3600dns example.test -nsOffline educational example — not a live lookup
NS ns1.example.test · TTL 3600dns example.test -txtOffline educational example — not a live lookup
TXT v=spf1 -all · TTL 3600dns example.test -soaOffline educational example — not a live lookup
SOA ns1.example.test · admin.example.test · 2026110101 · 7200 · 3600 · 1209600 · 3600 · TTL 3600dns _sip._tcp.example.test -srvOffline educational example — not a live lookup
SRV 10 · 5 · 5060 · sip.example.test · TTL 3600dns example.test -caaOffline educational example — not a live lookup
CAA 0 · issue · letsencrypt.org · TTL 3600dns 192.0.2.44Offline educational example — not a live lookup
PTR host.example.testdns example.test -ptrOffline educational example — not a live lookup
DNS records not founddns example.test -allOffline educational example — not a live lookup
A 192.0.2.80 · TTL 3600
AAAA 2001:db8::80 · TTL 3600
MX 10 · mail.example.test · TTL 3600
NS ns1.example.test · TTL 3600
TXT v=spf1 -all · TTL 3600
SOA ns1.example.test · admin.example.test · 2026110101 · 7200 · 3600 · 1209600 · 3600 · TTL 3600
CAA 0 · issue · letsencrypt.org · TTL 3600dns example.test -a -aaaa -mxOffline educational example — not a live lookup
A 192.0.2.80 · TTL 3600
AAAA 2001:db8::80 · TTL 3600
MX 10 · mail.example.test · TTL 3600dns example.test -mx -cOffline educational example — not a live lookup
Status yes
Types MXdns example.test -srv -cOffline educational example — not a live lookup
Status no
Types -dns example.test -a -cOffline educational example — not a live lookup
Status yes
Types Adns example.test -all -cOffline educational example — not a live lookup
Status yes
Types A, AAAA, MX, NS, TXT, SOA, CAAdns example.test -bogusOffline educational example — not a live lookup
?dnsOffline educational example — not a live lookup
?dns http://example.test/path -aOffline educational example — not a live lookup
A 192.0.2.80 · TTL 3600dns 192.0.2.44 -a -cOffline educational example — not a live lookup
Status yes
Types PTRFinalizes Local and Server Help synchronization and localization safety for