Forwarding

Barry Margolin barmar at alum.mit.edu
Tue Jan 1 07:21:59 UTC 2008


In article <flc2nj$30r0$1 at sf1.isc.org>, Jerim79 <mylek at hotmail.com> 
wrote:

> We having a BIND entry for a domain, although we don't host the
> domain. Our BIND record points to an outside server. For instance, our
> BIND entry points domain.com and www.domain.com to 192.168.1.10. What
> I want to do is point the domain to another outside domain, such as
> domain2.com. Domain2.com is on server 192.168.1.20.
> 
> The problem is that when I simply change the 192.168.1.10 to
> 192.168.1.20, the other server gives a "Bad http request" message.
> They mus be using virtual domains, so I can't forward on IP address
> alone. What I would like to do is have an entry that points domain.com
> to domain2.com without fooling with the IP addresses. How can I
> accomplish this, remembering that there is no Apache information to
> edit? I tried doing it at the registrar, but I don' t have the login
> information. Aliases didn't work. I don't have FTP access to the
> 192.168.1.10 server, so I can't do an HTML redirect.

DNS only does name-to-address resolution.  Since the server is doing 
name-based virtual hosting, you need to use an HTTP mechanism to get the 
client to send the name that the server recognizes, and this can only be 
done using HTTP redirects, not DNS.

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***



More information about the bind-users mailing list