Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

MX on a sub-domain ??

Thread Tools
 
Search this Thread
 
Old Feb 19, 2003 | 01:45 PM
  #1  
Denzil_Dog's Avatar
Denzil_Dog
Thread Starter
Scooby Regular
 
Joined: Jun 2002
Posts: 275
Likes: 0
Post

is it possible to set MX for a sub-domain to be different from the domain itself
ie a domain called mydomain.com might have the following mx

@ IN MX 10 mail.mydomain.com.
@ IN MX 20 spare.mydomain.com.

is it possible to change mx for a subdomain using $ORIGIN ? i know you can change www from this ie

$ORIGIN subdomain.mydomain.com.
www IN A 123.123.123.123
(this would set all www traffic to the specified IP)

but i have tried adding MX in the $ORIGIN but it didnt work

return mail error came back as "ERROR 550 Host unknown (Name server: subdomain.mydomain.com: host not found)


note (all domain names renamed to protect the innocent )


[Edited by Denzil_Dog - 2/19/2003 1:46:59 PM]
Reply
Old Feb 19, 2003 | 05:00 PM
  #2  
Jeff Wiltshire's Avatar
Jeff Wiltshire
Scooby Regular
 
Joined: Nov 2000
Posts: 2,021
Likes: 1
From: 412 Wheel HP Audi RS4
Post

It is possible to do as you say with the $ORGIN control statement.

Silly question.....is there an A record for the Mailservers in the correct domain ?


Jeff
Reply
Old Feb 20, 2003 | 01:50 AM
  #3  
P1Fanatic's Avatar
P1Fanatic
Scooby Regular
 
Joined: Dec 2001
Posts: 12,387
Likes: 0
From: Arborfield, Berkshire
Post

Why not:-

mydomain.com. MX 10 mail.mydomain.com.
MX 20 spare.mydomain.com.

subdomain MX 10 mail2.mydomain.com.
MX 20 spare2.mydomain.com.

As Jeff says, you need a valid A record within the zone for each MX record used unless you are using MX records from another domain e.g. mail.otherdomain.com

Simon
Reply
Old Feb 20, 2003 | 12:09 PM
  #4  
Andrewza's Avatar
Andrewza
Scooby Regular
 
Joined: Jan 2002
Posts: 667
Likes: 0
Post

This will probably look awful...

$ORIGIN dev.
@ IN SOA ns0.dev. root.dev. (
2003022001 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS ns0
IN NS ns1
IN MX 5 excalibur
$ORIGIN legalex.dev.
@ IN MX 5 excalibur.dev.


urgh...

[Edited by Andrewza - 2/20/2003 12:10:03 PM]
Reply
Old Feb 20, 2003 | 12:11 PM
  #5  
Andrewza's Avatar
Andrewza
Scooby Regular
 
Joined: Jan 2002
Posts: 667
Likes: 0
Post

It even works

;; ANSWER SECTION:
dev. 1H IN MX 5 excalibur.dev.

;; ANSWER SECTION:
legalex.dev. 1H IN MX 5 excalibur.dev.
Reply
Old Feb 20, 2003 | 05:26 PM
  #6  
dsmith's Avatar
dsmith
Scooby Regular
 
Joined: Mar 1999
Posts: 4,518
Likes: 0
Post

Geek
Reply
Old Feb 20, 2003 | 10:24 PM
  #7  
Andrewza's Avatar
Andrewza
Scooby Regular
 
Joined: Jan 2002
Posts: 667
Likes: 0
Wink

Network designer
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Boro
Computer & Technology Related
9
Oct 6, 2003 01:00 PM




All times are GMT +1. The time now is 09:06 AM.