This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.

DNS (Wordpress)

Add DNS Records

Important

This is only for Wordpress hosted by Tocco. Self-hosted solutions will need other records.

Finding the Right Instructions

Pattern

Examples

Record

{domain}.{tld}

example.ch
example.net

Root Domain (example.net)

www.{domain}.{tld}

www.example.net
www.example.ch

Special Case www

{subdomain}.{domain}.{tld}

admin.example.net
intranet.example.net
www.example.net
web.dgh.tocco.ch
web.dghtest.tocco.ch

Subdomain (some-name.example.net)

${INSTALLATION_NAME}.wp.tocco.ch

Create a CNAME pointing to the corresponding server:

example.net           IN ALIAS   wp1.prod.tocco.ch
                               ; ^^^^^^^^^^^^^^^^^
                               ; Replace this with the actual server's name

Root Domain (example.net)

For root domains, an ALIAS is to be used:

example.net           IN ALIAS   exampleinc.wp.tocco.ch.
                               ; ^^^^^^^^^^^^^^^^^^^^^^^^
                               ; ${INSTALLATION_NAME}.wp.tocco.ch.

Note

What if type ALIAS is not available?

Type ALIAS is sometimes known as ANAME:

example.net    IN ANAME   exampleinc.wp.tocco.ch.
                        ; ^^^^^^^^^^^^^^^^^^^^^^^
                        ; ${INSTALLATION_NAME}.wp.tocco.ch.

Iff ALIAS and ANAME aren’t available, create both of the following records instead:

; IPv4
example.net.     A      ?.?.?.?
; IPv6
example.net.     IN AAAA   ????:????::????

Replace ?.?.?.? / ????:????::???? accordingly. You can use dig for this and remove the TTL (i.e. 3512):

$ dig +noall +answer wp2.prod.tocco.ch
wp2.prod.tocco.ch.      3512    IN      A       83.150.25.7
$ dig +noall +answer -t aaaa wp2.prod.tocco.ch
wp2.prod.tocco.ch.      3512    IN      AAAA    2001:8e0:100:100::7

Special Case www

www.some-domain.tld should point to the root domain:

www.example.net       IN CNAME   example.net.
    ^^^^^^^^^^^                  ^^^^^^^^^^^^
  ; root domain                  root domain

Subdomain (some-name.example.net)

Subdomains, with the exception of www, should point to ${INSTALLATION}.wp.tocco.ch:

intranet.example.net  IN CNAME   exampleinc.wp.tocco.ch.
                               ; ^^^^^^^^^^^^^^^^^^^^^^^
                               ; ${INSTALLATION_NAME}.tocco.ch.