Articles in this section

How to switch DNS server from BIND to MS DNS on Plesk for Windows?

Plesk for Windows DoNotDelete:docref kb: how-to

Applicable to:

  • Plesk for Windows

Question

  • How to switch DNS server from BIND to MS DNS on Plesk for Windows?

Answer

Note: Before attempting the switch, please consider that if you have IP address ranges with CIDR notation (192.168.0.0/24 or similar) for domains configured at Domains > example.com > Hosting & DNS > DNS > Zone Transfers, you may reach the dnscmd.exe Windows utility's regular MAX_PATH limitation, which will prevent the switch from being executed properly. Due to this, you should make sure that only exact IPs that you need and use are added to Domains > example.com > Hosting & DNS > DNS > Zone Transfers before attempting the switch from BIND to MS DNS.

If the advice above is not followed and the switch from BIND to MS DNS has failed already, you should follow the steps here

The switch of the used DNS server from BIND to MS DNS on your Windows server will essentially migrate all DNS records that Plesk is aware of (Plesk stores DNS records in the psa database) from BIND to MS DNS automatically. The steps to initiate this change are available below:

  1. Log into Plesk

  2. Go to Tools & Settings > Updates and install Microsoft DNS Server component if it is not installed.

  3. Go to Tools & Settings > Server Components > DNS Server and select Microsoft DNS Server:

  4. Press Save

    Note: Plesk UI information at Tools & Settings > Server Components might be cached, so in order to see the DNS server change it is required to re-login to Plesk UI.

CLI method to switch from BIND to MSDNS:
  1. Connect to the server via RDP.

  2. Open CMD and run these two commands one by one:

    plesk sbin defpackagemng --set --type=dnsserver --default=msdns

    plesk sbin defpackagemng --update --fix

Note: During those CLI procedures all the DNS records and zones will be left intact.

Note: BIND is already deprecated and will be removed completely since Plesk Obsidian 18.0.70. Please use this section only for internal engineering use.

To switch from MSDNS to BIND:

  1. Connect to the server via RDP.

  2. Open CMD and run these two commands one by one

    plesk sbin defpackagemng --set --type=dnsserver --default=bind

    plesk sbin defpackagemng --update --fix

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.