WHM dns system creates faulty SOA record entry.

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
This has been occurring for, well, just about forever and I have never received any decent response of how to fix this issue.

If you open a new account, or just add a new dns zone, the cpanel system will take the email address that I set up as the main contact email address for the server, and simply remove the @ symbol, replacing this with a dot, then use this as a (faulty) SOA record.

For example, if I enter the following email address as the contact email address for the server, i.e. the one I want to use from which to receive server alerts:

[email protected]

Then the cPanel system will create an SOA record like this:

alert22.mydomain.com

Which will never work because #1, mydomain.com is not even hosted on this same server. And #2, there is no such subdomain (alert22) that has been established for this domain.

Now, I supposed I could set up another email address, that is locally based, then establish a new subdomain for that domain, then forward the email, etc. etc. etc. but sheesh! Why would cPanel design such a system that is faulty in this regard, right-out-of-the-box? I hope I am just missing something easy here, like perhaps some field in WHM where I forget to enter which SOL subdomain.domain.com I want to use.

Anyone?

Thanks much.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
464
438
Finland
cPanel Access Level
Root Administrator
It's not faulty, it's exactly as the mail address in the SOA record is supposed to be.
See here:
Chapter 8 - SOA Record
NOTE: Format is mailbox-name.domain.com, for example, hostmaster.example.com (uses a dot not the more normal @ sign, since @ has other uses in the zone file) but mail is sent to [email protected].
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
That's all fine and dandy as long as one does not use an off-server email address in:

WHM ---> Basic cPanel & WHM Setup ---> * Enter one or more email addresses to contact in case a problem arises with this server.

I guess I should have known somehow that this was supposed to be an email address based on the same server???
 

LDHosting

Well-Known Member
Jan 19, 2008
93
2
58
cPanel Access Level
Root Administrator
The email account doesn't need to be hosted on the same server. What quietFinn says is correct, replacing the @ with a . in the RNAME field in the zone file is the correct way to do it.

If you wanted to use the email "[email protected]" then it would need to be entered as "mydns.gmail.com".

You can see more information about each of the SOA values, including the RNAME value at the link below:

Recommendations for DNS SOA Values — RIPE Network Coordination Centre
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
464
438
Finland
cPanel Access Level
Root Administrator
You can define the mail address WHM uses when you Add a DNS Zone or Create a New Account in the Zone templates:
WHM-> DNS Functions-> Edit Zone templates