問題
如何在思科網路安全裝置上配置手動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」選項是隱藏選項。