This recipe explains the procedure for enabling the DNS server and using it.
*With the factory settings, the DNS server is disabled.
Target devices
- AG10/20
- AR10/20
- AC10 (As of 2022/7/4 only for the CLI)
Table of contents
Setting with the GUI
- Access the GUI with a Web browser.
e.g.) http://192.168.1.197 - Click [ Advanced setting/control ] - [ DNS settings ] on the side menu.
- Turn on the toggle for enabling, and enter the port number. (In this procedure, use Port 53.)
Next, select the [ Server address ] tab, and click [ Add new ]. - Specify the IP address for the upstream DNS server of the contact destination and specify the priority. (0-99, 0 being the highest priority)
*As the items that can be set with the GUI are limited, configure more detailed settings from the CLI.
Setting with the CLI
- With amsh, transit to configuration mode.
admin@amnimo:~$ amsh
amnimo$ enable
password:
amnimo#
amnimo# configure - Transit to configuration mode of DNS, and configure the DNS settings.
amnimo(cfg)# dns
amnimo(cfg-ssh)# enable ← Enable the DNS server.
amnimo(cfg-ssh)# port 53 ← Set the port number.
amnimo(cfg-ssh)# query-port-range min 1024 max 65535 ← Specify the range of ports to issue queries.
amnimo(cfg-dns)# cache-ttl min 900 max 3600 ← Set the cache retention period.
amnimo(cfg-dns)# cache-ttl negative-max 900 ← Set the maximum retention period for negative caches.
amnimo(cfg-dns)# server-address 8.8.8.8 priority 10 ← Specify the IP address and priority (10) of the upstream DNS server of the contact destination.
amnimo(cfg-ssh)# exit
amnimo(cfg)# - Save the configuration file.
amnimo(cfg)# config file save
For detailed information on the commands and other optional settings, refer to the following manuals.
Comments
0 comments
Please sign in to leave a comment.