ruk·si

DNS
Basic Configuration

Updated at 2015-07-30 11:28

Basic DNS configuration for a single website. Redirect everything to example.com.

CNAME   *                example.com.
A       example.com.     178.62.225.138
NS      example.com.
        => ns1.service.net.
           ns2.service.com.
           ns3.service.co.uk.
           ns4.service.org.

Directing all subdomains to a single IP. Root domain example.com is btw called apex.

CNAME www.example.com. example.com      # All `www.` get turned into apex
A     example.com.     111.222.333.444  # Apex is this IP
A     *.example.com.   111.222.333.444  # Any subdomain are this IP
MX    example.com.                      # All @example.com emails go to Google
      => 1 ASPMX.L.GOOGLE.COM.          # The exact config ofc depends on
         5 ALT1.ASPMX.L.GOOGLE.COM.     # your email provider.
         5 ALT2.ASPMX.L.GOOGLE.COM.
         10 ASPMX2.GOOGLEMAIL.COM.
         10 ASPMX3.GOOGLEMAIL.COM.
NS    example.com.                      # Delegates domain to a set of
      => ns1.service.net.               # nameservers. You get these from
         ns2.service.com.               # your domain provider.
         ns3.service.co.uk.
         ns4.service.org.