Note
|
All the commands below are for the Interactive mode. |
Command |
Description |
nslookup |
Enter the interactive mode. The nslookup prompt |
set all |
Show current settings for the session, useful to show what the |
set ty=Record-type-to-query-for |
Sets the record |
domain |
Query the domain domain for the value of the record type set previously via |
server [IP-address-of-alternative-DNS-server] |
Run by itself, > server 8.8.8.8 Default server: 8.8.8.8 Address: 8.8.8.8#53 |
set debug/nodebug |
Enable verbose output of what the |
IDN_DISABLE |
Environment variable, if not set (default) enables querying IDN names, e.g.: > set ty=A > рег.рф Server: 8.8.8.8 Address: 8.8.8.8#53 ------------ QUESTIONS: рег.рф, type = A, class = IN ANSWERS: -> рег.рф internet address = 194.58.116.37 ttl = 21600 AUTHORITY RECORDS: ADDITIONAL RECORDS: ------------ Non-authoritative answer: Name: рег.рф Address: 194.58.116.37 |
set port=N |
Set port different from 53 on the remote DNS server. NOTE: |
exit |
Leave |
WINDOWS only: ls -d domain-name |
Try to do AXFR zone transfer from the configured DNS server. If works and unintended - serious security risk. Linux version of nslookup does NOT have this option. E.g. |