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 19 February 2003, 01:45 PM
  #1  
Denzil_Dog
Scooby Regular
Thread Starter
 
Denzil_Dog's Avatar
 
Join Date: Jun 2002
Posts: 275
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 19 February 2003, 05:00 PM
  #2  
Jeff Wiltshire
Scooby Regular
 
Jeff Wiltshire's Avatar
 
Join Date: Nov 2000
Location: 412 Wheel HP Audi RS4
Posts: 2,021
Likes: 0
Received 1 Like on 1 Post
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
Old 20 February 2003, 01:50 AM
  #3  
P1Fanatic
Scooby Regular
 
P1Fanatic's Avatar
 
Join Date: Dec 2001
Location: Arborfield, Berkshire
Posts: 12,387
Likes: 0
Received 0 Likes on 0 Posts
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
Old 20 February 2003, 12:09 PM
  #4  
Andrewza
Scooby Regular
 
Andrewza's Avatar
 
Join Date: Jan 2002
Posts: 667
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 20 February 2003, 12:11 PM
  #5  
Andrewza
Scooby Regular
 
Andrewza's Avatar
 
Join Date: Jan 2002
Posts: 667
Likes: 0
Received 0 Likes on 0 Posts
Post

It even works

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

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

Geek
Old 20 February 2003, 10:24 PM
  #7  
Andrewza
Scooby Regular
 
Andrewza's Avatar
 
Join Date: Jan 2002
Posts: 667
Likes: 0
Received 0 Likes on 0 Posts
Wink

Network designer
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Boro
Computer & Technology Related
9
06 October 2003 01:00 PM



Quick Reply: MX on a sub-domain ??



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