Chapter 37 System
Table 169 Command Summary: DNS (continued)
COMMAND | DESCRIPTION |
[no] ip dns server | Sets a MX record that specifies a mail server that is responsible for |
{w.x.y.zfqdn} | handling the mail for a particular domain. The no command |
| deletes a MX record. |
ip dns server rule {<1..32>appendinsert | Sets a service control rule for DNS requests. |
<1..32>} |
|
zone {ALLaddress_object} action {acceptdeny} |
|
ip dns server rule move <1..32> to <1..32> | Changes the number of a service control rule. |
[no] ip dns server | Sets a domain zone forwarder record that specifies a fully qualified |
{<1..32>appendinsert <1..32>} | domain name. You can also use a star (*) if all domain zones are |
{domain_zone_name*} interface interface_name | served by the specified DNS server(s). |
| domain_zone_name: This is a domain zone, not a host. For |
| example, zyxel.com.tw is the domain zone for the |
| www.zyxel.com.tw fully qualified domain name. For example, |
| whenever the ZyWALL receives needs to resolve a zyxel.com.tw |
| domain name, it can send a query to the recorded name server IP |
| address. |
| interface_name: This is the interface through which the ISP |
| provides a DNS server. The interface should be activated and set |
| to be a DHCP client. |
| The no command deletes a zone forwarder record. |
ip dns server | Sets a domain zone forwarder record that specifies a DNS server’s |
{<1..32>appendinsert <1..32>} | IP address. |
{domain_zone_name*} | private interface: Use private if the ZyWALL connects to |
[private interface {interface_name auto}] | |
| the DNS server through a VPN tunnel. Otherwise, use the |
| interface command to set the interface through which the |
| ZyWALL sends DNS queries to a DNS server. The auto means any |
| interface that the ZyWALL uses to send DNS queries to a DNS |
| server according to the routing rule. |
|
|
ip dns server | Changes the index number of a zone forwarder record. |
<1..32> |
|
no ip dns server rule <1..32> | Deletes a service control rule. |
show ip dns server | Displays all DNS entries. |
show ip dns server database | Displays all configured records. |
show ip dns server status | Displays whether this service is enabled or not. |
37.6.3 DNS Command Example
This command sets an A record that specifies the mapping of a fully qualified domain name (www.abc.com) to an IP address (210.17.2.13).
Router# configure terminal
Router(config)# ip dns server
284 |
|
ZyWALL (ZLD) CLI Reference Guide | |
|
|