Every DNS zone must contain at least one “NS” record.

HOXTIN

Member
Jul 3, 2019
9
1
3
Chile
cPanel Access Level
Root Administrator
I've been using whm and cpanel for a while (although I am not an expert).

I need to configure new TXT or CNAME records for Google Workspace and, with a new cPanel account it is always showing an error preventing the creation.

Using the account's cPanel I try to create those records and only get a "Every DNS zone must contain at least one “NS” record" error message.

If I try to do the same using the WHM, I get a "API failure: (XID ctxeg2) Every DNS zone must contain at least one “NS” record" error message.

When comparing the records via WHM, I see the new account does not have the NS records as an old account.

The old accounts shows:
domain.com NS 1.hostindns.com
domain.com NS 2.hostindns.com

So, I try to repeat the same config for the new account:
newdomain.com. NS 1.hostindns.com
newdomain.com. NS 2.hostindns.com

And, every attempt ends with the same "Every DNS zone must contain at least one “NS” record" cPanel error or "API failure: (XID ctxeg2) Every DNS zone must contain at least one “NS” record" WHM error.

There must be something else going on but I do not now how to address this issue.

I'll appreciate all the help you can give.

Thanks a lot

aB
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,651
2,636
363
cPanel Access Level
Root Administrator
Hey there! Is it possible the entries are commented out and look something like this?

Code:
; domain.com.        86400   IN      NS      ns1.domain.net. ; Previous value removed by cPanel transfer auto-merge on 20201001050554 GMT
Notice the semi-colon at the front of the line.

If they do look like this, they wouldn't be active on the system.
 

HOXTIN

Member
Jul 3, 2019
9
1
3
Chile
cPanel Access Level
Root Administrator
Where can I see it like that... where can I find the code string you show me here?


Hey there! Is it possible the entries are commented out and look something like this?

Code:
; domain.com.        86400   IN      NS      ns1.domain.net. ; Previous value removed by cPanel transfer auto-merge on 20201001050554 GMT
Notice the semi-colon at the front of the line.

If they do look like this, they wouldn't be active on the system.
 
Nov 20, 2017
8
0
51
Bangladesh
cPanel Access Level
Root Administrator
Here is a screenshot of the dns records I can find in the Zone Editor.

As you can see, there are no NS records and the error when trying to create the record.
I saw your attachment well. Everything is fine. Still, there may be some errors which cannot be marked by looking at the screenshots. You can reconfigure by resetting DNS once. Click the action button then reset DNS.
 

HOXTIN

Member
Jul 3, 2019
9
1
3
Chile
cPanel Access Level
Root Administrator
Hi,

I did it, I reset the DNS but the problem remains

After reseting, all records appeared just like they were but I still cannot create a NS, TXT o CNMAE record. Same Errors happen

When trying to create a NS: API failure: (XID pq7akq) Every DNS zone must contain at least one “NS” record.
When trying to create a TXT or CNAME: Every DNS zone must contain at least one “NS” record.

Something else I might need to do to fix this issue?

Thanks

I saw your attachment well. Everything is fine. Still, there may be some errors which cannot be marked by looking at the screenshots. You can reconfigure by resetting DNS once. Click the action button then reset DNS.
 
Nov 20, 2017
8
0
51
Bangladesh
cPanel Access Level
Root Administrator
Hi,

I did it, I reset the DNS but the problem remains

After reseting, all records appeared just like they were but I still cannot create a NS, TXT o CNMAE record. Same Errors happen

When trying to create a NS: API failure: (XID pq7akq) Every DNS zone must contain at least one “NS” record.
When trying to create a TXT or CNAME: Every DNS zone must contain at least one “NS” record.

Something else I might need to do to fix this issue?

Thanks
>>> When we encounter such a problem, we do the following Four things <<<
First reset DNS and then try
Second, Take a look at the Google setting with your kind eyes DNS basics - Google Workspace Admin Help
Third, you try to upgrade/reinstall cPanel from the terminal by /scripts/upcp --force
Fourth, contact with the data center

And I hope your problem is solved.