The nslookup
command is mainly used to query the DNS
information of a domain name. It has two working modes: interactive mode and non-interactive mode. Enter nslookup
directly to enter the interactive mode, and the prompt is >
.
Syntax format: nslookup [parameter] [domain name]
Common parameters:
Example
# 非交互模式下查询nslookup baidu.com
# 交互模式下查询nslookup # set type=a 查询A记录,exit 可退出交互模式
This article is reprinted from https://xugaoxiang.com/2022/09/27/linux-cmds-107-nslookup/
This site is for inclusion only, and the copyright belongs to the original author.