Knowledgebase: OnApp Control Panel
Create DNS Zone
Posted by Andrew Smith on 07/03/16 12:35

To add a new DNS zone:

  1. Go to your Control Panel's DNS menu.
  2. Click the Create DNS Zone button.
  3. Fill in your domain name. At the domain registrar, point your domain to the following name servers:

    • ns1.yourdomain.com
    • ns2.yourdomain.com
    • ns3.yourdomain.com
    • ns4.yourdomain.com

Where yourdomain.com is your fully qualified domain name, which you have specified at DNS setup.

  1. Tick the Auto Populate With Existing DNS record box to automatically import your existing DNS settings, or skip this step to start from scratch. Note that this option may not import all existing settings, so you should check your new record for any missing entries.
  2. Click the Submit button.
  3. On the page that appears, click the Add icons next to the DNS records you want to add. You can add and manage the following DNS records:

    • SOA (Start of Authority) – change the start of authority time to live value (TTL).To change a SOA TTL, click the TTL cell next to the SOA record and type a new value.

    • NS (Name Server) – change the TTL of the existing name servers or add new name servers.To change a name server's TTL, click the TTL cell next to the name server record and type a new value.

    • A (Host) –-point your domain name to a static IP address.To create a new A record, enter the following parameters into the cells:
      Host
      – enter a host name or use the "@" sign to represent your current host.
      Point to
      – enter the IP address to which the user would be sent for this host name.
      TTL –
      set the time to live value for this record.

      A record example:ftp 192.168.0.1 86400
      Where: ftp is the host; 192.168.0.1 - IP , 86400 is TTL value.
      So your ftp.yourdomain.com will resolve to 192.168.0.1 IP address and the TTL value = 86400 seconds.


    • AAAA (Host)
      To create a new AAAA record, fill in the following cells:
      Host – enter a host name or use the "@" sign to represent your current host.
      Point to – enter the IP address to which the user would be sent for this host name.
      TTL – set the TTL value for this record.

      AAAA record example:ftp 2a00:1450:400b:c00::68 86400
      Where: ftp is the host, 2a00:1450:400b:c00 – IPv6 address, 86400 is the TTL value.
      So your ftp.yourdomain.com will resolve to 2a00:1450:400b:c00 IPv6 address.


    • CNAME (Alias) – alias domain records to your domain.

      It is possible to use underscore character in the CNAME records.


      To add a CNAME record, fill in the following cells:
      Host –.enter the host name or use the "@" sign to represent your current host.
      Point to –enter an alias you want to assign to your domain.
      TTL – set the TTL value.

      CNAME record example:
      www example.com 86400
      Where: www is an alias, example.com is a valid domain name, 86400 is TTL value.

    To add the aliases, make sure an A record is added to this domain.

     

    • MX (Mail Exchange) - identify the mail server for your domain name.
      To add a MX record, fill in the following cells:
      Priority – set the MX priority to specify the routing order (lower value means higher priority).
      Host: enter the hostname to which the emails should go
      Goes to – enter the valid domain name.
      TTL – set the TTL value.

      MX record example:
      10 mail example.com 86400
      Where: 10 is priority, mail is the host, example.com is a domain, 86400 is TTL.


    • TXT – add additional information about the DNS zone.
      Host – enter the valid host name
      Value – any free text you want within a TXT record.
      TTL – TTL value.

      TXT record example:
      @ v=spf1 a mx ptr ip4:192.168.1.1 ~all 86400
      Where: @ is the host name, v=spf1 a mx ptr ip4:192.168.1.1 ~all is value, 86400 is TTL.


    • SRV (Service) –specify services that you have on your domain.
      To add a SRV record, enter the following cells parameters:
      Host – type the host for which this record is valid.
      Priority – set the host priority. Lower value means more preferred.
      Weight – the approximate weight for relative records with the same priority.
      Port – the port on which the service can be found.
      Points to – enter the domain name.
      TTL – set the time to live value.

      SRV record example:
      xmpp._tcp 0 1 5222 jabber.example.com 86400
      Where: xmpp._tcp is a host,0 is priority, 1 is weight, 5222 is port, jabber.example.com is a points to value, 86400 is TTL.

Wildcards

In the OnApp version 3.0 it is possible to use wildcards in all DNS records. The table below explains the rules of wildcard use.

DNS record type
Allowed
Disallowed
A

*.example.com

**.example.com

*.abc.example.com

  • Note: multiple ‘*’ will be changed to single ‘*’. E.g. ****.example.com will be changed to *.example.com
  • Can only be prefixed for domain.

abc.*example.com

*.*.example.com

sub.*.example.com

abc.*.*.example.com

AAAA  Same to A record  Same to A record
MX  Same to A record  Same to A record
CNAME

 Same to A record

Note: –°NAME wildcard record can not coexist with A record.

 Same to A record
TXT

*.example.com

*.*.example.com

sub.*.example.com

sub.*.*.example.com

*sub*.*.example.com

Note: Wildcards are valid in any position , as long as the domain remains DNS zone's subdomain.

 
It is not possible to use wildcards for NS, SOA and SRV records because of PowerDNS limitations.

Underscore characters

In the OnApp version 3.0 it is possible to use wildcards in all DNS records. The table below explains the rules of underscore use.

DNS Record type
Allowed
Disallowed
A

_abc.example.com

__abc.example.com

_abc_abc_.example.com

Note: Multiple ‘_’ e.g. ‘____’ will not be changed to a single underscore, unless stated.

abc._example.com
AAAA Same to A record Same to A record
MX Same to A record Same to A record
CNAME

Same to A record

Note: –°NAME record with underscore can not coexist with A record.

Same to A record
NS Same to A record Same to A record
SRV

_xmpp._tcp.example.com

__xmpp.__tcp.example.com

_xmpp._tcp._.example.com

_xmpp._tcp._abc.example.com

Note: Multiple ‘_’ e.g. ‘____’ will be changed to a single underscore character.

All except examples in the Allowedcolumn.
TXT

All except examples in the Disallowed column.

Note: underscores are valid in any position , as long as the domain remains DNS zone's subdomain.

_example.com

abc._example.com

example.com_

example_.com

 
(0 vote(s))
Helpful
Not helpful

Comments (0)