cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3637
Views
0
Helpful
1
Replies

IOS DHCP Server and DNS host record lookups

Gerard Roy
Level 2
Level 2

I have an 1811 configured with dhcp scope and generally it works correctly. I have a host on the vlan/subnet that the scope is assigned that can receive an IP and all the specifics from the dhcp server. See the pool below:

ip dhcp pool 192.168.233.0/27
   network 192.168.233.0 255.255.255.224
   default-router 192.168.233.1
   domain-name *******.com
   dns-server 192.168.233.1
   option 43 hex f108.c0a8.a884.c0a8.a885

The host on the vlan/subnet should use the router as the dns server to resolve static hosts that are configured on the router itself. Can an IOS DHCP/DNS server do this?

Here is the host record assigned on the router:

ip host CISCO-CAPWAP-CONTROLLER.*******.com 192.168.168.132 192.168.168.133

I want to ping CISCO-CAPWAP-CONTROLLER.*******.com from my host and get the name resolved to the 192.168.168.132 or 192.168.168.133 addresses. Is this possible?

1 Reply 1

Hi Gerard,

yes IOS can do that..

enable

2. configure terminal

3. ip dns server

4. ip name-server server-address1 [server-address2 ... server-address6]

5. ip dns server queue limit {forwarder queue-size-limit | director queue-size-limit}

6. ip host [vrf vrf-name] [view view-name] hostname {address1 [address2 ... address8] |
additional address9 [address10 ... addressn]}

7. ip dns primary domain-name soa primary-server-name mailbox-name [refresh-interval [retry-interval [expire-ttl [minimum-ttl]]]]

8. ip host domain-name ns server-name

check it out here:

http://www.cisco.com/en/US/customer/docs/ios/ipaddr/configuration/guide/iad_config_dns_ps6350_TSD_Products_Configuration_Guide_Chapter.html#wp1061435

in the middle of the page I hope your device supports that and it helps..

regards,

Sebastian

Review Cisco Networking for a $25 gift card