Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

nslookup

Query DNS records

Syntax

nslookup [OPTION]... HOSTNAME [SERVER]

Common Options

-type=Specify record type
-query=Specify query type
-debugDebug mode

Common Examples

nslookup google.com

Query domain IP

nslookup google.com 8.8.8.8

Use specific DNS server

nslookup -type=MX google.com

Query MX records

nslookup -type=NS google.com

Query NS records

nslookup -type=TXT google.com

Query TXT records

Related Commands

Related Tools

More Code & Dev Tools