Disambiguating between multiple domain name services entries pointing to the same computer

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Dr. Laurence Le » Fri, 05 May 1995 04:00:00



Query regarding domain name services.

We would like to have several different WWW servers running on the
same physical computer.  Each WWW server corresponds to a different
Domain Name.  Each Domain Name will  have a CNAME record pointing
to the same computer.

Is there any way to get WWW server to tell which is coming in as.

For example, assume that our two server names are
  www.zing.com
  www.rotgut.com

Both are duly registered with internic.  Both have CNAME records
pointing to a machine at 143.43.290.45

We would like a net surfer coming in
as
   http://ww.zing.com/home.html

to get a different home page than someone coming in as

   http://ww.rotgut.com/home.html

We don't want to force them to type a different port number when they
enter the URL in their browser.  We don't want a different home page name.

In general, we may want to do something similar with telnet, disambiguating
between multiple Domain Names that point to the same IP address and having
a program behave differently as a funciton of which domain name service
the person uses.

Is this possible? how?

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Brad Knowl » Sat, 06 May 1995 04:00:00




Quote:> For example, assume that our two server names are
>   www.zing.com
>   www.rotgut.com

> Both are duly registered with internic.  Both have CNAME records
> pointing to a machine at 143.43.290.45

> We would like a net surfer coming in
> as
>    http://ww.zing.com/home.html

> to get a different home page than someone coming in as

>    http://ww.rotgut.com/home.html

> We don't want to force them to type a different port number when they
> enter the URL in their browser.  We don't want a different home page name.

The use of CNAME records vs. multiple A records is being discussed openly
on comp.protocols.tcp-ip.domains as I write this.  Some are advocating the
use of multiple CNAME records in most cases, others multiple IP addresses
with matching multiple PTR records for the in-addr.arpa registrations.
Suffice it to say that I think you can get something that will work for
what you're trying to do either way.

However, if you use TCP-Wrappers to listen to the WWW port, and then based
on the domain name specified by the remote end, fire up a different WWW
server, that would probably be done most easily with multiple A records
instead of the CNAME records -- I don't know if the name would get
canonicalized out before the query got to your end or not.

If you're interested in exploring TCP-Wrappers in this fashion, I recommend
you fire up your local archie client and search for "tcp-wrappers" or
"tcp_wrappers".  I think an old version may be found somewhere on
ftp.uu.net, but I can't recall where.  Last I heard, the most recent
version was 7.2, which I don't think is found too many places outside the
official anonymous ftp site for it that Wietse Venema (I think I spelled
that right) has set up.  I've pulled 7.2 for use on our machines at work,
and it appears that the improvements over 7.1 and 7.0 are fairly minor and
mostly cosmetic, but as far as I'm concerned, it's best to start with the
most recent version and not futz around with the older versions and end up
possibly needing to upgrade anyway.

--



The comp.mail.sendmail FAQ is located at:

    <URL:ftp://rtfm.mit.edu/pub/usenet/news.answers/mail/sendmail-faq>

Want to know about the latest version of BIND?  Check out:

    <URL:http://www.isc.org/isc/>

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by \Steven C. Dab » Sat, 06 May 1995 04:00:00


more than more IP. read the rest of the newsgroup dude.


: Query regarding domain name services.

: We would like to have several different WWW servers running on the
: same physical computer.  Each WWW server corresponds to a different
: Domain Name.  Each Domain Name will  have a CNAME record pointing
: to the same computer.

: Is there any way to get WWW server to tell which is coming in as.

: For example, assume that our two server names are
:   www.zing.com
:   www.rotgut.com

: Both are duly registered with internic.  Both have CNAME records
: pointing to a machine at 143.43.290.45

: We would like a net surfer coming in
: as
:    http://ww.zing.com/home.html

: to get a different home page than someone coming in as

:    http://ww.rotgut.com/home.html

: We don't want to force them to type a different port number when they
: enter the URL in their browser.  We don't want a different home page name.

: In general, we may want to do something similar with telnet, disambiguating
: between multiple Domain Names that point to the same IP address and having
: a program behave differently as a funciton of which domain name service
: the person uses.

