Results 1 to 11 of 11
  1. #1
    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

  2. #2
    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

  3. #3
    Join Date
    Aug 2009
    Posts
    99
    Quote Originally Posted by madaboutlinux View Post
    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.
    Hello ,

    would you please send me the complete command ?

    For Example ( Old ip : 1.1.1.1 ) ( New ip : 2.2.2.2 )

    Thank you

  4. #4
    Join Date
    Aug 2009
    Posts
    99
    Still waiting, Please help me in thing regard

  5. #5
    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

  6. #6
    Join Date
    Aug 2009
    Posts
    99
    Quote Originally Posted by eth00 View Post
    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.
    is there any better idea ? i mean any option in WHM to solve the problem ?

  7. #7
    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

  8. #8
    Join Date
    Aug 2009
    Posts
    99
    Quote Originally Posted by eth00 View Post
    That is going to be the best option to do it quickly.
    You told that "it`s better to get backup before running the command"

    Please let me know how to get backup , is it sufficient if i copy the directory in another location ?

  9. #9
    Join Date
    Apr 2003
    Location
    NC
    Posts
    3,093
    Quote Originally Posted by jestin_virtual View Post
    You told that "it`s better to get backup before running the command"

    Please let me know how to get backup , is it sufficient if i copy the directory in another location ?
    That is perfect.
    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

  10. #10
    Join Date
    Oct 2009
    Location
    India
    Posts
    23
    You can take a backup of named using,

    cp -r /var/named/ /var/named.back

  11. #11
    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

Posting Permissions

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