Portal Home > Knowledgebase > Articles Database > How to take copy of dns zone files?
How to take copy of dns zone files?
Posted by HostingSocial, 12-30-2009, 04:27 PM |
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.
|
Posted by bear, 12-30-2009, 04:39 PM |
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
|
Posted by HostingSocial, 12-30-2009, 04:50 PM |
So sorry forgot to tell that it's WHM/cPanel vps running CentOS 4.
Thanks! Shall try it and download the tar file.
|
Posted by madaboutlinux, 12-31-2009, 05:00 AM |
Do a tar as suggested by "bear Claus" i.e.
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/
and download the tar file via the browser
|
Posted by HostingSocial, 12-31-2009, 01:06 PM |
Thank you very much. It really helps! Regards
|
Posted by linux_crazy, 12-31-2009, 01:13 PM |
I guess the zone file should be present in the complete backup of the cpanel.
|
Posted by ianeeshps, 12-31-2009, 04:13 PM |
yes zone file will be in backup I believe
|
Posted by laswatech, 01-01-2010, 02:25 AM |
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.
|
Add to Favourites Print this Article
Also Read
MySQL Server (Views: 667)