Skip to main content

Migration/conversion from BIND9 Mysql to BIND9 Zone files

Comments

6 comments

  • cPanelMichael
    Hello @kimsondergaard, We don't provide any tools to automate the conversion of those zone files. How many zone files do you need to convert? If it's just a few, the easiest approach is to simply manually create the zone files through cPanel & WHM and then use WHM >> Edit DNS Zone to add in the custom records. Thank you.
    0
  • kimsondergaard
    Okay i found a way to export our DNS records, and no i can't do this manually. We have over 30.000 records in the DNS database. There is 2 way's i am considering, 1. php / mysql, coding my way out of it, getting the information with Db connection, and while loops. 2. using DIG, to get the DNS record, editing the result, and writing to a file, and then move it to the correct folder.
    0
  • kimsondergaard
    @cPanelMichael Where do cPanel bind, store httpr/web redirects ? I have almost solved the first part of the DNs migration, but i am missing the HTTPR. In our present solution, this is stored in a seperate mysql table, and looks lige this "host:www.domain.org URL:www.otherdomain.org"
    0
  • cPanelMichael
    Hello @kimsondergaard, Can you provide a link to documentation on that function? If I understand correctly, I believe you'd need to use a CNAME entry. EX: www 14400 IN CNAME domain.tld.
    Thank you.
    0
  • kimsondergaard
    Hi @cPanelMichael I figured it out, we had another server that made the redirect. Are cPanel able to handle creating a new user, to a domain which is already in the DNS ? I tried, but it says i have to delete the dns record, to create the new user, with the existing domain. There must be a workaround ?
    0
  • cPanelMichael
    Are cPanel able to handle creating a new user, to a domain which is already in the DNS ? I tried, but it says i have to delete the dns record, to create the new user, with the existing domain.

    Hello, You can't skip the zone creation when creating an account. You'd need to backup the DNS zone, delete it, create the account, and then replace the contents of the zone with the contents that were backed up. Thank you.
    0

Please sign in to leave a comment.