Solved

DNS Redirection Operation Confirmation?

Posted on 2012-03-28
2
383 Views
Last Modified: 2012-03-28
I just need a quick conformation that I understand DNS redirection's functionality/limitation.  

I have a client that wants the following redirection (the domain is the same in each example and in reality):

city.domain1.com to www.domain1.com/City

It's my understanding that I could do the following:

city.domain1.com to www.domain1.com

Then the web server hosting the site would have to read the http header then direct the request to www.domain1.com/City

Do I have this right or is there some way to use DNS to do the requested redirection (city.domain1.com to www.domain1.com/City)?
0
Comment
Question by:dmbishop
2 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 37780202
You are correct.  You can either create a CNAME record that points city.domain1.com to www.domain1.com or create A records for city.domain1.com and www.domain1.com that point to the same IP.

Pros/cons of CNAME vs A for this scenario:
You cannot have a CNAME alongside any other RR (resource record) type.  This means if for example you need to add MX records for city.domain1.com or a TXT record for SPF or Google Site Verification you will not be able to.  The pro for a CNAME is that if www.domain1.com changes its A record you will not need to modify anything for city.domain1.com.

Cons of A record is that you will need to update the A record of city.domain1.com if www.domain1.com changes it's A record.  The pro is that you can have other RR's with the same label such as SPF or MX records.

If city.domain1.com will only be used as a redirect for www.domain1.com/City , then a CNAME should suffice.
0
 

Author Closing Comment

by:dmbishop
ID: 37780235
Thanks for the quick and thorough confirmation and additional information regarding using CNAME vs. A records.
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question