To determine most DNS settings we can simply run:
R1# show hosts
The output will tell us the default domain name, the DNS IP addresses to use and the local host-to-IP mappings.
To enable DNS resolution and configure the DNS servers to use:
R1(config)# ip domain-lookup
R1(config)# ip name-server 1.1.1.1 8.8.8.8
To enable the DNS service for other clients to use:
R1# ip dns server
To configure static host-to-IP mappings: