Zones
This page provides options to manage your domain names by creating and modifying zones. A zone refers to a portion of the domain name space for which a domain name server is authoritative and possesses complete information. With DNS Server, zone files can be created, stored, and managed on the DiskStation.
Creating Zones
Zones are divided into two types: master zones and slave zones. Master zones possess information for zone files. Slave zones synchronize zone files from master zones (an operation called zone transfer).
To create a new master zone:
- Click the Create button.
- Select Master zone.
- Edit the following settings:
- Domain type: To perform normal resolution services, select Forward Zone. If you want to configure a PTR record, select Reverse Zone.
- Domain name: Enter a registered domain name.
- Enable Zone Transfer Rule: Enable this option to limit which hosts are allowed to synchronize zone files from the new master zone. When enabled, only hosts or subnets that you specify in Zone Transfer Rule can synchronize zone files from the master zone.
- Master DNS server: Enter a public, fixed IP address.
- Limit source IP service: Enable this option to limit which hosts can send queries regarding the zone. When enabled, only hosts or subnets which you specify on the Source IP List can send queries.
- Click OK to save settings.
To create a new slave zone:
- Click the Create button.
- Select Slave zone.
- Edit the following settings:
- Domain type: To perform normal resolution services, select Forward Zone. If you want to configure a PTR record, select Reverse Zone.
- Domain name: Enter a registered domain name.
- Master DNS server: Enter the IP address of the domain's master server. The new slave zone synchronizes zone files from the master server.
- Enable TSIG (Transfer Signature): If the master server you specify uses a TSIG key to authenticate zone file transfers, the key must be selected from the Key name drop-down menu. Key files can be imported on the Keys page.
- Limit source IP service: Enable this option to limit which hosts can send queries regarding the zone. When enabled, only hosts or subnets which you specify on the Source IP List can send queries.
- Click OK to save settings.
Domain Naming Rules:
Domain names consist of one or more sections separated with dots called labels, such as the "john" in john.synology.com. Domain names can include 253 Unicode characters, including letters, numbers, as well as dashes and dots (except for at the beginning). A domain name can include 127 labels. Each label can include 63 characters.
To allow clients to find your server over the Internet, please enter a registered domain name.
Reverse Domains and PTR Resource Records:
PTR records translate IP addresses into the FQDN (i.e. domain name) of the corresponding host. In order to reduce spam messages, some email providers authenticate sender IP addresses. If a sender IP address contains no PTR record or the results of forward and reverse resolution are different, then the email provider will block messages sent from the IP address. If you want to implement reverse domain resolution, please inquire with your Internet service provider.
Importing and Exporting Zones
Existing zones can be exported to the local computer and then imported with DNS Server, allowing you to create zones on separate devices with existing zone files.
To export a zone:
- Select a zone.
- Click Export zone.
Note: If the zone file does not exist (e.g. the slave zone has not finished synchronizing with the master zone), the zone cannot be exported.
To import a zone:
- Click Create.
- Select Import zone.
- Enter zone details and choose a zone file from the local computer.
- Click OK to finish and import the zone file.
Note: The imported zone file must contain a SOA record. In addition, the owner of the SOA record must be the same as the domain name you enter.
Managing Zones
This section explains how to edit zone details, enable or disable zones, or create SOA records and resource records.
To edit zone settings:
- Select a zone and click Edit.
- Click Zone settings.
- Edit the following settings:
- Enable zone transfer rules and edit the source IP service list.
- Configure the master server IP address and TSIG key.
- Enable or disable the zone.
- Click OK to save settings.
To edit SOA records:
- Select a zone and click Edit.
- Click SOA record.
- Edit the follow settings:
- Hostname: The name of the name server which is authoritative for the zone file. The name must include a complete domain name (FQDN).
- Email: Email address of the zone administrator.
- Refresh time: Choose how often each slave server synchronizes zone files from the master server. Refresh time can be set from 1 to 2147483647 (seconds).
- Retry time: When a slave server fails to synchronize zone files from the master server, it waits for the time period specified here before trying again. Retry time can be set from 1 to 2147483647 (seconds).
- Expiry time: If a slave server fails to synchronize zone files from the master server for a time period longer than the one specified here, it stops attempting to synchronize. Expiry time can be set from 1 to 2147483647 (seconds).
- Negative Cache TTL (Time-to-live): Choose how long the zone keeps negative cache files. Negative cache TTL can be set from 1 to 2147483647 (seconds).
- Click OK to save settings.
Note: You can only edit the SOA records of master zones.
To create resource records:
- Select a zone and click Edit.
- Click Resource record.
- Click Create to add a new resource record.
- Select a resource record type, such as A, AAAA, CNAME, MX, NS, PTR, SPF, SRV, TXT.
- Enter the following resource record details:
- Name: Enter a name for the resource record.
- TTL: Choose how long the resource record remains in the cache of other name servers. If the resource record is not updated often, TTL should be set higher in order to consume less system resources. If the resource record is often changed, TTL should be set lower in order to reduce instances where the resource record changes, but the cache of other name servers does not update to the new version. TTL can be set from 1 to 2147483647 (seconds).
- IP Address: Enter the IP address into which your DNS server should translate. For example, www.synology.com is translated into the IP address 120.89.71.100.
- Priority: (For MX records) If multiple mail exchanger (MX) resource records exist, the DNS client server attempts to contact mail servers in the order of preference from lowest value (highest priority) to highest value (lowest priority).
- Host/Domain: (For NS and MX records) Enter the host into which your DNS server should translate and route email messages.
- Canonical name: (For CNAME records) Enter the host into which your DNS server should translate. For example, wrpc.service.mirror-image.net is the CNAME of www.synology.com.
- Click OK to save settings.
Note:You can only edit the resource records of master zones.
Resource Records
- Host (A) resource records are used to map a domain name to the IP address of a computer. You can create a host (A) resource records in a zone to associate the domain name with your computer (i.e. host) to its IP address.
- Alias (CNAME) resource records are used to map an alias of a domain name to another primary or canonical name.
- Mail exchanger (MX) resource records are used to map a domain name to the name of a host that exchanges or forwards mail.
To change slave zones into master zones:
Slave zones can be changed into master zones. Therefore, you can create a slave zone on the DiskStation, synchronize zone files from another name server, and then change the zone to a master zone in order to manage it from the DiskStation.
- Select a slave zone.
- Click the button Change to master zone.
Note:
- A slave zones cannot be changed into a master zone until zone files have been successfully synchronized.
- Master zones cannot be changed to slave zones.
To delete a zone:
- Select the zone you wish to delete.
- Click Delete.