MX record for subdomains

KoSHaK

New member
Joined
Jun 18, 2009
Messages
3
I can't add an MX record via web-interface...
Example:
I have domain test.net and have about 200 subdomains
I want MX record:
domain.test.net. IN MX 10 mail.another.domain.net
I can add only:
test.net IN MX 10 mail.another.domain.net

I should make 200 users only to add MX record?
 
Subdomains made as subdomains through the DirectAdmin interface cannot manage mail at all. You can add mx records to any zone-file manually through the shell, using ssh access. If you don't have root access to the server, then you'll need the help of your hosting company.

When changing zone fles manually don't forget to increment the serial number.

Jeff
 
Why I can't change domain at MX record with web-interface?

It's a shell:
Code:
[root@da /etc/namedb]# cat /etc/namedb/odessa.net.db | grep robobat
robobat 14400   IN      MX      10      relay.robobat.odessa.net.
robobat 14400   IN      MX      20      relay1
robobat 14400   IN      A       83.143.235.35
www.robobat     14400   IN      CNAME   robobat
relay.robobat   14400   IN      A       83.143.235.35

It's a web-interface:

Code:
robobat	A	83.143.235.35
relay.robobat	A	83.143.235.35
www.robobat	CNAME	robobat
relay.express.odessa.net.	MX	10	
relay.robobat.odessa.net.	MX	10

If I were a user, I couldn't change MX record with console help because
[root@da /etc/namedb]# ls -l | grep odessa.net.db
-rw-r--r-- 1 bind bind 18725 Jun 18 16:01 odessa.net.db
[root@da /etc/namedb]#

Why users can't manage it domains?
Maybe you could make some patch?

And else...
If I will edit MX record with shell and then edit MX record with web-inetrface, any MX record will be:
Code:
[root@da /etc/namedb]# cat /etc/namedb/odessa.net.db | grep MX
odessa.net.     14400   IN      MX      20      smth.domain.
odessa.net.     14400   IN      MX      30      smth.domain.

P.S.
Sorry for my bad english
 
Last edited:
When you add, edit, or delete an MX record using the DirectAdmin control you may be confused, because you're entering information on the left side which will end up on the right side in the actual zone file.

The left side in the domain file will always be the base domain (without the www) being managed by domain name, and the right side will be the mail server you enter using the control panel.

For example, if your domain name is example.net, and the mailserver is mail.example.com, then in DirectAdmin simply add mail.example.com. (including that final dot character), and then the cost factor number. Don't forget, servers attempting to send email to your domain will try the lowest-cost mailservers first, and will send the email to the first mailserver which accepts it, without trying the higher-cost mailservers.

Jeff
 
Ok... Let's back to the start...
User have domain example.net
He has 100 subdomains 0.example.net-99.example.net
He has 1 MX record:
example.net. IN MX 10 mail.example.net

He want 100 MX records:
0.example.net. IN MX 10 mail.example.net
1.example.net. IN MX 10 mail.other.example.net
2.example.net. IN MX 10 mail.domain.com
...
99.example.net. IN MX 10 mail.etc.com

what does he need to do?

P.S.
DNS Administrator(web) can do only:

example.net. IN MX 10 mail.example.net
example.net. IN MX 10 mail.other.example.net
example.net. IN MX 10 mail.domain.com
...
example.net. IN MX 10 mail.etc.com
 
DirectAdmin expects subdomains to not handle email, but only websites, so the only way to do this through DirectAdmin is to create each subdomain as a separate domain.

However, if the user doesn't want to do that, he has several options:

If he has root shell access he modifies the zone file manually.

If not, he has his host make the changes to his zone file for him.

Or he hosts his DNS elsewhere, someplace that gives him the flexibility to set up MX records for subdomains (if anyone offers that), or using multiple complete domains.

Jeff
 
Back
Top