I've got a DNS server running at "dns.u4ik.us" I have full control of the Apache server www.u4ik.us (same server as dns.uik.us) and the dns records themselves. I wanted to supply a service where people would type 96.245.253.143 into their example.com A record, and when someone accessed the site, would redirect to www.example.com (set to their actual IP). Essentially the same thing as WWWizer.com. Would I configure this in Apache or my DNS?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
This should be configured in Apache, set up a virtual host to listen on that IP (with no other VHosts listening) then use a rewrite rule to redirect. Something along the lines of
(Note: Code not tested, guessing from memory but it should be something along those lines) |
|||||||||
|