DNS Redirection

Discussion in 'DNS Server' started by Simon, Sep 28, 2005.

  1. Simon

    Simon Guest

    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
     
    Simon, Sep 28, 2005
    #1
    1. Advertisements

  2. Simon

    Todd J Heron Guest

    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

    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, Sep 28, 2005
    #2
    1. Advertisements

  3. Simon

    Todd J Heron Guest

    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

    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

    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, Sep 28, 2005
    #3
  4. Hello Todd,
    Thanks for your help. Have had a look and we were doing something really
    stupid.

    Thanks again for your time.

    Simon
     
    news.microsoft.com, Sep 28, 2005
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.