Cisco dns分流
ip dhcp pool data
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
!
!
ip name-server 114.114.114.114 -------------定义dns地址
ip name-server 223.5.5.5
ip name-server 172.16.186.17
ip name-server 172.29.12.25
!
ip domain lookup
ip dns view eascs
dns forwarder 172.16.186.17
dns forwarder 172.29.12.25
ip dns view default
dns forwarder 114.114.114.114
dns forwarder 223.5.5.5
ip dns view-list primary
view eascs 10 -------------遇到定义了解析的域名用view的eascs的dns来解析
restrict name-group 1
view default 100
ip dns name-list 1 permit .*.EASCS.COM -----------定义需要解析的域名
ip dns server view-group primary ------------调用
ip dns server ------------打开dns- server功能