↑ ↓ select, Enter open, Esc close

Query any DNS record with its TTL

Adjust the values, the command updates live
user@server
dig example.com A +noall +answer

Prints only the answer section of the DNS query: name, TTL in seconds, type and value. Supported types include A, AAAA, CNAME, TXT, SRV and NS. The TTL shows how long a resolver will keep caching the answer before asking again.

Note: On Debian, dig is in the bind9-dnsutils package (Ubuntu: dnsutils).

Also searched as

  • check a record of a domain
  • which ip does my domain point to
  • how long is a dns record cached

Related one-liners

All in DNS

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.