ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   MX on a sub-domain ?? (https://www.scoobynet.com/computer-and-technology-related-34/179298-mx-on-a-sub-domain.html)

Denzil_Dog 19 February 2003 01:45 PM

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 :D )


[Edited by Denzil_Dog - 2/19/2003 1:46:59 PM]

Jeff Wiltshire 19 February 2003 05:00 PM

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

P1Fanatic 20 February 2003 01:50 AM

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

Andrewza 20 February 2003 12:09 PM

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]

Andrewza 20 February 2003 12:11 PM

It even works ;)

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

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

dsmith 20 February 2003 05:26 PM

Geek ;)

Andrewza 20 February 2003 10:24 PM

Network designer :p


All times are GMT +1. The time now is 12:16 PM.


© 2024 MH Sub I, LLC dba Internet Brands