Solved

DNS Redirection Operation Confirmation?

Posted on 2012-03-28
2
378 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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.
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now