Create account where DNS records exist

Jun 5, 2018
20
1
3
Vejle
cPanel Access Level
DataCenter Provider
Hi All

I have migrated our old BIND DNS server, to cPanel with DNSonly servers as nameservers.
We have it all up and running, with several zone files.

The question is now, i have these DNS records / Zone files.
How can i create a account, for an existing DNS record ?

Like this example:

i have domain.com in my DNS server, without cPanel account, just a zone file, that is served from our NS1....
Now the customer that owns domain.com, wants to login, to change DNS records.
i then want to create a login to the customer, i thought it would just be

  • create backup/cp of zone file domain.com.db_bak
  • create new user and so on, owerwriting existing zone file.
  • rename domain.com.db_bak to domain.com.db
But that does not seem to work, is there anything else to do, or is there a nicer way to create an account for a existing dns record ?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,262
313
Houston
Jun 5, 2018
20
1
3
Vejle
cPanel Access Level
DataCenter Provider
Hi @cPanelLauren

I allready have a Cluster, my problem is that we have imported alot of zones from our old name servers.
And they are served fine, but does not have any account attached, so we can only change in the DNS using DNS editor.

But would like it to be able to customers to change in their DNS, even though they have no website on the cPanel server.

So how can i create a new user, for an domain that exist in DNS ?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,262
313
Houston
Hi @kimsondergaard

I see, in this case the only way to do this would be to mv the DNS zone file or rename it temporarily, create the account then readd the zone file/or add the contents of it to the existing one
 
Jun 5, 2018
20
1
3
Vejle
cPanel Access Level
DataCenter Provider
Hi @cPanelLauren

I figured it out..
My way of doing it is following.

  1. SSH to server, vi to zone file, copy records to Notepad.
  2. delete zone from cpanel
  3. create new customer, with a specific DNS package
  4. edit the zone file again, paste all records below SOA and Nameservers, save and exit.
  5. Verify the zone in DNS editor.
That's the way i made it, and it seems to work.

Could you maybe add it to a wish list, to be able to create a new user, that allready has a zonefile, and then just adopting it to the user when creating.
Also make it possible to add an existing zone, to a existing user. ?

:)
 
  • Like
Reactions: cPanelLauren