DNS server of Plesk does not work properly

Created:

2016-11-16 13:15:23 UTC

Modified:

2017-08-16 17:38:49 UTC

2

Was this article helpful?


Have more questions?

Submit a request

DNS server of Plesk does not work properly

Applicable to:

  • Plesk 10.x for Windows
  • Plesk 11.x for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Symptoms

You have a BIND server installed on a Windows server, which cannot load zone files for domains.

Resolution

  1. Check whether domain names can be resolved locally:

    >nslookup domain.tld 127.0.0.1
    Server: localhost
    Address: 127.0.0.1
    *** localhost can't find domain.tld: Non-existent domain
  2. Check whether the BIND version is compatible with the current Plesk installation. If not, remove the installed version and use Parallels Plesk Autoinstaller to install the supported BIND version. After that, check the domain resolution locally one more time:

    >nslookup domain.tld 127.0.0.1
    Server: UnKnown
    Address: 127.0.0.1
    Name: domain.tld
    Address: some.ip.add.ress
  3. Check for the orphaned DNS zone records in the psa database:

    > "%plesk_bin%\\dbclient" --direct-sql --sql="select id,name from dns_zone where id not in (select dns_zone_id from domains) and id not in (select dns_zone_id from domain_aliases) and id <> (select val from misc where param = 'default_dns_zone_id')"

    id name
    17 domain.orgtld
    18 domain.nametld
    146 domain.inftld
    147 domain.co.uk.tld
    148 domain.tv
  4. If such records exist, proceed with step 4; otherwise, proceed to step 5.

Make a psa database dump:

    MySQL\\bin>mysqldump.exe -uadmin -p********* -P8306 psa > C:\\psa.dump

Remove those orphan records:
mysql> begin; delete from dns_zone where id not in (select dns_zone_id from domains) and id not in (select dns_zone_id from domain_aliases) and id <> (select val from misc where param = 'default_dns_zone_id');
Query OK, 5 rows affected (0.03 sec)

mysql> commit;

  1. Update DNS records in accordance with database entries:

    Plesk\\admin\\bin>DNSMng.exe Update *
  2. To make sure that the DNS server responds to requests correctly, check the domain name resolution remotely:

    >nslookup domain.tld <DNS.server.IP.address>
    Server: somednsserver.tld
    Address: DNS.server.IP.address

    Name: domain.tld
    Address: some.ip.add.ress
Have more questions? Submit a request
Please sign in to leave a comment.