Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DNS Redirection

0 views
Skip to first unread message

Simon

unread,
Sep 28, 2005, 10:01:20 AM9/28/05
to
Hello All,
We have a situation where we would like to setup redirection to another web
site on our internal DNS.

So what we want is to enter www.site1.com and this be redirected to
www.site2.co.uk . This is hosted externally. If we add an A record of
www.site1.com to the IP address of www.site2.co.uk we get the wrong web site
as the header information does not contain www.site2.co.uk.

Can anyone help please? It would be most appreciated.

Thanks,

Simon


Todd J Heron

unread,
Sep 28, 2005, 1:51:11 PM9/28/05
to
DNS does not do web site re-direction like that. You could use this little
snippet of code inserted into the default.htm page of www.site1.com.

<HTML>
<Head>
<Title>Site2</Title>
</Head>
<Frameset>
<Frame src="http://www.site2.co.uk"></Frame>
</Frameset>
</HTML>

Or you could use IIS host headers.

Host headers, how to implement:
Each IIS web site must be unique in at least one of the following in order
to start correctly:

1. Port
2. IP Address
3. Host Header

Host Headers (part of the HTTP 1.1 specification) allow you to have multiple
web sites running on the same IP Address and TCP/IP port number. To
configure a host header use the full URL header (e.g. www.yourwebsite.com)
in the site's property configuration. Go to Site properties > Web Site >
Advanced > highlight the top line indicating (All Unassigned) > Edit > Enter
the full URL Header (the full domain name).

DNS Name resolution is performed by the web client's name server prior to
the HTTP request being sent. IIS looks at the host header field within the
HTTP request and passes the request to the appropriate local instance upon
arrival. Note that IIS installations on Windows NT Workstation 4.0, Windows
2000 Professional and Windows XP Professional will only allow one web site
per IP address.

Drawbacks:

Host Headers do not work with multiple SSL enabled sites (only one
SSL-enabled site per IP address)
FTP sites do not support Host Headers
Older browsers which only support HTTP 1.0 do not support Host Headers

Further reading:
http://www.iisfaq.com/HOSTHEADERS/
How to: Use Host Header Names to Host Multiple Sites from One IP Address
(Q190008)


--
Todd J Heron, MCSE
Windows Server 2003/2000/NT; CCA
----------------------------------------------------------------------------
This posting is provided "as is" with no warranties and confers no rights

"Simon >" <Si...@dwsolutions.co.uk<NOSPAM> wrote in message
news:O4yS4TDx...@TK2MSFTNGP14.phx.gbl...

Todd J Heron

unread,
Sep 28, 2005, 1:57:56 PM9/28/05
to
I meant to add you could use URL re-direction, within the IIS properties of
www.site1.com. Look under the 'Home Directory' tab for that.

--
Todd J Heron, MCSE
Windows Server 2003/2000/NT; CCA
----------------------------------------------------------------------------
This posting is provided "as is" with no warranties and confers no rights

"Todd J Heron" <todd_hero...@hotmail.com> wrote in message
news:ua5J5UFx...@TK2MSFTNGP14.phx.gbl...

news.microsoft.com

unread,
Sep 28, 2005, 3:38:09 PM9/28/05
to
Hello Todd,
Thanks for your help. Have had a look and we were doing something really
stupid.

Thanks again for your time.

Simon

"Todd J Heron" <todd_hero...@hotmail.com> wrote in message

news:%23JNerYF...@TK2MSFTNGP11.phx.gbl...

0 new messages