cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
332
Views
6
Helpful
4
Replies

dns server on router/switch

rajeshk200_2
Level 1
Level 1

hi,

Is there any possibility we can configure router as dns server for reslolving domain names?

Rgds,

Rajesh

4 Replies 4

sourabhagarwal
Level 4
Level 4

yes, it is possible to configure DNS on the router using below command.

Router(config)# ip name-server

check this URL to get more information.

http://www.cisco.com/warp/public/105/reversedns.pdf

hope to help ... rate if it does ...

Hi,

Thanks for the response , but my question is

can router itself act as a dns server?

Rgds,

Rajesh

Yes, it is very much possible to configure router to act as DNS server. you need to define a static host name-to-address mapping in the host name cache of router.

check below URL to get more information.

http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a00804455de.html

hope it helps .... rate if it does ....

ovt
Level 4
Level 4

Yes, but most of the following commands are not documented at all and it supports UDP/53 only (TCP/53 and zone transfer is not supported):

ip dns server

ip dns primary domain.com soa [refresh] [retry] [expire] [minimum]

ip host

ip host ns

ip host mx

ip host srv

show hosts

show ip dns primary

show ip dns statistics

The server will answer A and PTR quries.

Don't forget to rate all useful posts.

Review Cisco Networking products for a $25 gift card