Problem setting up TXT record in DNS

Jurrie Hinderyckx

Registered
Jul 9, 2019
1
0
1
Belgium
cPanel Access Level
Root Administrator
Hello ,

i'm setting up my DNS records for Microsoft Exchange mail use and i'm
getting an issue with setting up a TXT record

according to MS i have to add an @ txt record, but whenever i use @ whm tells me

Unable to parse zone: Contains a malformed DNS label: @

when i use domain.com. MS tells me it can't find a record

I don't know how to fix this

all other entries for setting up the exchange work just fine

regards

Jurrie
 

CoffeeDrip

Registered
Aug 21, 2019
4
1
1
USA
cPanel Access Level
Root Administrator
@cPanelLauren

I'm trying to set up a remote mail exchange. I need to add TXT verification record, then SPF and MX records. They ask that the "@" symbol is used in the domain field, or to leave it blank "may" work. In WHM when I'm adding new lines to the DNS zone, the "@" symbol is rejected and can't be parsed. And when I leave it blank, it inserts a domain value of "_cpanel-dcv-test-record".

I've looked into 3 remote mail exchange services including Microsoft and they all ask for the "@" symbol to be used in the domain name field. So, how can I accomplish this in cpanel? I already tried to manually edit the DNS record, but when I flush and reload it removes the "@" symbol.

Here's a screenshot of the form I'm filling out. Thank you!

DNS-Screenshot.jpg
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
As I've said several times, the @ symbol won't be recognized. The thing that I don't understand which is happening to you is that the _cpanel-dcv-test-record being added and that's what I was hoping to get some insight on here. You should also be able to enter the exact domain name in the host field with a period after it.



txtrecordentry.png

I did this on my test server and can confirm that this works without issue:

Code:
# dig txt domain.tld +short
"v=spf1 ip4:myipaddress include:hostingspf.domain.com include:spf.domain.tld +a +mx ~all"
"MS=msXXXXXXXX"
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
That is an issue but none the less, as exampled in my last message you should still be able to use the domain name with a period at the end to enter the txt record. All the @ symbol they're requesting you add signifies in this instance is that the record is for domain.tld not a subdomain of domain.tld and as such when a provider requests it's added you'd just normally leave the field blank or enter the full domain name on cPanel/WHM

I'll also inquire with our development as to why the issue you're encountering is occurring, if I open a case I'll update this thread as well.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
No TXT record requires an @ symbol, it's a placeholder used to reference the domain. If the TXT record is for yourdomain.tld you would simply enter in "yourdomain.tld." (without the quotes but with the period) as I indicated in this thread if you'll read my previous responses.
 

htguru

Registered
Nov 21, 2017
1
0
51
Florida
cPanel Access Level
Root Administrator
I believe @cPanelLauren did indeed create a solution to the problem but I wanted to post evidence that this is indeed what Microsoft Azure is asking for.

SNAG-0493.jpg

Anyway the recommended workaround seems to be working but clearly cPanel and Microsoft Azure are not thinking alike.