15.2. DNS server

There is a more advanced feature that will allow you to create domains for your local network. This is very useful if you want your users to use host names for your local machines instead of recalling IPs.

The DNS service in eBox features a simple to use server which allows you to add domains. And within each domain, you can add hosts and aliases for each one of them. Note that it lacks features such as zone transfers, subdomains and so forth. Those add-ons will be added in the future.

Domains

You can add as many domains as you need. Remember that your hosts will be added taking a domain as a root.

To add a domain, go to DNS, and just type a domain's name in the table placed below the title. As we mentioned you can add as many domains as you need.

Hosts

The next step, after creating a domain, is adding host names to the domain. What you are doing here is binding an IP address to a host name.

To add a host name, you must edit the domain you would like to add the host to. To do so, click on the pencil icon in the domain table. A new screen will show up. In this new screen you will be able to add a host name and its corresponding IP.

In case of having an IP address with more than one name associated to it, you may add aliases right below the first host name added.

Mail exchangers

Each domain may contain mail exchangers (MX records), which in Domain Name System jargon are those hosts which serve the electronic mail service, that is, the SMTP (Mail) Server.

Each MX record consists of a host name, which may belongs to the same domain, i.e. one of the previously defined hosts or a custom one from a foreign domain. The preference value determined which mail server will be tried first to send a mail to the domain. The smallest preference number has the highest priority. The allowed interval is (0, 65535). The table is ordered by the preference value.

Once you have defined your MX records, you may create a virtual domain in the mail module with the same domain name as defined here. Therefore your local mail system would work smoothly.

Moreover, reverse mapping is done as well automatically by the module. Every host which has an IP address associated with, the inverse relation is done as well.