CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   General web building (http://www.codingforums.com/forumdisplay.php?f=10)
-   -   Force Browser to request for another domain using DNS? (http://www.codingforums.com/showthread.php?t=289888)

codingrox 03-16-2013 02:42 AM

Force Browser to request for another domain using DNS?
 
If browser requests for www.foo.com then I want to send back a DNS response (answer) to the browser which would make browser to ask request DNS entry for www.bar.com. This time if I see request for www.bar.com, I would let it follow through and let the DNS system reply with 'A' record for www.bar.com.


In short I want to force browser to go to another domain using DNS. I referred CNAME record but it does not seem possible to achieve this using CNAME records. Can you please suggest something?


Can it be done using DNS or would I have to look for another technique.

patryk 03-20-2013 08:27 PM

you can do that using DNS if your DNS server will allow you to remove all A records and leave only CNAME.
otherwise you can use redirection in .htaccess file (and that's prolly better idea)


All times are GMT +1. The time now is 05:38 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.