Site Preview shows "Server not found" error

Created:

2016-11-16 13:18:45 UTC

Modified:

2017-08-20 16:39:32 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Site Preview shows "Server not found" error

Applicable to:

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

Symptoms

When I click on Site Preview button, I get "Server not found" error.

Cause

Incorrect configuration is set for Preview in Plesk Home -> Tools & Settings -> Website Preview Settings . Domain that is used for quick preview is not resolvable.

Resolution

Please use information from the Guide:

http://download1.parallels.com/Plesk/PP11/11.5/Doc/en-US/online/plesk-administrator-guide/index.htm?fileName=70219.htm

  1. Use the limited preview, the default variant. If some site content is not displayed correctly (for example, website scripts and Flash animation) use some another domain (created by Administrator, not often used for preview and resolvable from internet)for Quick Preview.

  2. When " Quick Preview on a domain name in Panel " option is checked Plesk adds a wildcard DNS record on the local server (Master DNS):

    # plesk db
    mysql> select id,dns_zone_id,type,host,val from dns_recs where host like '%27-112-109-84%'\\G;
    *************************** 1. row ***************************
    id: 486
    dns_zone_id: 10
    type: A
    host: *.1-2-3-4.domain.tld.
    val: 1.2.3.4
    1 row in set (0.00 sec)

    If for example, the domain 'vps-100.cp.myplesk.tld' is chosen from the drop-down list of "Quick Preview" settings it means that the preview page will be opened by link http://example.com.12-112-113-10.vps-100.cp.myplesk.tld/ on the domain 'example.com' .

    Make sure that the selected domain in the drop-down list can be managed by the authoritative DNS server on the Plesk server:

    # dig vps-100.cp.myplesk.tld NS +noall +answer +short
    ns1.myplesk.tld.
    ns2.myplesk.tld.

    It is also possible that authoritative DNS servers are slave servers allowed with transferring zones from Plesk master DNS server.

    # dig vps-100.cp.myplesk.tld NS +noall +answer +short
    ns1.slavedns.com.
    ns2.slavedns.com.

    To sum up, the basic requirement is that the new wildcard record created by Plesk can be resolved to Plesk IP address. The output should be:

    # dig @ns1.myplesk.tld abc.12-112-113-10.example.com A +short
    12.112.113.10
  3. Also a custom DNS zone can be specified in "Quick Preview on an external domain name" settings. Obviously you must have an ability to manage this zone. For example, if you will type "my-managable-zone.com" where autoritative server is an external server with the address 2.3.4.5 and the record

    *.12-112-113-10.my-managable-zone.com.                 IN A    12.112.113.10

    then the correct page can be opened from the external network.

Have more questions? Submit a request
Please sign in to leave a comment.