LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-21-2001, 10:53 PM   #1
minor
Member
 
Registered: May 2001
Location: HK
Distribution: Mandrake
Posts: 68

Rep: Reputation: 15
MX Record


MX record
I set the MX record like this,

domain.com IN MX 10 mail01.domain.com
IN MX 20 mail02.domain.com

does this record correct? If I would like to the first reply mail server is mail01.domain.com and mail02.domain.com is secord. And if right, what's the reply IP when I ping domain.com if the mail01.domain.com is down? Is it reply the mail01.domain.com IP or mail02.domain.com IP? Thanks!
 
Old 07-22-2001, 07:57 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Re: MX Record

Quote:
Originally posted by minor
MX record
I set the MX record like this,

domain.com IN MX 10 mail01.domain.com
IN MX 20 mail02.domain.com
I'd expect the above to look more like
Code:
domain.com. IN MX 10 mail01.domain.com.
domain.com. IN MX 20 mail02.domain.com.
note the trailing full stops if you are going to use the full machine name. If you forget this then Bind will append your domain again so you'll end up with MX records that point to places like mail02.domain.com.domain.com which tend to not work as you want!

Quote:
Originally posted by minor
And if right, what's the reply IP when I ping domain.com if the mail01.domain.com is down? Is it reply the mail01.domain.com IP or mail02.domain.com IP? Thanks!
You can't just ping domain.com - its a domain, hence doesn't really exist! If you were to lookup the MX records then you would get both machines returned, and it you were to ping them only the one what was up would respond (clearly!), redundant mail relays won't automatically switch your IP addresses around for you etc, when one server fails. The normal thing that happens is that mail01 would be used as the mail relay, if this fails to respone to an incomming SMTP transfer then mail02 would be used. Mail02 will queue the mail until mail01 comes back up, at which time all mail will be delievered back to mail01 from mail02 and become available for your users.

HTH

Jamie...
 
Old 07-23-2001, 12:13 AM   #3
minor
Member
 
Registered: May 2001
Location: HK
Distribution: Mandrake
Posts: 68

Original Poster
Rep: Reputation: 15
How about this record

how about the this record, am I setting correct

$ORIGIN domain.com.
@ IN SOA dns01.dns.com. root.dns01.dns.com.
(
2001072301 ; serial number
10800 ; refresh
1800 ; retry
9600 ; expire
4800 ) ; minimum

IN NS dns01.dns.com.
IN A 192.168.1.48

mail01 IN A 192.168.1.48
mail02 IN A 192.168.1.62

domain.com IN MX 10 mail01.domain.com.
domain.com IN NX 20 mail02.domain.com.

according this record, I try to lookup and just reply one address. Am I set something wrong? I am sorry to make you trouble again!
 
Old 07-23-2001, 06:06 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
I'd expect your record to look more like (I'm assuming you're using domain.com - you appear to have both dns.com and domain.com used below which is pretty wrong)
Code:
domain.com.              IN SOA dns01.domain.com.     root.dns01.dns.com.
(
2001072301      ; serial number
10800           ; refresh
1800            ; retry
9600            ; expire
4800 )          ; minimum

domain.com.    IN NS   dns01.dns.com.

mail01         IN A     192.168.1.48
mail02         IN A     192.168.1.62
domain.com.     IN MX   10      mail01.domain.com.
domain.com.     IN MX   20      mail02.domain.com.
The above will only give you lookups for names to address, you need another file to do reverse lookups (incase you didn't realise) so your name server chang change IP addresses back to names. Give it ago and see what happens.

HTH

Jamie...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to record mic-in with SoundBlaster Live! while able to record other sources max76230 Linux - Newbie 2 03-14-2005 04:31 AM
Can I record off my TV? arctic123 Linux - Software 3 03-09-2005 09:52 PM
Realtime record spotslayer Linux - Software 0 10-16-2004 09:45 AM
record tv tochkopf Linux - Software 2 03-16-2004 01:00 PM
what goes in the mx record? ziggie216 Linux - General 1 11-14-2003 03:50 PM


All times are GMT -5. The time now is 02:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration