Skip to content

DNS Recommendations

With Mojo Stratus, there are several options for configuring your DNS.

  1. (Preferred) Route 53 is provided with Stratus and you can host your domains through our management system to use Route 53.  This way your domain is pointed to a CloudFront distribution directly to take full advantage of CloudFront Global Edge Node caching.
  2. (Next best) Use your own DNS solution that supports CNAME ALIAS or flattening. Cloudflare supports this, as well as Route 53.  We have no issue with customers using Cloudflare for their DNS, we do ask you do not use the Cloudflare CDN alongside Stratus. Learn more about flattening at Cloudflare’s website.
  3. (Not recommend but ok for temporary use) You can use an A record we provide that points to a particular CloudFront edge node.  This IP will likely change in the long term and you would have to update your A record.  We cannot guarantee this method, therefore it is not recommended. NOTE: Let's Encrypt Certificates Will Not Work Using Your Own DNS

Pointing a domain to Route 53

When a domain is added to Stratus, a DNS zone should also be created.  Then the nameservers are available above the DNS zone. The nameservers will also be slightly different for every domain, since Route 53 has many different nameservers. To retrieve the necessary nameservers for a given domain follow these steps:

  1. Open your Stratus management panel
  2. Click DNS from the left-hand navigation menu.
  3. Click a DNS zone from the list.
  4. The full DNS zone will appear. The nameservers will be labeled and listed at the top. Every zone has four nameservers. Name Servers

  5. Set the nameservers to all four nameservers listed at your domain registrar for your domain. Keep in mind it may take up to 24 hours for these DNS changes to fully propagate.

Using your own nameservers

NOTE: Let's Encrypt Certificates Will Not Work Using Your Own DNS

Due to the integration of Amazon SES  and subsequent records required for proper email sending included in Stratus, pointing a domain is not as simple as adding a couple of CNAMEs and waiting for them to propagate.

The best first step is to contact MageMojo Support but if you wish to set this yourself, it is possible.

  1. Open your Stratus management panel
  2. Click DNS from the left-hand navigation menu.
  3. Click a DNS zone from the list.
  4. The full DNS zone will appear. The nameservers will be labeled and listed at the top. Every zone has four nameservers. You will also see several CNAME and TXT records.  Copy all of those to your current DNS hosting, the most important record will be a CNAME pointed to a CloudFront address like d3asdfasd444.cloudfront.net. Name Servers

  5. Point the primary records you need, such as the www CNAME or any subdomains, as well as the apex, to the cloudfront.net address.  Use CNAME flattening or an ALIAS if your DNS host supports it. Otherwise you will have to use an A record.

  6. Once these changes propagate, go back to the Info section from the left-hand navigation menu.  Make sure the proper domains are set there per our URL guidelines.

If you absolutely must use an A record, follow these steps to determine an IP you can use.

  1. Log into your panel and click one of the DNS zones, near the top you will see a line that says CloudFront Endpoint
  2. In the box will be a domain in the format xxxxxx.cloudfront.net , keep this open.
  3. Use the dig command to look up the DNS records for that CloudFront address, or another preferred method. You will get a list of IPs like this:
        dig d1xq81t8a33nfn.cloudfront.net
        ; <<>> DiG 9.10.3-P4-Debian <<>> d1xq81t8a33nfn.cloudfront.net
        ;; global options: +cmd
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16848
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

        ;; QUESTION SECTION:
        ;d1xq81t8a33nfn.cloudfront.net. IN      A

        ;; ANSWER SECTION:
        d1xq81t8a33nfn.cloudfront.net. 30 IN    A       54.230.195.26
        d1xq81t8a33nfn.cloudfront.net. 30 IN    A       54.230.195.46
        d1xq81t8a33nfn.cloudfront.net. 30 IN    A       54.230.195.80
        d1xq81t8a33nfn.cloudfront.net. 30 IN    A       54.230.195.220
  1. Pick any of the IPs available. They will vary depending on your geographic location.
  2. At your current DNS host, set any A records you need to any of those IPs.
  3. You are all set, note these IPs may change at random and take your site offline.

DNS and SSL

The DNS settings are important because they tie into the auto-certificate generation included with Stratus.  Once pointed, the file verification check for Let’s Encrypt will start working. Learn more about Let’s Encrypt

Clearing local DNS Cache

To clear your DNS cache in Windows 10

  1. Enter cmd in the Cortona search text box.
  2. Right-click Command Prompt and select Run as Administrator.
  3. Run the following command: ipconfig /flushdns If the command succeeds, the system returns the following message: Successfully flushed the DNS Resolver Cache.

To clear your DNS cache in Windows 7

  1. Click the Start button.
  2. Enter cmd in the Start menu search text box.
  3. Right-click Command Prompt and select Run as Administrator.
  4. Run the following command: ipconfig /flushdns If the command succeeds, the system returns the following message: Windows IP configuration successfully flushed the DNS Resolver Cache.

To clear your DNS cache in MacOS X version 10.10.4 or above

  1. Click Applications.
  2. Click Utilities.
  3. Click Terminal.
  4. Run the following Command: sudo killall -HUP mDNSResponder If the command succeeds, the system does not return any output. WARNING: To run this command, you must know the computer's administrator account password

Flush public DNS Cache

DNS can take up to 24 hours to fully propagate. Please see this DNS Propagation checker.

If you experience slow propagation time, you may attempt flushing NS cache at the following locations:

  1. Google Public DNS
  2. OpenDNS
  3. Cloudflare