I have three routers; yosemite, Seville and Albuquerque. I must test DNS commands for the CCNA exam. I picked the Albuquerque, my DNS server and add the other routers along with itself by using the "ip host" command. now when I use the ping command to ping Yosemite, everything is Ok, but when I use ping Albuquerque from the Yosemite router, the Albuquerque router cannot reply, although I can ping it by using its IP address.
Am i missing something?
P.S. I have enabled DNS in all my routers by using the "ip domain-lookup" command. And also I have set the Albuquerque as DNS server in other routers.
Default domain is not set
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)
yosemite None (perm, OK) 0 IP 10.1.128.252
Seville None (perm, OK) 0 IP 10.1.129.253
Albuquerque None (perm, OK) 0 IP 10.1.128.251
I do not believe that your configurations are necessarily wrong but it does not follow the logic given in one of the links. I believe that you have a misunderstanding about the ip host command. Using the ip host command does not make the router into a real DNS server. Using the ip host command allows the router to refer to devices by name without having a real DNS server in the network. But the ip host command does not make the router into a DNS server.
The ip host command operates locally on the router. So if you configure R1 with ip host commands for R2, R3, or other devices then R1 will be able to access them by name. But R1 will not respond to DNS requests and this is the behavior that you have.
If you follow the logic in one of the links presented you could try configuring no ip domain-lookup and configure ip dns server. This should enable DNS spoofing. I am still not sure that this would accomplish what you want. But you could give it a try and let us know what happens.