Results 1 to 11 of 11
Thread: ***** HELP ***** DNS Zoone
-
11-01-2009, 03:00 PM #1Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 99
***** HELP ***** DNS Zoone
Hello ,
We have changed our Cpanel server last month , and then restored all the Backups using cpanel backup system
i have just found something in the " EDIT DNS Zoone "
The FTP ip of some websites has not been updated to the new server ip address ( around 10% of websites and specially our resellers user )
all dns zoone ( mail / cpanel /www / ....... ) has been updated without problem except "FTP" Dns zoone
Please Help me in this regard
Thank You
-
11-01-2009, 04:46 PM #2Web Hosting Master
- Join Date
- Jul 2009
- Posts
- 1,568
Hi,
It may not be possible to trace out the exact problem without looking at the server but you can replace all the old IPs with the new ones using the replace command:
cd /var/named/
replace oldip newip -- *.db
service named restart
The replace command will search the OLDIP in all the DNS zone files and will replace it with the NEWIP address. You need to restart the named service for the changes to take effect.| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux
-
11-01-2009, 05:35 PM #3Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 99
-
11-02-2009, 08:24 AM #4Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 99
Still waiting, Please help me in thing regard
-
11-02-2009, 08:58 AM #5Web Hosting Master
- Join Date
- Apr 2003
- Location
- NC
- Posts
- 3,093
He gave you the command.
cd /var/named/
replace 1.1.1.1 2.2.2.2-- *.db
service named restart
As with any scripted command like this not a bad idea to do a backup of your named dir before running it, just incase you type something wrong.John W, CISSP, C|EH
MS Information Security and Assurance
ITEagleEye.com - Server Administration and Security
Yawig.com - Managed VPS and Dedicated Servers with VIP Service
-
11-02-2009, 10:04 AM #6Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 99
-
11-02-2009, 10:11 AM #7Web Hosting Master
- Join Date
- Apr 2003
- Location
- NC
- Posts
- 3,093
That is going to be the best option to do it quickly.
John W, CISSP, C|EH
MS Information Security and Assurance
ITEagleEye.com - Server Administration and Security
Yawig.com - Managed VPS and Dedicated Servers with VIP Service
-
11-02-2009, 10:42 AM #8Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 99
-
11-02-2009, 10:43 AM #9Web Hosting Master
- Join Date
- Apr 2003
- Location
- NC
- Posts
- 3,093
John W, CISSP, C|EH
MS Information Security and Assurance
ITEagleEye.com - Server Administration and Security
Yawig.com - Managed VPS and Dedicated Servers with VIP Service
-
11-03-2009, 06:23 PM #10Newbie
- Join Date
- Oct 2009
- Location
- India
- Posts
- 23
You can take a backup of named using,
cp -r /var/named/ /var/named.back
-
11-04-2009, 07:36 AM #11Disabled
- Join Date
- Apr 2009
- Posts
- 256
The simplest way is to replace the IP for FTP in the zone file for the problematic domains as mentioned above.
As for the backup, yes, copying the 'named' directory should be good enough.
Code:cp -prf /var/named /var/named.bkp