Introduction
For correct operation of 3CX Phone System, it is recommended to configure and use the so-called split DNS (Split DNS). Split DNS consistently represents network host names (FQDN) on the inside and outside network. In other words, the 3CX Phone System server will be available on a private and public network using a single FQDN name. This approach provides several advantages:
- provides uniform configuration of internal and external connections to the server
- accelerates user re-registration when moving from internal to external network and vice versa
- allows you to create the same configuration for internal and external users of 3CXPhone
- allows you to administer the system, view reports and listen to recordings of conversations, regardless of the user's location
- allows you to specify a single autotune URL in IP phones, regardless of their location
To successfully configure Split DNS, you must meet a number of conditions:
- creating a self-signed SSL certificate, or purchasing a trusted certificate from an accredited company
- availability of a registered domain name at the domain registrar
- presence of static IP address
- Your internal network should have a DNS server running. This may be a Windows Server based DNS or DNS server implemented in a firewall.
It is recommended to create a split DNS before installing the 3CX Phone System server.Split DNS is created in two stages:
- DNS zone is configured on a public DNS server at the registrar of your domain name - public FQDN server name 3CX Phone System
- A similar zone is created on the internal DNS server — the private FQDN of the 3CX Phone System server
Public FQDN server name
Let us show the setting of the public server name using the example of the EuroDNS registrar. For other registrars, the procedure is not fundamentally different.
- Log in to your account
- Go to Control Panel > Zone Profiles

- Click Add Zone Profile
- Click Rename Zone Profile and name the profile. In this example, we used example.com . Click Rename to save the profile name.
- Click Add DNS Record and in the menu select A (IPv4 Address)

- In the Host field, specify the desired server name. In our example, this is pbx.
- In the IP Address V4 field, enter the public IP address of your 3CX Phone System server
- The TTL field is set to 3600 by default.
- To save the settings, press ✓. An A-record (your FQDN server name) pbx.example.com will be created. After some time, which may take up to 24 hours , your public FQDN server name will be converted to a public IP address.
To test the correctness of setting up the public FQDN, at the command prompt, enter
nslookup pbx.example.com . The command needs to be executed on a computer located on the external network. In response, you should receive the external IP address of the 3CX server.
Private FQDN server name
We show how to configure a private FQDN name on a DNS server located on your company's internal network. The example is based on the Windows 2012 R2 DNS server and assumes that the server is configured from scratch.
')
Enable DNS Role

- Run Server Manager
- In the upper right-hand corner of the Server Manager window, click Manage and select Add Roles and Features from the pop-up menu.
- In the Add Roles and Features Wizard, click Next.
- Leave the default Role-based or feature-based installation option and click Next.
- Select the server to which you want to assign a new role and click Next.
- Select DNS Server from the list. In the dialog box that appears, leave the default values, click Add Features and Next
- On the Features page, click Next.
- On the DNS Server page, click Next.
- Click Install
- After the installation is complete, click Close.
After adding the DNS server role, create a split DNS zone and entries in it.
Adding a new zone

A new zone is created in the Server Manager snap-in:
- In the upper right corner of the snap-in, select Tools and in the DNS drop-down menu
- The DNS manager opens. Right-click on the server name and select New Zone ...
- In the New Zone Wizard wizard, click Next.
- Leave the Primary zone as default and click Next.
- Select Forward lookup zone and click Next.

- Specify the zone name, in our example, example.com , and click Next.
- On the Zone File page, leave the default settings and click Next.
- On the Dynamic Update page, leave the default settings, click Next and Finish
Add new host

The newly created zone will appear in the Forward Lookup Zones section:

- Right-click on the created zone and select New Host (A or AAAA) ...
- Specify the host name, in our example, pbx
- Enter the private (local) IP address of the 3CX Phone System server
- Click Add Host . A message appears stating that the pbx.example.com entry has been created. Click OK and Done
This is the FQDN name you specify during the installation of the 3CX Phone System server in the FQDN section.To test the correctness of setting up a private FQDN name, at the command prompt, enter
nslookup pbx.example.com . The command must be executed on a computer located on the internal network. In response, you should get the internal IP address of the server.
Split DNS is created. From now on, 3CX Phone System will use a single FQDN name in the public and private network.
Possible problems
Depending on the type of DNS server you are using, you may encounter that your other hosts, such as the
www.example.com web server, will become unavailable from the internal network. This is due to the fact that your local DNS server will begin to use the internal DNS zone, rather than redirecting local client requests to an external DNS server. In this case, it is necessary to duplicate the records of all hosts in the external DNS zone in the internal DNS zone A.
A record must contain the domain name of the host and its public IP address.

Additional Information