nslookup
Query name servers for various domain records. See also:
dig,resolvectl,host. More information: https://manned.org/nslookup.
- Query your system's default name server for an IP address (A record) of the domain:
nslookup
- Query a given name server for an NS record of the domain:
nslookup -type=NS
- Query for a reverse lookup (PTR record) of an IP address:
nslookup -type=PTR
- Query for ANY available records using TCP protocol:
nslookup -vc -type=ANY
- Query a given name server for the whole zone file (zone transfer) of the domain using TCP protocol:
nslookup -vc -type=AXFR
- Query for a mail server (MX record) of the domain, showing details of the transaction:
nslookup -type=MX -debug
- Query a given name server on a specific port number for a TXT record of the domain:
nslookup -port= -type=TXT
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
