Editing
Nslookup
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Nslookup = '''Nslookup''' is a DNS query tool used to retrieve domain information such as IP addresses, mail servers, and DNS record details. It is useful in both troubleshooting and reconnaissance workflows, allowing direct queries to specific DNS servers and record types. Nslookup supports both interactive and single-line modes. == <span id="options"></span>Common Options == === Query Types === {| class="wikitable" ! Option !! Description |- | [[#ex-a|<code>-type=A</code>]] || Query IPv4 address records |- | [[#ex-aaaa|<code>-type=AAAA</code>]] || Query IPv6 address records |- | [[#ex-cname|<code>-type=CNAME</code>]] || Query canonical name records |- | [[#ex-mx|<code>-type=MX</code>]] || Query mail exchange records |- | [[#ex-soa|<code>-type=SOA</code>]] || Query start of authority records |- | [[#ex-txt|<code>-type=TXT</code>]] || Query text records |- | <code>-class=IN</code> || Set the DNS class (default: IN for Internet) |} === Server & Control === {| class="wikitable" ! Option !! Description |- | [[#ex-dnsserver|<code>SERVER</code>]] || Specify which DNS server to query |- | <code>-port=<PORT></code> || Use a custom port for the DNS query |- | <code>-timeout=<SEC></code> || Set the query timeout in seconds |- | <code>-retry=<COUNT></code> || Set the number of retry attempts |} === Output & Debug === {| class="wikitable" ! Option !! Description |- | [[#ex-debug|<code>-debug</code>]] || Show detailed query information |- | <code>-sil</code> || Run in silent mode without prompts or banners |} == Examples == === <span id="ex-a"></span>Query A Record === <syntaxhighlight lang="bash"> nslookup -type=A example.com </syntaxhighlight> === <span id="ex-aaaa"></span>Query AAAA Record === <syntaxhighlight lang="bash"> nslookup -type=AAAA example.com </syntaxhighlight> === <span id="ex-cname"></span>Query CNAME Record === <syntaxhighlight lang="bash"> nslookup -type=CNAME www.example.com </syntaxhighlight> === <span id="ex-mx"></span>Query MX Record === <syntaxhighlight lang="bash"> nslookup -type=MX example.com </syntaxhighlight> === <span id="ex-soa"></span>Query SOA Record === <syntaxhighlight lang="bash"> nslookup -type=SOA example.com </syntaxhighlight> === <span id="ex-txt"></span>Query TXT Record === <syntaxhighlight lang="bash"> nslookup -type=TXT example.com </syntaxhighlight> === <span id="ex-dnsserver"></span>Use Specific DNS Server === <syntaxhighlight lang="bash"> nslookup example.com 1.1.1.1 </syntaxhighlight> === <span id="ex-debug"></span>Enable Debug Mode === <syntaxhighlight lang="bash"> nslookup -debug example.com </syntaxhighlight> == See Also == * [[dig]] * [[host]] * [[whois]] * [[dnsenum]] * [[Nmap]]
Summary:
Please note that all contributions to HackOps may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
HackOps:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Tools
What links here
Related changes
Special pages
Page information