How to integrate DNS and referrals??

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have noticed that some Domain Registrars seem to offer an
web referral service. For instance, in the registrar's DNS control
panel, you can set a link from a DNS name <> to a website
subdirectory like < . Anyone have a clue how
this is done at the level of DNS?? I could imagine that you could
point a DNS name like to a webserver where a 'referral'
snippet might exist as the index.html referring to
but I am not aware of any public domain programmatic way of doing
this.... Any clues or suggestions??



Re: How to integrate DNS and referrals??

On Sat, 30 Aug 2008 08:16:02 -0700 (PDT), wrote:
Quoted text here. Click to load it

I'm not sure from your description whether you're talking about a redirect
or a proxy. In either case, you (or the company managing the domain) set
the A record for to point to one of your (their)

For a proxy ( actually serves up the same content as, you then have a record in the server configuration
that looks a little like this:

<VirtualHost *:80>
  RewriteEngine On
  RewriteRule ^(.*)$ $1 [P]

For a redirect ( redirects to,
it's pretty similar, except you replace [P] with [R] and obtain the log of
redirects from a server log set up for that subdomain. Or you can rewrite
the request inernally to redirect through some custom script.

Safalra (Stephen Morley)

A Colour Picker Widget For JavaScript: /

Re: How to integrate DNS and referrals?? wrote:
Quoted text here. Click to load it

It can't be done purely within DNS.

Quoted text here. Click to load it

That's how it's normally done, yes.

Quoted text here. Click to load it

I believe F5's distributed fault-tolerant servers can do this as part of
their management console, but as I've not actually played with one I
can't given you a definite assurance about that.

Conceptually it's not hard to merge a simple HTTP forwarding request
system with DNS management; the forwarding pages could even be generated
dynamically from a database.


Site Timeline