You can configure a Domain Name System (DNS) domain and DNS gateway addresses to resolve host names to IP addresses.
device# configure terminal
device(config)# ip dns domain-list mycompany.com
device(config)# ip dns name-server 10.157.22.199
device(config)# exit
device# traceroute mycompany.com Sending DNS Query to 10.157.22.199 Tracing Route to IP node 10.157.22.80 To ABORT Trace Route, Please use stop-traceroute command. Traced route to target IP node 10.157.22.80: IP Address Round Trip Time1 Round Trip Time2 10.95.6.30 93 msec 121 msec
The following example configures a DNS domain and default and secondary DNS gateway addresses for DNS servers
device# configure terminal device(config)# ip dns domain-name www.mycompany.com device(config)# ip dns name-server 10.157.22.199 device(config)# exit device(config)# ip dns name-server 10.96.7.15