↑ ↓ select, Enter open, Esc close

DNS

Query and understand DNS records: A, AAAA, MX, TXT, CNAME, SPF, DKIM and DMARC. Plus checking propagation and finding errors during migrations.

16 one-liners: 16 harmless, 0 caution, 0 destructive

All DNS one-liners

Check a domain's DKIM key in DNS

$dig +short default._domainkey.example.com TXT
harmless

Check DNS propagation across public resolvers

$for ns in 1.1.1.1 8.8.8.8 9.9.9.9 208.67.222.222; do echo "$ns: $(dig +short @$ns example.com A | tr '\n' ' ')"; done
harmless

Check if a server IP is on the Spamhaus blacklist

$dig +short $(echo 203.0.113.10 | awk -F. '{print $4"."$3"."$2"."$1}').zen.spamhaus.org
harmless

Check the CAA record of a domain

$dig +short example.com CAA
harmless

Check whether DNSSEC works for a domain

$dig @1.1.1.1 +dnssec example.com SOA | grep -E "flags:|RRSIG|status:"
harmless

Compare the SOA serial on all nameservers

$for ns in $(dig +short example.com NS); do echo "$ns $(dig +short @$ns example.com SOA | awk '{print $3}')"; done
harmless

Server is clean. Is the site?

How fast does the website really load?

GENLOC.SEO measures PageSpeed and Core Web Vitals on mobile and desktop and tells you clearly what to fix first. Free, no time limit.

by GENLOC.NETWORK, the team behind myline.de

Look up the MX records of a domain

$dig +short example.com MX
harmless

Look up the reverse DNS (PTR) of an IP address

$dig +short -x 203.0.113.10
harmless

Query a DNS record directly at the authoritative nameserver

$dig @$(dig +short example.com NS | head -n 1) example.com A +norecurse +short
harmless

Query any DNS record with its TTL

$dig example.com A +noall +answer
harmless

Show a domain's DNS zone in Plesk

#plesk bin dns --info example.com
harmless

Show the authoritative nameservers of a domain

$dig +short example.com NS
harmless

Show the DMARC policy of a domain

$dig +short _dmarc.example.com TXT
harmless

Show the SPF record of a domain

$dig +short example.com TXT | grep -i "v=spf1"
harmless

Trace DNS delegation from the root zone

$dig +trace example.com
harmless

Verify reverse DNS of a mail server IP (FCrDNS)

$ptr=$(dig +short -x 203.0.113.10 | head -n 1); echo "PTR: $ptr"; dig +short "$ptr" A
harmless

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.