Create account where DNS records exist
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
-
Hi @kimsondergaard It really sounds like you need to implement DNS clustering. That way when your user updates their zone record on the web server the changes are pushed to the nameservers. The documentation here may be helpful: DNS Cluster - Version 74 Documentation - cPanel Documentation Guide to DNS Cluster Configurations - cPanel Knowledge Base - cPanel Documentation 0 -
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 ? 0 -
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 0 -
Hi @cPanelLauren Ho do i readd, i tried using mv, from temp to existing file, but that did not work ? 0 -
what do you mean it didn't work? What happened specifically? Also you can just add the contents to the newly created zone file as well which might be easier. 0 -
@cPanelLauren i renamed a zone file, created a new account with that name, and renamed it back. But the renamed file did not get read. 0 -
@cPanelLauren Hi Lauren Any updates ? 0 -
HI @kimsondergaard Were you unable to update the Zone file to reflect the new information? 0 -
Hi @cPanelLauren I figured it out.. My way of doing it is following. - SSH to server, vi to zone file, copy records to Notepad.
- delete zone from cpanel
- create new customer, with a specific DNS package
- edit the zone file again, paste all records below SOA and Nameservers, save and exit.
- Verify the zone in DNS editor.
0
Please sign in to leave a comment.
Comments
9 comments