Cisco DNS Server

By | April 22, 2012
Warning: Trying to access array offset on value of type null in /customers/3/0/4/ on line 72

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
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# interface loopback 1
R1(config-if)# ip address
R1(config-if)# end

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

now on R2 we need to add R1 as the name-server

R2(config)# ip name-server

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 !!!