Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
question about MX records
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Thu Aug 05, 2004 3:59 pm    Post subject: question about MX records Reply with quote

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
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Thu Aug 05, 2004 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Aug 05, 2004 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Thu Aug 05, 2004 4:36 pm    Post subject: Reply with quote

Thanks for the replies.
How do you change the MX record?

-Jeff
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Thu Aug 05, 2004 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Thu Aug 05, 2004 5:56 pm    Post subject: Reply with quote

Thanks. That was exactly what I needed to know.

-Jeff
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum