为主机名解析配置名称服务切换表
您必须正确配置名称服务切换表,ONTAP 才能与本地或外部名称服务通信,从而检索主机信息。
开始之前
您必须已确定要用于您的环境中的主机映射的名称服务。- 在名称服务切换表中添加必要的条目:vserver services name-service ns-switch create -vserver vserver_name -database database_name -source source_names
- 验证名称服务切换表是否以所需的顺序包含预期条目:vserver services name-service ns-switch show -vserver vserver_name
以下示例在名称服务切换表中创建一个条目,以便 SVM vs1 先使用本地主机文件,然后使用外部 DNS 服务器解析主机名:
cluster-1::> vserver services name-service ns-switch create -vserver vs1 -database hosts -sources files,dns
提供反馈