For this example our network digram is as follows.
On R1 we need to set up and IP address on the interface and set up a LoopBack interface.
R1> enable R1# configure terminal R1(config)# interface fastethernet 0/0 R1(config-if)# ip address 192.168.1.1 255.255.255.0 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface loopback 1 R1(config-if)# ip address 192.168.10.1 255.255.255.0 R1(config-if)# end R1#
We now need to enable R1 as a DNS server
R1(config)# ip dns server
Now we need to add an A-Record for a host.
R1(config)# ip host TEST 192.168.10.1
now on R2 we need to add R1 as the name-server
R2(config)# ip name-server 192.168.1.1
We alos need to make sure that R2 has dns lookups enabled
R2(config)# ip domain-lookup
now we can test dns by sending a pint to TEST
We can see we have a responce now to check on R1
We can see we have lookups and we have responded to them. We are now done.
*DNS uses UPD on port 53 !!!