↑ ↓ select, Enter open, Esc close

Query a DNS record directly at the authoritative nameserver

Adjust the values, the command updates live
user@server
dig @$(dig +short example.com NS | head -n 1) example.com A +norecurse +short

Finds the first authoritative nameserver of the domain and queries it directly without recursion. The answer is the current state of the zone, regardless of values cached at providers. If it is correct but public resolvers still return the old value, you only need to wait for the TTL to expire.

Also searched as

  • is my dns change live yet
  • query dns without cache
  • check new dns record immediately

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.