Turn a Cisco Router into a DNS server

Mar 23, 2006 3 Replies

Does anybody know how to make a Cisco Router act as a DNS server? Let me clarify that I'm not talking about relaying/forwarding DNS requests, from the router to another system that resolves DNS. I want the router to listen on port 53 for DNS queries; once the query is received the router should look to its own host table (Both perm and cached entries) and then return a name resolution (IP address) to the querying host.



I don't think that you can do this. Why would you want to?

Chris.

The only Cisco router-like device I know of that can do this is Distributed Director. But it's pretty limited in the types of queries it can handle.

~ Does anybody know how to make a Cisco Router act as a DNS server?

Why, with the "ip dns server" command, naturally.

~ Let ~ me clarify that I'm not talking about relaying/forwarding DNS requests, ~ from the router to another system that resolves DNS. I want the router ~ to listen on port 53 for DNS queries; once the query is received the ~ router should look to its own host table (Both perm and cached entries) ~ and then return a name resolution (IP address) to the querying host.

c3640(config)#ip dns server c3640(config)#ip host foo.bar ? Default telnet port number A.B.C.D Host IP address additional Append addresses mx Configure a MX record ns Configure an NS record srv Configure a SRV record c3640(config)#ip host foo.bar 10.3.4.5

c3640#sho ip int brief | i Eth FastEthernet0/0 10.95.42.135 YES DHCP up up

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required