Overview
This article provides detailed instructions on how to add or modify NS (Name Server) records for a single domain or for all domains in Plesk. Proper DNS configuration is crucial for ensuring domain resolution and overall website functionality.
Pre-requirements
- Access to a Plesk server with administrative privileges.
- Familiarity with DNS concepts, particularly NS records.
- Basic knowledge of using the command line interface (CLI) for Linux.
Steps to Add or Modify NS Records for a Single Domain
- Log in to Plesk:
Access your Plesk control panel by entering your credentials.
- Navigate to DNS Settings:
Go to Domains -> example.com -> Hosting & DNS -> DNS.
- Add or Modify NS Record:
Click Add DNS Record to create a new record or click on an existing NS record to modify it.
- Specify Record Details:
On the next page, fill in the following:
- Record Type: NS
- Domain Name:
- Leave blank to propagate the record on the domain itself.
- Specify a subdomain prefix for a particular subdomain.
- Use a wildcard (*) to propagate on all subdomains.
- Name Server: ns1.example.com
- Finalize Your Changes:
Click OK to save the record.
Steps to Add or Modify NS Records for All Domains in Plesk
- Log in to Plesk:
Enter your Plesk credentials to access the control panel.
- Go to DNS Settings:
Navigate to Tools & Settings -> DNS Settings.
- Add or Modify NS Record:
Click Add DNS Record or modify an existing NS record.
- Specify Record Details:
Fill in the following information:
- Record Type: NS
- Domain Name:
- Leave blank for the domain itself.
- Specify a subdomain prefix as needed.
- Use a wildcard (*) for all subdomains.
- Name Server: ns1.example.com
- Apply Changes:
Click OK. To apply these settings to all existing domains, click the prompt that appears.
Linux Commands for CLI Usage
# Access the Plesk instance via SSH
ssh user@your-server-ip
# Add or modify NS records using the CLI
plesk bin dns -a example.com ns1.example.com
plesk bin dns -m example.com ns1.example.com
Gotchas to Avoid
- Incorrect NS Entries: Ensure that the NS records point to valid name servers to avoid domain resolution issues.
- Propagation Delay: Changes may take some time to propagate across the DNS system. Be patient while testing.
- Wildcard Usage: Be cautious when using wildcard entries as they can affect all subdomains.
This guide details the steps to add or modify NS records in Plesk for both individual and multiple domains. Following these instructions ensures proper DNS configuration for your domains.