Re: Another Crazy DNS Question... ;-)

1999-11-05 Thread Greg Wooledge
Art Lemasters ([EMAIL PROTECTED]) wrote:

  Does anyone here know how to do this with the most recent sendmail
 in potato (8.9.3) to receive mail for both domain.com and machine.domain.com,
 etc.?

Make sure all the domains for which you wish to receive mail are defined
in the 'w' (or is it 'W'?) class, either in /etc/sendmail.cf or in some
auxiliary file such as /etc/sendmail.cw (if sendmail.cf points to that).

(I normally use qmail, so I can't remember whether it's 'Cw' or 'CW')

-- 
Greg Wooledge| Truth belongs to everybody.
[EMAIL PROTECTED] |   Red Hot Chili Peppers,
http://www.kellnet.com/wooledge/ |


pgp0Nutsd8x8t.pgp
Description: PGP signature


Another Crazy DNS Question... ;-)

1999-11-04 Thread Art Lemasters
 How can I set up two completely different FQDNs (two totally
different hostnames) on one box (e.g., my.domain.net 
alsomy.otherdomain.net) so that this machine accepts traffic
on my.domain.net while appearing to be alsomy.otherdomain.net
to anyone who accesses it via the webserver or mailserver?  ;-)

 Do I need to run virtual hosting here?  Will it work to
point A records from each of those host names to the same,
single IP address?

Art



Re: Another Crazy DNS Question... ;-)

1999-11-04 Thread William T Wilson
On Wed, 3 Nov 1999, Art Lemasters wrote:

  How can I set up two completely different FQDNs (two totally
 different hostnames) on one box (e.g., my.domain.net 

Point both DNS entries at your IP address.  You can only have your IP map
to one of them in reverse DNS, though.  If you absolutely have to have
that, you need to have virtual hosting.

 alsomy.otherdomain.net) so that this machine accepts traffic
 on my.domain.net while appearing to be alsomy.otherdomain.net
 to anyone who accesses it via the webserver or mailserver?  ;-)

You configure this with the webserver and mailserver software.  For the
mailserver it is easy, just put all the domains you want to receive mail
for in sendmail.cw.  If you only want to receive mail for one domain, the
easiest is to set the system's domain name to that and forget about
sendmail.cw.  Of course, if you want to receive mail for both and also
maintain separate lists of users for each domain then you must work
harder.  For the webserver, you can configure virtual hosting in a variety
of ways.  Of course, that's only necessary if you want to do webserving
for both domains.  If you only want to do webserving for one, just pretend
the other one doesn't exist.

  Do I need to run virtual hosting here?  Will it work to
 point A records from each of those host names to the same,
 single IP address?

Virtual hosting is a nebulous term.

Yes, you can point A records from two domains to the same IP address.


Re: Another Crazy DNS Question... ;-)

1999-11-04 Thread aphro
yeah that would work fine, point 1 domain at 1 ip, or point a million
domains at 1 ip ..its all the same  ..now if your doing it for web
hosting, e.g.

http://www.aphroland.org and http://yahoo.aphroland.org and
http://comedy.aphroland.org are all the same ip (208.222.179.35)

however they are all (completely) different sites.  you can do this in
apache with the NameVirtualHost directive(on apache 1.3), and a HTTP 1.1
complient WWW client (something like IE2.0 is not HTTP 1.1 compliant)

nate

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
10:39pm up 76 days, 10:06, 1 user, load average: 0.34, 0.38, 0.36

On Wed, 3 Nov 1999, Art Lemasters wrote:

  How can I set up two completely different FQDNs (two totally
 different hostnames) on one box (e.g., my.domain.net 
 alsomy.otherdomain.net) so that this machine accepts traffic
 on my.domain.net while appearing to be alsomy.otherdomain.net
 to anyone who accesses it via the webserver or mailserver?  ;-)
 
  Do I need to run virtual hosting here?  Will it work to
 point A records from each of those host names to the same,
 single IP address?
 
 Art
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 


Re: Another Crazy DNS Question... ;-)

1999-11-04 Thread Robert Varga


On Wed, 3 Nov 1999, Art Lemasters wrote:

  How can I set up two completely different FQDNs (two totally
 different hostnames) on one box (e.g., my.domain.net 
 alsomy.otherdomain.net) so that this machine accepts traffic
 on my.domain.net while appearing to be alsomy.otherdomain.net
 to anyone who accesses it via the webserver or mailserver?  ;-)
 
  Do I need to run virtual hosting here?  Will it work to
 point A records from each of those host names to the same,
 single IP address?
 
 Art
 

