View previous topic :: View next topic |
Author |
Message |
jkcunningham l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Thu Aug 05, 2004 3:59 pm Post subject: question about MX records |
|
|
I think I might be confused about exactly what an MX-record is.
Is it possible to set up a webserver and a mail server at different locations with the same domain name? This is in the context of a small business which is paying for web-hosting but wants to take over their own mail servers in house.
Can anyone shed some light on this?
Thanks
-Jeff |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
msalerno Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/174712528041c87d66e1b63.gif)
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Thu Aug 05, 2004 4:03 pm Post subject: |
|
|
Yes, you can host the mail and web on different servers. Basically, when you send an e-mail to foo@bar.com the sending SMTP server looks up the domain bar.com and locates the MX record. So for example, the sending SMTP server would see that the first MX record points to mail.hostingcompany.com, so it would send it to that mail server. If that mail server is down, it will try to send it to the next MX record mail1.hostingcompany.com.
bar.com MX 5 mail.hostingcompany.com
bar.com MX 10 mail1.hostingcompany.com
I hope that this is clear. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Thu Aug 05, 2004 4:10 pm Post subject: |
|
|
Part of your confusion may come from the fact that in the absence of a MX record mail servers will send the mail to the A record be default. So if you have no MX it'll default to whatever domain.com points to.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jkcunningham l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Thu Aug 05, 2004 4:36 pm Post subject: |
|
|
Thanks for the replies.
How do you change the MX record?
-Jeff |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
msalerno Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/174712528041c87d66e1b63.gif)
Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Thu Aug 05, 2004 4:39 pm Post subject: |
|
|
You would find out which dns server hosts the domain and then make the changes. If your domain is hosted on your web hosts DNS server you will have to make the changes through them. Some web hosts have web interfaces that will allow you to make the changes yourself.
# dig domain.com SOA |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jkcunningham l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Thu Aug 05, 2004 5:56 pm Post subject: |
|
|
Thanks. That was exactly what I needed to know.
-Jeff |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|