在DOS中输入NSLOOKUP的结果是?

来源:百度知道 编辑:UC知道 时间:2024/05/05 00:15:49
结果是:Default Server: ns1.hazzptt.net.cn
Address: 202.102.224.68
当输入EXIT时,结果是ns1.hazzptt.net.cn can't find EXIT:Non-existent domain
退不出DOS是怎么回事?

有些时候, user 可能会想要手动查询 DNS 上一些资料, 或者是要看看 DNS 是否有问题, 此时我们最常用的工具就是 nslookup 了, 基本上 nslookup 会根据 /etc/resolv.conf 的内容去找到所要使用的 local DNS server.

使用说明
打入 nslookup 命令后, 会看到 > 提示符号, 此时打 ? 就会出现 nslookup 说明
Default Server: sun4.ee.ncku.edu.tw
Address: 140.116.72.14
>?
$Id: nslookup.help,v 8.4 1996/10/25 18:09:41 vixie Exp $
Commands: (identifiers are shown in uppercase, [] means optional)
NAME - print info about the host/domain NAME using default server
NAME1 NAME2 - as above, but use NAME2 as server
help or ? - print info on common commands; see nslookup(1) for details
set OPTION - set an option
all - print options, current server and host
[no]debug - print debugging information
[no]d2 - print exhaustive debugging information
[no]defname - append domain name to each query
[no]recurse - ask for recursive answer to que