: Is this possible? how?

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Randy Terbu » Sat, 06 May 1995 04:00:00



Quote:>   Is there any way to get WWW server to tell which is coming in as.

>   Is this possible? how?

Take a look at http://www.apache.org/apache/docs/

There are also patches available for NCSA 1.3 and CERN I believe.

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Robert Gourg » Sat, 06 May 1995 04:00:00


Quote:>more than more IP. read the rest of the newsgroup dude.

Is it possible that the browser passes along to the server the entire URL
that it originally requested and somehow the server could translate that into
an environment variable.  The env variable could then be used to determine
the virtual host you would like to connect to and act accordingly either
through CGI or Includes.
Quote:>: We would like to have several different WWW servers running on the
>: same physical computer.  Each WWW server corresponds to a different
>: Domain Name.  Each Domain Name will  have a CNAME record pointing
>: to the same computer.

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Adrian Coop » Sat, 06 May 1995 04:00:00






>> For example, assume that our two server names are
>>   www.zing.com
>>   www.rotgut.com

>> Both are duly registered with internic.  Both have CNAME records
>> pointing to a machine at 143.43.290.45

>> We would like a net surfer coming in
>> as
>>    http://ww.zing.com/home.html

>> to get a different home page than someone coming in as

>>    http://ww.rotgut.com/home.html

>> We don't want to force them to type a different port number when they
>> enter the URL in their browser.  We don't want a different home page name.

>The use of CNAME records vs. multiple A records is being discussed openly
>on comp.protocols.tcp-ip.domains as I write this.  Some are advocating the
>use of multiple CNAME records in most cases, others multiple IP addresses
>with matching multiple PTR records for the in-addr.arpa registrations.
>Suffice it to say that I think you can get something that will work for
>what you're trying to do either way.

May I suggest that http://apache.org/apache/docs/virtual-host.html
is very well worth looking at.

------------------------------------------------------------------

Enterprise PLC | HTTP://WWW.ENTERPRISE.NET

Leading Internet Services for the British Isles.

------------------------------------------------------------------

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Adrian Coop » Sat, 06 May 1995 04:00:00




Quote:>Query regarding domain name services.

>We would like to have several different WWW servers running on the
>same physical computer.  Each WWW server corresponds to a different
>Domain Name.  Each Domain Name will  have a CNAME record pointing
>to the same computer.

>Is there any way to get WWW server to tell which is coming in as.

>For example, assume that our two server names are
>  www.zing.com
>  www.rotgut.com

>Both are duly registered with internic.  Both have CNAME records
>pointing to a machine at 143.43.290.45

>We would like a net surfer coming in
>as
>   http://ww.zing.com/home.html

>to get a different home page than someone coming in as

>   http://ww.rotgut.com/home.html

>We don't want to force them to type a different port number when they
>enter the URL in their browser.  We don't want a different home page name.

>In general, we may want to do something similar with telnet, disambiguating
>between multiple Domain Names that point to the same IP address and having
>a program behave differently as a funciton of which domain name service
>the person uses.

>Is this possible? how?

Suggest you take a look at - http://apache.org/apache/docs/virtual-host.html

Good luck.

Adrian.

--------------------------------------------------------------------------------------------

Enterprise PLC  |   HTTP://WWW.ENTERPRISE.NET

Leading Internet Services in the British Isles.

--------------------------------------------------------------------------------------------

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Barry Margol » Sat, 06 May 1995 04:00:00



>Is it possible that the browser passes along to the server the entire URL
>that it originally requested and somehow the server could translate that into
>an environment variable.

Are you asking or telling?  Your sentence starts with "Is it", but it
doesn't end with a question mark, so it's hard to tell whether you
transposed the first two words or just forgot the question mark.

The current HTTP protocol doesn't include a way for the browser to include
the hostname portion of the URL in the request.  This is only done when the
browser is sending the request to a proxy server (since the proxy obviously
needs to know who to forward the request to), not to the server named in
the URL.

