Solved

DNS Redirection Operation Confirmation?

Posted on 2012-03-28
2
385 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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