I know that the latest Cisco Routers can be used as DHCP server.
I have 2 questions:
- Can Cisco Routers be used as DNS server too?
- Can router, that is used as DHCP server, lease ip addresses to specific MAC addresses (as in usual DHCP server)?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.
Sign up to join this communityI know that the latest Cisco Routers can be used as DHCP server.
I have 2 questions:
There is a way to configure DNS server on your Cisco router.
The first portion enables the DNS service on the router and enables lookups on the local router.
R1# configure terminal
R1(config)# ip dns server
R1(config)# ip domain-lookup
The next step is to configure upstream DNS servers for lookups that you do not have entries for. This is optional if you only want to lookup names that you specify and no other.
R1(config)# ip name-server 8.8.8.8
R1(config)# ip name-server 4.4.4.4
The next step allows you to create manual entries on the router for entries host1, host2 and host3 which will resolve to the IP address at the end,
R1(config)# ip host host1 192.168.1.10
R1(config)# ip host host2 192.168.1.11
R1(config)# ip host host3 192.168.1.12
When you perform name resolution on the router, you will get the correct IP address that you have added in the previous steps.
Just make sure your other clients use the routers IP address to use the DNS service on the router itself.
DHCP POOL WITH RESERVATIONS
To answer your DHCP server question. You can use the client identifier to reserve by MAC address.
ip dhcp pool MYPOOL
host 10.0.0.10 255.255.255.0
client-identifier 0123.1e9e.99de.aa12
default-router 10.0.0.1