javaid97 0 Newbie Poster

If you want to transfer Cpanel DNS zone to other server here are steps:

  1. vi /etc/named.conf

Add IPs under acl trusted-servers feild and add "trusted-servers" in allow-transfer.

=============================================================================

include "/etc/rndc.key";

controls {
        inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};
acl trusted-servers{
x.x.x.x; //Other DNS server1
x.x.x.x; //Other DNS server2
};
options {
    /* make named use port 53 for the source of all queries, to allow
         * firewalls to block all ports except 53:
         */

    // query-source    port 53;

    recursion no;

    /* We no longer enable this by default as the dns posion exploit
        has forced many providers to open up their firewalls a bit */

    // Put files that named is allowed to write in the data/ directory:
    directory                "/var/named"; // the default
    pid-file                 "/var/run/named/named.pid";
    dump-file                "data/cache_dump.db";
    statistics-file          "data/named_stats.txt";
   /* memstatistics-file     "data/named_mem_stats.txt"; */
    allow-transfer    { "trusted-servers"; };
  1. Save file
  2. Then service named restart

You've done!
:)