edit | blame | history | raw

Expansion der Platzhalter

Der Platzhalter für das Gesamtzonefile {DEFAULT_ZONFILE} wird in drei
Schritten folgendermaßen expandiert. Zunächst werden die komplexen
Platzhalter ersetzt. :

{DOM_HOSTNAME}. IN SOA {SOA_HOSTNAME}. {SOA_EMAIL}. (
        {SIO}           ; serial secs since Jan 1 1970
        {REFRESH}       ; refresh (>=10000)
        {RETRY}     ; retry (>=1800)
        {EXPIRE}    ; expire
    {MINIMUM}   ; minimum
    )
{DOM_HOSTNAME}.     IN  NS  {DNS1_HOSTNAME}.
{DOM_HOSTNAME}.     IN  NS  {DNS2_HOSTNAME}.
{DOM_HOSTNAME}.     IN  NS  {DNS3_HOSTNAME}.

{DOM_HOSTNAME}.     IN  MX  30 {MX1_HOSTNAME}.
{DOM_HOSTNAME}.     IN  MX  30 {MX2_HOSTNAME}.
{DOM_HOSTNAME}.     IN  MX  30 {MX3_HOSTNAME}.

{DOM_HOSTNAME}.     IN  A   {DOM_IP4NUMBER}
{DOM_HOSTNAME}.     IN  AAAA    {DOM_IP6NUMBER}

_imap._tcp.{DOM_HOSTNAME}.          IN  SRV 1 0 143 {PAC_HOSTNAME}.
_imaps._tcp.{DOM_HOSTNAME}.         IN  SRV 2 0 993 {PAC_HOSTNAME}.
_pop3._tcp.{DOM_HOSTNAME}.          IN  SRV 3 0 110 {PAC_HOSTNAME}.
_pop3s._tcp.{DOM_HOSTNAME}.         IN  SRV 4 0 995 {PAC_HOSTNAME}.
_submission._tcp.{DOM_HOSTNAME}.    IN  SRV 0 0 587 {PAC_HOSTNAME}.

_autodiscover._tcp.{DOM_HOSTNAME}.  IN  SRV 0 0 443 {DOM_HOSTNAME}.
autodiscover.{DOM_HOSTNAME}.        IN  A   0.0.0.0
autodiscover.{DOM_HOSTNAME}.        IN  AAAA    ::

{DOM_HOSTNAME}.     IN  TXT "v=spf1 include:spf.hostsharing.net ?all"

*.{DOM_HOSTNAME}.   IN  MX  30 {MX1_HOSTNAME}.
*.{DOM_HOSTNAME}.   IN  MX  30 {MX2_HOSTNAME}.
*.{DOM_HOSTNAME}.   IN  MX  30 {MX3_HOSTNAME}.

*.{DOM_HOSTNAME}.   IN  A   {DOM_IP4NUMBER}
*.{DOM_HOSTNAME}.   IN  AAAA    {DOM_IP6NUMBER}

*.{DOM_HOSTNAME}.   IN  TXT "v=spf1 include:spf.hostsharing.net ?all"

Anschließend werden die atomaren Platzhalter ersetzt. :

$TTL 6H

<FQDN>. IN SOA <HIVE>.hostsharing.net. hostmaster.hostsharing.net. (
        <SEKUNDEN>  ; serial secs since Jan 1 1970
        6H      ; refresh (>=10000)
        1H      ; retry (>=1800)
        1W      ; expire
        1H      ; minimum
        )

<FQDN>.     IN  NS  dns1.hostsharing.net.
<FQDN>.     IN  NS  dns2.hostsharing.net.
<FQDN>.     IN  NS  dns3.hostsharing.net.

<FQDN>.     IN  MX  30 mail1.hostsharing.net.
<FQDN>.     IN  MX  30 mail2.hostsharing.net.
<FQDN>.     IN  MX  30 mail3.hostsharing.net.

_imap._tcp.<FQDN>.          IN  SRV 1 0 143 <PAC>.hostsharing.net.
_imaps._tcp.<FQDN>.         IN  SRV 2 0 993 <PAC>.hostsharing.net.
_pop3._tcp.<FQDN>.          IN  SRV 3 0 110 <PAC>.hostsharing.net.
_pop3s._tcp.<FQDN>.         IN  SRV 4 0 995 <PAC>.hostsharing.net.
_submission._tcp.<FQDN>.    IN  SRV 0 0 587 <PAC>.hostsharing.net.

_autodiscover._tcp.<FQDN>.  IN  SRV 0 0 443 <FQDN>.
autodiscover.<FQDN>.        IN  A   0.0.0.0
autodiscover.<FQDN>.        IN  AAAA    \:\:

<FQDN>.     IN  A   <IPv4>
<FQDN>.     IN  AAAA    <IPv6>

<FQDN>.     IN  TXT "v=spf1 include:spf.hostsharing.net ?all"

*.<FQDN>.   IN  MX  30 mail1.hostsharing.net.
*.<FQDN>.   IN  MX  30 mail2.hostsharing.net.
*.<FQDN>.   IN  MX  30 mail3.hostsharing.net.

*.<FQDN>.   IN  A   <IPv4>
*.<FQDN>.   IN  AAAA    <IPv6>

*.<FQDN>.   IN  TXT "v=spf1 include:spf.hostsharing.net ?all"