问题
如何在思科网络安全设备上配置手动DNS条目?
环境
思科网络安全设备(WSA),所有AsyncOS版本
在命令行界面(CLI)中输入以下命令,如下所示:
WSA> dnsconfig
Choose the operation you want to perform:
- NEW - Add a new server.
- SETUP - Configure general settings.
- SEARCH - Configure DNS domain search list.
[]> localhosts
Local IP to Host mappings:
Choose the operation you want to perform:
- NEW - Add new local IP to host mapping.
- DELETE - Delete an existing mapping.
[]> new
Enter the IP address of the host you are adding.
[]> 1.1.1.1
Enter the canonical host name and any additional aliases (separate values with spaces)
[]> example.com
Local IP to Host mappings:
1. 1.1.1.1 example.com
Choose the operation you want to perform:
- NEW - Add new local IP to host mapping.
- DELETE - Delete an existing mapping.
[]>
在CLI提示符下,请使用CLI命令- commit -提交DNS配置更改。
注意:CLI命令“dnsconfig”中的“localhosts”选项是隐藏选项。