LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Dns - Cname - Domain Masking (https://www.linuxquestions.org/questions/linux-networking-3/dns-cname-domain-masking-329970/)

dulaus 06-03-2005 11:46 AM

Dns - Cname - Domain Masking
 
Hi there ...

I am using Mandrake 9.2 with BIND.

I am an affiliate of another site and have been told to create a subdomain.

My subdomain will be called: adventures.mysite.com

The affiliate site is called: adventures.affiliate.org

The intent is to hide the affiliate URL in the browser window on my own website, as well as hard coded URL's such as adventures.mysite.com which will resolve to adventures.affiliate.com.

There is confusion on my part on this ... of what I have to include in my zone file be it, A records, CNAME or anything else.

I have entered a record in named.conf already which is adventures.mysite.com

Could someone give me an example of a complete zone file that does this.
I have given this several attempts but have failed.

adventures.mysite.com. IN CNAME adventures.affiliate.org ?


Thanks ...

dulaus 06-06-2005 06:30 AM

bump

bathory 06-06-2005 07:21 AM

You can use:
adventures.mysite.com. IN A IP-addres-of-affliate.org
Or else you could use javascript to hide the URL from the status bar at the bottom and you can use frames for the address bar.
I.e. define a frameset like this:
<FRAMESET ROWS="100%,*" BORDER="0" FRAMEBORDER="0" FRAMESPACING="0">
<FRAME NAME="top" SRC="http://adventures.affiliate.org" NORESIZE>
<FRAME NAME="bottom" SRC="blankpage.html" MARGINWIDTH="0"
MARGINHEIGHT="0" SCROLLING="NO" FRAMEBORDER="0" NORESIZE>
</FRAMESET>
Of course a skilled user could find what the actual URLs are.

Regards


All times are GMT -5. The time now is 05:24 PM.