cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1369
Views
0
Helpful
5
Replies

Allow Cisco routers/switches reply to DNS lookups as end-points

thedot331
Level 1
Level 1

Hello,

 

How do we make our Cisco gear reply to DNS lookups?

 

We do NOT want to have the router/switch act as a DNS server, and do NOT want to do hostname lookup from the router/switch itself.

 

We want the opposite - for the Cisco devices to just respond to external queries with their hostname, like a laptop/end device. We have a Hostname configured on every device. How do we get those hostnames to show up on the network? We have Windows DNS servers, can they scan the Cisco gear automatically and create the DNS entries?

 

thanks,

1 Accepted Solution

Accepted Solutions

Hi

 But devices like notebook desktops, Access Points, etc, use DHCP and what I see is that by DHCP request/response IPAM can get hostname information.

 Pure DNS does not get this information unless you create an "A" host entry somewhere. 

View solution in original post

5 Replies 5

Hi

" How do we get those hostnames to show up on the network?"  Can you explain what do you mean by 'show up'.  You want the device to responde by name without creating a DNS entry for them on the DNS server?

Hello, yes, so for example we have network scanning tools - IPAM, etc, and they pick up the hostnames of our deskptops, printers, servers, VM hosts, etc. but not Cisco devices.

 

Obviously nobody is manually creating DNS entries of every desktop in our windows DNS server, the end-devices just respond when scanned. So how do we make Cisco respond to scans with a hostname? how do we auto create the entries on DNS server when it goes to resolve the IP/name?

 

thanks,

Hi

 But devices like notebook desktops, Access Points, etc, use DHCP and what I see is that by DHCP request/response IPAM can get hostname information.

 Pure DNS does not get this information unless you create an "A" host entry somewhere. 

balaji.bandi
Hall of Fame
Hall of Fame

Do you have DNS Server ? then take an example :

 

if the Switch name  BLD9-ACC1 (Building 9 Access switch) IP address of Management 10.10.10.10

Add A Entry in DNS

 

BLD9-ACC1 10.10.10.10, your device can access BLD9-ACC1

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Jitendra Kumar
Spotlight
Spotlight

please check with below commands should help you.

 

router(config)#ip dns server
router(config)#ip domain-lookup
router(config)#ip name-server 8.8.8.8
router(config)#ip name-server 1.1.1.1
router(config)#ip host xyz 192.168.1.2
router(config)#ip host abc 192.168.1.5

 

Thanks,

Jitendra

Thanks,
Jitendra