Skip to content

The nslookup and dig commands – how to check a domain's DNS records

The nslookup and dig commands for checking DNS. How to find a domain's IP address, view MX, TXT and NS records, query a specific DNS server, check the reverse PTR record and walk the whole chain of servers with dig +trace. For Linux, macOS and Windows.