Plesk for Linux works in cooperation with the BIND (or named) domain
name server that enables you to run a DNS service on the same machine on
which you host websites.
When you add a domain name to Plesk, it automatically generates a zone
file for this domain in accordance with the server-wide DNS zone
template and registers it in the name server’s database, then instructs
the name server to act as a primary (master) DNS server for the zone.
Configuring DNS
You can change the name server settings by editing configuration file
/var/named/run-root/etc/named.conf (/etc/named.conf is a soft link to
it). This file consists of the following parts:
General Settings containing the following sections:
The Options section contains the directory option referring to /var,
which is used as the base directory relative to $ROOTDIR (which is
/var/named/run-root by default) for all other files used below. It also
sets the location where named will store its PID.
The key and control sections define a shared key for managing named with
the rndc utility and access list.
- The main part contains several zone sections, one for every direct
and reverse zone in which the server acts as the primary or a
secondary name server. As usual, there is also a root zone section.- The root zone section defines the file with the root zone name
servers. - Reverse local loop zone.
- A direct zone for every domain and a reverse zone that the server
processes as a name server.
- The root zone section defines the file with the root zone name
The final part containing the acl section, which defines an access
control list of name server IP addresses where zone transfers are
allowed. By default, the common-allow-transfer ACL is included in every
zone section.
Note: If you perform change zone entries in the file manually, Plesk will
override them with changes made through the GUI.
Zone files
By default, zone files for domains are stored in the
/var/named/run-root/var directory, as defined in the
/var/named/run-root/etc/named.conf file. Each zone file has a name
identical to the domain name. If you change the zone through the GUI,
Plesk rewrites the file.
You can change a zone database by adding or deleting resource records as
follows:
-
Using the Plesk GUI. In this case, Plesk increases the Serial field
value, which means that the zone transfer operation should be
performed to synchronize the zone content with all secondary name
servers. -
Manually…