The easiest method is virtual hosting for the alsomy.otherdomain.net
hostname, since you need only mail and web there. 

Robert Varga


Re: Another Crazy DNS Question... ;-)

1999-11-04 Thread Bob Nielsen
On Thu, Nov 04, 1999 at 12:01:29AM -0500, William T Wilson wrote:
 
 Yes, you can point A records from two domains to the same IP address.

You can also use a CNAME record.  I'm not sure when one approach would
be preferred over the other.

You can also use virtual hosting to have the same machine use two
different IP addresses.

Bob

-- 
Bob Nielsen Internet: [EMAIL PROTECTED]
Tucson, AZ  AMPRnet:  [EMAIL PROTECTED]
DM42nh  http://www.primenet.com/~nielsen


Re: Another Crazy DNS Question... ;-)

1999-11-04 Thread Jens B. Jorgensen
Bob Nielsen wrote:

 On Thu, Nov 04, 1999 at 12:01:29AM -0500, William T Wilson wrote:
 
  Yes, you can point A records from two domains to the same IP address.

 You can also use a CNAME record.  I'm not sure when one approach would
 be preferred over the other.

This is true however the rfc (not sure what number to look at) I believe says 
that the
hostname mentioned in an MX record shouldn't be a CNAME.

I should also mention that as far as how your mailserver appears to other 
machines,
when a mailserver is _sending_ mail out it first announces its identity via the 
HELO
or EHLO commands. What identity the host presents itself as to other SMTP hosts 
is
configurable in all the mail server packages I've dealt with. That said, mail 
server
packages that I've dealt with will only allow you configure it to present 
itself as a
single identity.

This doesn't affect mail clients which would get mail via POP/IMAP of course.

--
Jens B. Jorgensen
[EMAIL PROTECTED]



Re: Another Crazy DNS Question... ;-)

1999-11-04 Thread Robert Varga


On Thu, 4 Nov 1999, Bob Nielsen wrote:

 On Thu, Nov 04, 1999 at 12:01:29AM -0500, William T Wilson wrote:
  
  Yes, you can point A records from two domains to the same IP address.
 
 You can also use a CNAME record.  I'm not sure when one approach would
 be preferred over the other.

You cannot use a CNAME record for mail hosting.

Robert Varga


Re: Another Crazy DNS Question... ;-)

1999-11-04 Thread William T Wilson
On Thu, 4 Nov 1999, Bob Nielsen wrote:

  Yes, you can point A records from two domains to the same IP address.
 
 You can also use a CNAME record.  I'm not sure when one approach would
 be preferred over the other.

The answer is simple: Use A records for everything and forget about
CNAMEs. :}

I use a CNAME when a machine is supposed to have multiple names for the
same purpose.  For example, if your machine is www.foo.com and you also
want it to be www.department.foo.com then use a CNAME.  But if your
machine is mail.foo.com and you also want it to be mail.bar.com then
use an A record, because foo.com and bar.com are not the same entity.

Another way to look at it is to use CNAME for aliases to a machine.  For
example, if your organization mandates stupid names for machines like
tor-fde1 and you want the machine to also have a name that people can
remember, then you could also call the machine teddybear and use a CNAME
for that.  Then, if tor-fde1 changes IP addresses, teddybear goes with it.


Re: Another Crazy DNS Question... ;-)

1999-11-04 Thread Art Lemasters
On Thu, Nov 04, 1999 at 01:09:32PM -0500, William T Wilson wrote:
 On Thu, 4 Nov 1999, Bob Nielsen wrote:
 
   Yes, you can point A records from two domains to the same IP address.
  
  You can also use a CNAME record.  I'm not sure when one approach would
  be preferred over the other.
 
 The answer is simple: Use A records for everything and forget about
 CNAMEs. :}
 
 I use a CNAME when a machine is supposed to have multiple names for the
 same purpose.  For example, if your machine is www.foo.com and you also
 want it to be www.department.foo.com then use a CNAME.  But if your
 machine is mail.foo.com and you also want it to be mail.bar.com then
 use an A record, because foo.com and bar.com are not the same entity.

 Does anyone here know how to do this with the most recent sendmail
in potato (8.9.3) to receive mail for both domain.com and machine.domain.com,
etc.?  It does _not_ work to just run sendmailconfig and choose to receive
mail for domains __ FQDNs--at least not on this box.  It will only receive
mail to one or the other.

Art