08-31-2015 11:27 AM - edited 03-08-2019 01:35 AM
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
08-31-2015 12:51 PM
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
08-31-2015 02:29 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide