DNS Question

Steve Coleman ( (no email) )
Sat, 10 Jan 1998 01:52:31 -0700

If your mail server and web server are on two different machines. How
do you configure your system to allow both http://www.domain.com and
http://domain.com to resolve to your web server?

It's my understanding that domain.com must point to your mail server.
Is this true? If not, how do you configure DNS to resolve MX lookups
properly?

Our DNS DB looks something like this.

domain.com. IN NS ns.domain.com.

domain.com. IN MX mail.domain.com.

@ IN A x.x.x.2
mail IN A x.x.x.2
ns IN A x.x.x.2
www IN A x.x.x.3

Obviously using this configuration http://domain.com resolved to the
mail server and not the web server.

Changing:
@ IN A x.x.x.2

to:

@ IN A x.x.x.3

Allows both http://domain.com and http://www.domain.com to resolve to
the web server. However, mail services died. MX lookups would show
www.domain.com as the host.

What do I need to do?

Thanks,

Steve