Results 1 to 8 of 8
  1. #1

    How to take copy of dns zone files?

    Hi,

    I need help with another important issue. I have few domain names where I am using dns A records for name server entries. I would like to keep a copy of the dns zone file on my local pc (laptop) to safe guard it. Is there any one who can guide me through the process of downloading copy of zone file to my pc either through ssh or ftp?

    Thanks in advance.
    Dinsol.com Web Hosting Since Year 1999 Open Running Stable
    Social Media Optimization & Marketing Services with World Class Quality
    www.dinsol.com

  2. #2
    Join Date
    Oct 2002
    Location
    /roof/ledge
    Posts
    28,088
    It depends on the hosting platform and installed software, but for something like Cpanel it's usually in /var/named unless it's the newer chroot version (then it's a symlink to another folder). Zone files look like "domain.tld.db", typically.

    Basically just tar the whole lot and download.
    cd /var/named
    tar -cvf zones.tar ./*.db
    Your one stop shop for decentralization

  3. #3
    So sorry forgot to tell that it's WHM/cPanel vps running CentOS 4.

    Thanks! Shall try it and download the tar file.
    Dinsol.com Web Hosting Since Year 1999 Open Running Stable
    Social Media Optimization & Marketing Services with World Class Quality
    www.dinsol.com

  4. #4
    Do a tar as suggested by "bear Claus" i.e.

    cd /var/named/
    tar -zcf zones.tar.gz *.db
    then copy the tar file under any of your account and download it via Ftp OR copy it under the default directory /usr/local/apache/htdocs/

    mv /var/named/zones.tar.gz /usr/local/apache/htdocs/
    and download the tar file via the browser

    | LinuxHostingSupport.net
    | Server Setup | Security | Optimization | Troubleshooting | Server Migration
    | Monthly and Task basis services.
    | MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  5. #5
    Thank you very much. It really helps! Regards
    Dinsol.com Web Hosting Since Year 1999 Open Running Stable
    Social Media Optimization & Marketing Services with World Class Quality
    www.dinsol.com

  6. #6
    Join Date
    Dec 2009
    Posts
    9
    I guess the zone file should be present in the complete backup of the cpanel.

  7. #7
    Join Date
    Jun 2008
    Location
    India
    Posts
    130
    yes zone file will be in backup I believe

  8. #8
    Backups will have the zone file but if you would like to have an easy way of accessing only the dns files, then taking a tar image of the zone files and downloading it would be a better option.

Similar Threads

  1. DNS Zone files?
    By k1unit in forum Domain Names
    Replies: 0
    Last Post: 10-20-2007, 11:30 PM
  2. Lookup DNS zone files
    By OnlineRack in forum Web Hosting
    Replies: 6
    Last Post: 10-13-2006, 06:40 AM
  3. Mass update of dns zone files
    By Skeptical in forum Domain Names
    Replies: 1
    Last Post: 08-28-2003, 07:34 AM
  4. Zone Files (DNS)
    By Darktwist in forum Hosting Security and Technology
    Replies: 8
    Last Post: 06-04-2003, 08:13 PM
  5. DNS Zone files
    By RH4U in forum Dedicated Server
    Replies: 4
    Last Post: 08-16-2002, 02:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •