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
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,814
541
263
Houston
cPanel Access Level
DataCenter Provider
Hi @Jurrie Hinderyckx


You can just leave it blank where it requests the @ symbol in most cases.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,814
541
263
Houston
cPanel Access Level
DataCenter Provider
@CoffeeDrip

You can't use the @ symbol at all in that field. What record are you editing? Can you provide a screenshot?
 

CoffeeDrip

Registered
Aug 21, 2019
3
0
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

Forums Analyst II
Staff member
Nov 14, 2017
6,814
541
263
Houston
cPanel Access Level
DataCenter Provider
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

Forums Analyst II
Staff member
Nov 14, 2017
6,814
541
263
Houston
cPanel Access Level
DataCenter Provider
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.