ZyXEL Communications n/a User Manual

Page of 222
Chapter 13 IP Commands
DSL & IAD CLI Reference Guide
82
The following example configures the DNS server settings the ZyXEL Device assigns to LAN 
DHCP clients. In this case the first DNS server is the one assigned by ISP 1. The second DNS 
server is at IP address 192.168.1.5. No third DNS server is assigned. 
This example does the following.
Inserts a new DNS address record named example for www.my-company.com.example 
for the WAN 1 interface.
Inserts a new DNS address record named example for a private DNS server for 
www.my-company-1.com.example.
Displays the system DNS server settings.  
The following example sets the WAN 1 interface to use IP address 172.16.1.203 and subnet 
mask 255.255.0.0.
ras> ip dns lan edit 0 0 1 1
ras> ip dns lan edit 1 1 192.168.1.5
ras> ip dns lan edit 2 3
ras> ip dns lan display
Router assigned DNS servers to host
===================================
First DNS server is from WAN_1, DNS server index 1
Second DNS server is user defined: 192.168.1.5
Third DNS server is none
ras> ip dns system inserta -1 www.my-company.com.example 0 0 1
ras> ip dns system insertns -1 www.mycompany-2.com.example 2 10.0.0.5
ras> ip dns system display
System DNS HA and Proxy Service Configuration
=============================================
Rule Summary: A Record
001 | record type=A Record, ISP=WAN_1
    | FQDN       =www.my-company.com.example
Rule Summary: NS Record
001 | record type=NS Record, DNS server=10.0.0.5(private)
    | Domain Name=www.mycompany-2.com.example
ras> ip ifconfig enif1 172.16.1.203/16
enif1: mtu 1500 mss 1460
    inet 172.16.1.203, netmask 0xffff0000, broadcast 172.16.255.255
    RIP RX:None, TX:None,
    [InOctets        197396] [InUnicast       621] [InMulticast          982]
    [InDiscards          72] [InErrors          0] [InUnknownProtos       72]
    [OutOctets        89305] [OutUnicast      629] [OutMulticast           0]
    [OutDiscards          0] [OutErrors         0]