Results 1 to 8 of 8
-
12-30-2009, 04:27 PM #1Web Hosting Master
- Join Date
- Oct 2002
- Posts
- 724
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
-
12-30-2009, 04:39 PM #2
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 ./*.dbYour one stop shop for decentralization
-
12-30-2009, 04:50 PM #3Web Hosting Master
- Join Date
- Oct 2002
- Posts
- 724
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
-
12-31-2009, 05:00 AM #4Web Hosting Master
- Join Date
- Jul 2009
- Posts
- 1,568
Do a tar as suggested by "bear Claus" i.e.
cd /var/named/
tar -zcf zones.tar.gz *.db
mv /var/named/zones.tar.gz /usr/local/apache/htdocs/
| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux
-
12-31-2009, 01:06 PM #5Web Hosting Master
- Join Date
- Oct 2002
- Posts
- 724
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
-
12-31-2009, 01:13 PM #6Temporarily Suspended
- Join Date
- Dec 2009
- Posts
- 9
I guess the zone file should be present in the complete backup of the cpanel.
-
12-31-2009, 04:13 PM #7WHT Addict
- Join Date
- Jun 2008
- Location
- India
- Posts
- 130
yes zone file will be in backup I believe
-
01-01-2010, 02:25 AM #8Disabled
- Join Date
- Dec 2009
- Posts
- 162
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
-
DNS Zone files?
By k1unit in forum Domain NamesReplies: 0Last Post: 10-20-2007, 11:30 PM -
Lookup DNS zone files
By OnlineRack in forum Web HostingReplies: 6Last Post: 10-13-2006, 06:40 AM -
Mass update of dns zone files
By Skeptical in forum Domain NamesReplies: 1Last Post: 08-28-2003, 07:34 AM -
Zone Files (DNS)
By Darktwist in forum Hosting Security and TechnologyReplies: 8Last Post: 06-04-2003, 08:13 PM -
DNS Zone files
By RH4U in forum Dedicated ServerReplies: 4Last Post: 08-16-2002, 02:27 AM