Overview
This article provides a step-by-step guide on how to use a single set of name servers for all domains in Plesk. This configuration streamlines DNS management and ensures consistency across all hosted domains.
Pre-requirements
- Access to a Plesk server with administrative privileges.
- Basic understanding of DNS concepts, especially name servers (NS records).
- Familiarity with using the command line interface (CLI) for Linux.
Steps to Configure Unified Name Servers
- Log into Plesk:
Access your Plesk control panel by entering your credentials.
- Navigate to DNS Settings:
Go to Tools & Settings -> DNS Settings.
- Edit NS Record:
Click on a DNS record with Record Type set to
NS
.In the Name Server field, specify your desired name server (e.g.,
ns1.example.com
) and click OK. - Apply Changes to New Domains:
The new NS record(s) will now be applied to all newly created domains.
- Apply Changes to Existing Domains:
To apply the changes to all existing domains, click on Apply DNS Template Changes.
Note: This option is available on Plesk for Linux only.
Linux CLI Commands for Unified Name Servers
- Connect to the Server:
Use SSH to connect to your server:
ssh user@your-server-ip
- Set Unified Name Servers via Command Line:
Run the following command to set the name server for all domains:
plesk bin dns -a example.com -ns ns1.example.com
- Apply DNS Template Changes:
To apply the DNS template changes across all existing domains, use:
plesk bin dns -u example.com
Gotchas to Avoid
- Verify DNS Records: Ensure that the correct name servers are entered to avoid misrouting domain traffic.
- Propagation Time: Be aware that changes may take time to propagate across DNS servers globally.
- Linux Limitation: Remember that the Apply DNS Template Changes feature is available only on Plesk for Linux.
This guide outlines the steps to configure a unified set of name servers for all domains in Plesk. By following these procedures, you can streamline your DNS management and ensure consistency across your hosted domains.