cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1875
Views
0
Helpful
2
Replies

Local DNS on Cisco router

climbingmike
Level 1
Level 1

Hello All

I am setting up a Cisco router at home and have a question about DNS and DHCP. I have configured local DHCP on the router and it is working fine. I have 2 DNS servers configured, from my 2 internet connection providers.  The issue I have is that I cant ping devices on my local VLAN using there DNS names. The hosts are getting IP from the router but there router does not seem to record the DNS name to IP relationship. Is there a why to do this and if so what is the commands?

Many thanks

MIke  

2 Replies 2

Mark Malone
VIP Alumni
VIP Alumni

If there local names on pc and you want to ping there names you can map the Ip to name in global config using Ip host then you can ping either name or Ip locally 

Ip host PCA 10.1.1.10

That can be easily done in IOS:

First you enable DNS on the router:

ip dns server
ip dns spoofing

Then you configure host-entries for your internal systems:

ip host nas.example.intern 10.255.251.129
ip host printer.example.intern 10.255.251.130

Last, you configure your DHCP-pool to use the router as the dns-server:

ip dhcp pool YOUR-POOL
 dns-server YOUR-INTERNAL-ROUTER-IP

For systems, that should always get the same IP, you can configure reservations:

ip dhcp pool DISKSTATION1
 host 10.255.251.129 255.255.255.0
 client-identifier 0100.11e4.39a3.a7
Review Cisco Networking for a $25 gift card