I've heard that the next revision of the HTTP protocol will include the
full URL in the request, since this dispatching is such a common need.
--
Barry Margolin
BBN Planet Corporation, Cambridge, MA

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Robert Gourg » Tue, 09 May 1995 04:00:00


Quote:>>Is it possible that the browser passes along to the server the entire URL
>>that it originally requested and somehow the server could translate that into
>>an environment variable.
>Are you asking or telling?  Your sentence starts with "Is it", but it
>doesn't end with a question mark, so it's hard to tell whether you
>transposed the first two words or just forgot the question mark.

It was a question, sorry about that

Quote:>The current HTTP protocol doesn't include a way for the browser to include
>the hostname portion of the URL in the request.  This is only done when the
>browser is sending the request to a proxy server (since the proxy obviously
>needs to know who to forward the request to), not to the server named in
>the URL.
>I've heard that the next revision of the HTTP protocol will include the
>full URL in the request, since this dispatching is such a common need.

This to me would seem to be the easiest solution if this info is passed along
to the server where it could be used in scripts or includes.  Until then, I
will be investigating the virtual interface and APACHE solution for our sites.

Robert Gourgon

 
 
 

Disambiguating between multiple domain name services entries pointing to the same computer

Post by Jacques Car » Tue, 09 May 1995 04:00:00




>>>Is it possible that the browser passes along to the server the entire URL
>>>that it originally requested and somehow the server could translate
that into
>>>an environment variable?
>>The current HTTP protocol doesn't include a way for the browser to include
>>the hostname portion of the URL in the request.  This is only done when the
>>browser is sending the request to a proxy server (since the proxy obviously
>>needs to know who to forward the request to), not to the server named in
>>the URL.
>>I've heard that the next revision of the HTTP protocol will include the
>>full URL in the request, since this dispatching is such a common need.
>This to me would seem to be the easiest solution if this info is passed along
>to the server where it could be used in scripts or includes.  Until then, I
>will be investigating the virtual interface and APACHE solution for our sites.

I militate for the "Host: " header! Go ahead, and tell everybody it should
be done! All browser authors, add a "Host: " header in your HTTP requests!
Don't wait for HTTP/1.1! Do it now!

Jacques.

--- Jacques Caron - Pressimage Telematique
    Mail:   5/7 rue Raspail - 93108 Montreuil Cedex - France

    Tel:    +33 (1) 49 88 63 56
    Fax:    +33 (1) 49 88 63 64

 
 
 

1. Can I configure multiple domain names to dhcpd.conf "option domain-name"?

I want to add another domain name to the search order but whn I tried
either the service doesn't start properly or from Windows the DNS
Suffix search order isn't displayed and or set properly. Example
scenario.

I first set the dhcpd.conf settings for the multiple names.
...
option domain-name "linux.net linux.org";
...

Then from Windows PC I run ipconfig /all
...
DNS Suffix Search List. . . . . . : linux.net linux.org
...

Then I run a ping command
C:\> ping www
Ping request could not find host www. Please check the name and try
again.

As you can it didn't work. However, if the option is set to
"linux.net" only, then the ping of www works. BTW, www is mapped to
the IP address of the DNS server from within the /var/named zone file.
When I ping the FQDN of www.linux.net everything works.

C:\>ping www.linux.net

Pinging linux.linux.org [192.168.0.202] with 32 bytes of data:

Reply from 192.168.0.202: bytes=32 time=296ms TTL=64
Reply from 192.168.0.202: bytes=32 time=296ms TTL=64
Reply from 192.168.0.202: bytes=32 time=296ms TTL=64
Reply from 192.168.0.202: bytes=32 time=296ms TTL=64

2. Best solution for dial-on-demand?

3. Adding a domain name service entry for reverse address resolution

4. Solaris 2.4 I/O and interactive desktop performance

5. Help needed with NameD and multiple Domain names.

6. Drive limit under Linux

7. Can I add multiple Domain.Names to one Name server.

8. redhat kernel

9. how can a machine has both a real domain name and a bogus domain name?

10. NIS domain names and DNS domain names not matching.

11. Seperating Multiple Domains pointed to a single IP?

12. Pointing multiple domains to the same directory?

13. Extra point in NIS+ domain name