4.2.1.7. Setting up a DNS service in Vesta

Warning!

If an error occurs when working with the Vesta panel "Error: DNS_SYSTEM is not enabled", then you should run DNS server setup.

For settings DNS-service and direction of the necessary domains to their own DNS-server do the following:

  1. Create child NS registered domain and send them to VPS IP address.
  2. Open the Vesta control panel.
  3. Switch to tab "DNS" and click on the green button "+":
  4. Fill in the fields and click "Add" ("Add"):
    • "Domain" ("Domain") — specify the domain for which the child NS were created.
    • "IP address" ("IP address") — specify VPS IP address.
  5. In the tab "DNS" click "Edit" opposite the domain that will be used as NS:
  6. In field "Template" choose "child-ns" and press "Save":
  7. Go to the menu "Packages":
  8. Edit the standard template by clicking "Edit" next to the template with the title "default":
  9. At the bottom of the page in the margins "Name Servers" specify the previously created child servers and click "Save" ("Save"):
  10. All domains added to the Vesta control panel will already be configured on these NSs by default. Previously added domains will need to be configured manually.

To install and configure DNS-service in the Vesta panel, do the following:

  1. Install DNS-server Bind by executing the command for the appropriate OS:
    • For CentOS:
      yum install bind bind-utils -y
    • For Debian / Ubuntu:
      apt-get install -y bind9
  2. Complete the Vesta configuration file in any of the following ways:
    • By editing the file manually:
      nano /usr/local/vesta/conf/vesta.conf

      After opening the editor, you need to add the line

      DNS_SYSTEM='bind9'
    • By inserting the line automatically at the end of the file with the command:
      echo "DNS_SYSTEM='bind9'" >> /usr/local/vesta/conf/vesta.conf
  3. Check the work DNS-service in the Vesta panel.
Content