将默认的域名系统 (DNS) 域名更改为指定名称。
Syntax
set domain=<domainname>
Parameters
Parameter | Description |
---|---|
<domainname> |
为默认 DNS 域名指定新名称。 默认值为主机的名称。 |
/? | 在命令提示符下显示帮助。 |
/help | 在命令提示符下显示帮助。 |
Remarks
The default DNS domain name is appended to a lookup request depending on the state of the defname and search options.
如果 DNS 域搜索列表的名称中至少有两个组件,则 DNS 域搜索列表包含默认 DNS 域的父级。 例如,如果默认 DNS 域为 mfg.widgets.com,则搜索列表将同时命名为 mfg.widgets.com 和 widgets.com。
使用 nslookup set srchlist 命令可指定其他列表,使用 nslookup set all 命令可显示列表。