PDA

View Full Version : Redirect by DNS (hide).



xprotect
04-15-2006, 11:38 AM
How to redirect domain to other domain by dns.
I know how to redirect it to IP (it easy, and it doesn`t see in source code/adress textbox).
But how to redirect to domain (for example: lol.domain.com it the same like koko.seconddomain.com )

nobaloney
04-16-2006, 08:26 PM
You can't redirect by DNS.

All you can do with DNS is point two domains to the same IP#.

If you've got a site using a static IP# and you use DNS to point another site to the same IP# that's functionally redirecting, and it may work for you, but it's not the same thing.

Jeff

xprotect
04-18-2006, 04:08 AM
This i know, but i want to redirect to domain (Dynamic DNS) without static IP.

nobaloney
04-18-2006, 08:08 PM
If I'm reading you right you set up something for the domain at dyndns or somewhere, and then you create a CNAME for the one you want to redirect.

I'm not sure how to set up httpd to run on a dynamic address so I can't help you there, but in any event you should have a ServerAlias line in the configuration so apache will know to serve the site.

Jeff