Reseller cannot add domain that has their nameservers assigned

Operating System & Version
Centos 7.8 (OpenVZ)
cPanel & WHM Version
88.0.13

b.dokimakis

Registered
Jul 23, 2020
1
0
1
Athens, Freece
cPanel Access Level
Root Administrator
Hello all.

I came across the following problem today: A reseller of ours tried to add an alias domain and the system was whining about the action not being allowed as the nameservers were not pointing at our server. This reseller has his own set of nameservers (2 hostnames under his domain) that point to a secondary IP on our server. I had to add this secondary IP in the Remote Service IPs configuration, in order to be able to add the alias domain.

Based on the above, I have concluded that the check for allowing/denying domain additions only takes the root account's nameservers into consideration. So, given that I can't think of a reason it shouldn't also consider all the rest of the nameservers (per case, of course, to avoid a user/reseller adding a domain they don't own), I think this should be changed/fixed.

What say you?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hello,

Before I'm ready to say this is a bug, I have a few questions.

  • What is set for this reseller in WHM>>Resellers>>Edit Reseller Nameservers and Privileges -> Nameservers
  • Do the nameservers the reseller is using ACTUALLY resolve to the server? I.e., when you run the following from outside the server do you get the IP address you were expecting?
    Code:
    dig a ns1.domain.tld +short
  • I attempted to replicate this but was unable to. The environment I used was as follows: On a cPanel & WHM v88 server where the Tweak Setting Allow Remote Domains is disabled, I created an alias on a reseller owned account where the reseller had their own nameservers. Am I missing something in regard to replicate this?