How to disable recursive DNS service on the firewall by CLI?






Scenario :
Some Internet Service Providers may offer recursive DNS service. Once the firewall/router is assigned a public IP, external Internet users can execute a DNS query via the public IP (e.g., using 'nslookup www.google.com [public IP address]'). However, this behavior may impose additional load on the firewall/router. This article will guide you on how to disable it by the CLI. Regarding this FAQ article: How to disable recursive DNS service on the firewall? We already guide you on how to disable recursive DNS service on the device Web-GUI. You also can use CLI to disable this function.
Answer :
Disable CLIs:
Router# configure terminal
Router(config)# ip dns security-options default
Router(config-ip-dns-security-options)# no recursion activate
Router(config-ip-dns-security-options)# no additional-from-cache activate
Router(config-ip-dns-security-options)# exit
Once you complete the disable CLIs and navigate to System > DNS > Advance > Security Option Control will find those two options are set to deny.
If you want to enable it again, please refer to below Enable CLIs :
Router# configure terminal
Router(config)# ip dns security-options default
Router(config-ip-dns-security-options)# recursion activate
Router(config-ip-dns-security-options)# additional-from-cache activate
Router(config-ip-dns-security-options)# exit
Categories
- All Categories
- 416 Beta Program
- 2.5K Nebula
- 160 Nebula Ideas
- 108 Nebula Status and Incidents
- 5.9K Security
- 328 USG FLEX H Series
- 286 Security Ideas
- 1.5K Switch
- 78 Switch Ideas
- 1.2K Wireless
- 42 Wireless Ideas
- 6.6K Consumer Product
- 259 Service & License
- 400 News and Release
- 86 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.8K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 80 Security Highlight