Look up DNS records for a domain
Read-only
What do risk levels mean?
- Read-only
- Inspects state without changing anything.
- Low risk
- Reversible with a routine follow-up command.
- Medium risk
- Changes state; undo path documented.
- Destructive
- Deletes or overwrites; confirmation required.
Queries DNS for a specific record type on a domain, useful for verifying DNS configuration, mail setup, and domain ownership records.
networkdnsdomainrecords
Parameters
Domain name to query.
DNS record type to look up.
Commands
Query the configured resolver for the requested record type
dig +short <domain> AVerification
nslookup -type=A <domain>The records are listed, or an empty answer / NXDOMAIN when the record does not exist.
Undo
Not undoable
This recipe only queries DNS and changes nothing.
Pitfalls
- Answers come from the configured resolver's cache; query the domain's authoritative nameserver (dig @ns1.example.com) to bypass stale cached values.
- An empty dig +short answer can mean either no record of that type or a delegation issue; rerun without +short to see the full response status.