Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Network Troubleshooting / IT Support Guides

Query a DNS record explicitly with dig

A resolver problem is easier to explain when the query type, answer and response status are visible together. Use a targeted lookup instead of changing system DNS settings.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Mixed platforms · each example identifies its shell or required tool

Try the diagnostic command

Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.

dig example.com A
dig example.com MX

How to read the result

On systems with BIND DNS tools, the output includes the responding server, response status and record sections. NXDOMAIN differs from a timeout or a successful empty response.

What to do next

Query the exact application hostname using the approved resolver and compare the record type with what the application requires. Preserve status and TTL when escalating.

Before you make a change

dig may need an approved package installation. Avoid exposing private names to unrelated external resolvers.

Share this article

Back to results