Configure Static DNS Entries on Cisco IOS
You can configure Cisco’s IOS to remember IP addresses for host, without having
to resort to a DNS lookup. Very much indeed like adding an entry to your
/etc/hosts
file.
Router(config)# ip host example.invalid 192.168.1.1
Router(config)# end
Router# sh host
Default Domain is example.invalid
Name/address lookup uses domain service
Name servers are 255.255.255.255
Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate
temp - temporary, perm - permanent
NA - Not Applicable None - Not defined
Host Port Flags Age Type Address(es)
example.invalid None (perm, OK) 0 IP 192.168.1.1