[INFO] How to configure domain DNS zone if Plesk server is behind NAT?

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 10.4 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Created:

2016-11-16 13:10:08 UTC

Modified:

2016-12-21 20:06:13 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[INFO] How to configure domain DNS zone if Plesk server is behind NAT?

Symptoms

Plesk is behind NAT. Plesk Domains are not available. The following warnings are shown when opening a domain in a web browser

Domain name cannot be found

or

Connection cannot be established

Cause

The domain DNS zone is configured incorrectly.

Resolution

_Note _: Since Plesk 12 , you can use the NAT Manager extension to configure address translation. You can find additional information in the Knowledge Base article #213370729: How to configure domain DNS zone if Plesk server is behind NAT .

For older Plesk versions:

  1. Make sure that the real IP address (not the internal one, like 192.168.x.x) is used in the DNS zones for all domains in Plesk.

    To achieve this, change the DNS zones for all domains manually, using:

    Subscriptions > example.com > Open in Control Panel > DNS Settings

    After DNS zones are changed through Plesk, rebuild all DNS zone files using the following command:

    ~# mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select name from dns_zone' | awk '{print "/usr/local/psa/admin/sbin/dnsmng --update " $1 }' | sh
  2. Also, update the DNS template with the real IP addresses through Tools & Settings > DNS Template . For example, if the DNS template looks like:

    <domain>.    A    <ip>
    <domain>. MX (10) mail.<domain>.
    <ip> / 24 PTR <domain>.
    ftp.<domain>. CNAME <domain>.
    lists.<domain>. A <ip>
    mail.<domain>. A <ip>
    ns.<domain>. A <ip>
    webmail.<domain>. A <ip>
  3. Then remove records with a template IP address of <ip> and add new records with the real IP address, for example 65.130.90.10 :

    <domain>.    A   123.123.123.123
    <domain>. MX (10) mail.<domain>.
    <ip> / 24 PTR <domain>.
    ftp.<domain>. CNAME <domain>.
    lists.<domain>. A 123.123.123.123
    mail.<domain>. A 123.123.123.123
    ns.<domain>. A 123.123.123.123
    webmail.<domain>. A 123.123.123.123
  4. Replace 123.123.123.123 with your actual IP address.

    This causes new domains to be created with the new IP address in the DNS zone.

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