Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

dns server on router/switch

hi,

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

Rgds,

Rajesh

4 REPLIES

Re: dns server on router/switch

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 ...

New Member

Re: dns server on router/switch

Hi,

Thanks for the response , but my question is

can router itself act as a dns server?

Rgds,

Rajesh

Re: dns server on router/switch

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 Bronze
Bronze

Re: dns server on router/switch

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.

158
Views
6
Helpful
4
Replies
CreatePlease to create content