01-19-2014 10:00 PM - edited 03-07-2019 05:40 PM
Hello All,
We are using Cisco 1841 router. Our requirement is to configure "A" record in the router i.e. we wanted this router to act as a Primary DNS server.
I can bit explain the scenario.
We have connected Internet Lease line ILL to this router with a static ip assigned to it. We have a domain name registered say e.g. www.xyz.com at www.namecheap.com. We wanted to host the web server inside our office network for our website. We did the necessary changes at www.namecheap.com to the domain www.xyz.com pointing it to our static ip. But we are not able to ping or browse the domain www.xyz.com and we contacted www.namecheap.com technical support and they informed us that we need to create a "A" record where ever the web server is hosted.
I tried to search the internet and i couldn't able to find the necessary online resources for creating "A" record in the router for the domain name. But i could find the below link for creating soa record http://blog.ipspace.net/2006/09/use-your-cisco-router-as-primary-dns.html and created a namesever entries like ns1.xyz.com
But this doesn't create "A" record
Any assistance would be really helpful.
Thanks
Sundar
Solved! Go to Solution.
01-20-2014 09:03 AM
Try "ip host TEST 1.1.1.1".
In attached you can find more info.
Regards.
01-20-2014 09:03 AM
01-21-2014 02:34 AM
Dear Daniele,
Thanks for your reply.
You solution worked great for me.
We are able to ping the domain name.
Now we are facing another problem in reaching our web server. I will explain it below.
1. When i type the domain name in the browser we are getting a authentication popup asking for username & password, the popup says "a username and password are being requested by
2. I provided the router username & password it redirect to the following link http://www.sitename.com/archive/flash:home/html/home_aux.shtml. and load the SDM (Cisco router and security device manager) page.
NOTE: we have installed Cisco SDM.
What i wanted is, the site should reach our website hosted in our IIS server inside the network. The IIS server has an local IP address 192.168.1.x and the router gateway has a IP address 192.168.1.y
Any assistance would be really helpful.
Thanks
Sundar
01-21-2014 07:05 AM
Disable the web server on the cisco router and try again.
From console or telnet:
router# conf t
router(conf)# no ip http server
router(conf)# no ip http secure-server ! if necessary
router(conf)# end
router# write
Regards.
01-21-2014 09:19 AM
Hi Daniele,
Once again it worked great.
Is there any possibility of having both running in parallel?
Which means I can provide different port (say 81) for my website and leave the default port (i.e. 80) for SDM? In this case i need to route all my website traffic to port 81. Is it possible to do that?
Thanks
Sundar
01-21-2014 09:56 AM
Hi, you can change the http port of your router using this command:
router(config)# ip http port number (e.g. ip http port 81)
More info here: http://www.cisco.com/en/US/docs/ios/12_2/configfun/configuration/guide/fcf005.html
You can also configure a port triggering and forwarding to change the http port of your web server but in this case we must modify the NAT rules. The command is something like this:
ip nat inside source static tcp "inside-local-address" "local-tcp-port e.g. 80" "inside-global-address" "global-tcp-port e.g. 81"
Regards.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide