Configure Cisco Router 2811 to Act as DNS server

cpatte7372
cpatte7372 used Ask the Experts™
on
Hello Experts

Can someone show me how to configure a cisco router to act as dns server.
I currently have server that can connect to the internet via the router from a private ip address. However, I can't connect to server using its hostname from the internet. I believe it was because the server had not been configured with the appropriate dns settings. Therefore, I configure the dns settings with the ip address of the router 192.168.1.x. Now I need to configure the router to act as a dns server with the public ip address of 84.45.116.x.

The server is windows 2003.

You're help will be greatly appreciated.

Cheers

Carlton
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Well, it sounds like what you want is a public dns entry for the external address.

for instance a web server may have a www record configured in the dns for www.mydomain.com that relates to its IP.

So, two things, if you have a domain name, whoever you have that hosted with (network solutions, etc) will let you create an alias record for the www address

on the router, you'll need to create a static mapping or to allow whatever traffic you want inside.



greg wardSenior Systems Engineer

Commented:
to configure a router as a dns server.
conf t
ip name-server 4.2.2.1
ip name-server <you can add  more here>

ip dns server

ip dhcp pool lan
   import all
   network 172.25.0.0 255.255.255.0
   default-router 172.25.0.1
   dns-server 172.25.0.1

Greg
Here's a detailed article for making a cisco router a dns server.

http://www.nil.com/ipcorner/RouterDNS/

Will it work for external users trying to find you at www.domain.com - no.

Will it work for internal users trying to find www.cnn.com - yes in conjunction with them picking up dhcp from the router.

I think you're looking for external users to find you.  You need to do that upstream with whoever you registered your domain name with.  Or, configure their records to look at your domain servers for the authoritative answer to what www.domain.com's ip should be.

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial