I was trying to set up a SOHO router for a small client the other day and was having difficulty getting the DNS server to function the way I wanted on the router. I could get the DNS server to run on the Cisco Router, but it would only work on external domains. Any static record I added would not be resolvable for clients.
For starters, I will assume you have your own Cisco router running 12.4+ IOS firmware with ipservices.
- First, let’s set up DHCP on the Router
R1(config)# interface fastEthernet 0/1 R1(config)# ip address 10.0.0.1 255.255.255.0 R1(config)# no shutdown
- Enable DHCP service on that interface
R1(config)# ip dhcp-server 10.0.0.1
- Configure DHCP settings
R1(config)# ip dhcp pool dhcp-pool R1(config-dhcp)# network 10.0.0.0 255.255.255.0 R1(config-dhcp)# domain-name yourdomain.local R1(config-dhcp)# dns-server 10.0.0.1 R1(config-dhcp)# default-router 10.0.0.1 R1(config-dhcp)# lease 7