Replacing NS2 server

Discussion in 'Installation/Configuration' started by Jim Locke, Nov 1, 2025 at 5:55 PM.

  1. Jim Locke

    Jim Locke New Member

    Multiserver etc, all up todate.

    I'm finally getting around to replacing my ns2 server. I just want to check on the proper procedure for removal
    Do I just go to System and delete the NS2 then install ispconfig on new ns2 (keeping same name & ip)?
    Curious about things like ns1 notifies and records if I'll run into any issues. Resync when new one is up
    Seems like the proper way to do it before putting into production.

    Jim..
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Two questions about your setup:
    • Do you use BIND as DNS server?
    • Is NS2 replicated by using mirroring in ISPConfig (is mirror of setting in System > server services), or do you use BIND mirroring (DNS slave zones in BIND)?
     
  3. Jim Locke

    Jim Locke New Member

    Yes and not mirror in server services so I suppose it is BIND mirroring (default as per the How to perfect Multiserver)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig identifies servers by their ID, not the server name or hostname. So if you want to be able to use Tools > Resync to write the DNS config again, you must ensure that the new server uses the same ID. You can either do this by using ISPCopy to copy over the installation from old to new server (ISPConfig ia a part of the Migration Toolkit https://www.ispconfig.org/add-ons/ispconfig-migration-tool/). Or, in case you install a new server (which will create a new server ID) you must update ID's in the database manually. Either by changing the ID of the dns_slave records to the ID of the new server, or by trying to alter the ID of your new server to the ID of the old one on the new server.
     
  5. Jim Locke

    Jim Locke New Member

    Okay So I had a look at phpmyadmin:
    Table: Server, NS2 shows Server_ID = 4
    Table: DnsSlave, no records
    So had to have a look around some more, The only way I understand it now is when I create a domain and put ns2's ip address in the Notify section that is how it gets its records and not as any kind of slave. With this new 'lightbulb' moment I should be able to go to System Tab and delete ns2, install a fresh ns2 as per the same 'how to multiserver' (keeping same name & ip), then phpmyadmin and manually set server_id to 4 of new ns2 server, then just tools->resync ->DNS Records
    I am now wondering if all the issues I have with old ns2 not working as per was somehow related to the DnsSlave records being blank.
    I'm not trying to be a nusance on this, just trying to be thorough with outcome working.

    TIA
    Jim..
     

Share This Page