If you want to permit your router to find a DNS server on the web, then use the command ip name-server 1.1.1.1, or the relevant IP address of the server.
You can also set a hostname to the IP address table on your router to save time or to make it easier to remember which device to ping or connect to, as shown in the output below:
Router(config)#ip host R2 192.168.1.2
Router(config)#ip host R3 192.168.1.3
Router(config)#exit
Router#ping R2
Router#pinging 192.168.1 . . .
The content below this message is for members only.