Change A-Record

How to change A-Record and point it to your your Templ site.

Karl avatar
Written by Karl
Updated over a week ago

If you only want to migrate your website to Templ and keep email and other DNS settings elsewhere, you should only point your A-record to your Templ server's IP address.

Note: If you point your domain to Templ using A-records, it's also necessary to manually add SPF, DKIM and verifying your domain, in order to achieve the best email deliverability for emails sent from your website.

Note 2: Assign the domain you want to use to your website before updating A-records - given that you are ready to take your site "live".

Find the site IP in the Templ panel

You can find the IP adress in our control panel by navigating to Websites in the left panel, then click on the name of your website. The IP address will be listed under Overview.

How to change A-Record

The A-record is changed where you control your DNS settings, normally this is the same as where you registered your domain. Log in there and navigate to the DNS settings.

The A-Records you need to update are @ and www so that these point to your Templ servers IP address.

It is very important that you change both @ and www
Note, sometimes "@" to simply referred to as with certain DNS providers.

Another thing you must do is to remove any AAAA records for @ and www
Those records are for IPv6 and are not needed, and will cause automated SSL certificate generation to fail, so make sure to remove these AAAA-records if you have any.

How to check if your A-record changes have propagated

The easiest way to check if your A-records have propagated around the world is to use DNS Checker.

Simply enter your domain name in the box, and in the dropdown field select "NS" and then click Search.

Tip for faster propagation

If TTL is set to 3600 (1 hour) it may take up to that value before the changes have effect. If you lower TTL to the lowest possible value (normally 5 min) and then wait for an hour if TTL is set to 3600, then it will only take up to 5 minutes for the DNS to propagate instead of up to 1 hour.

If your A-record changes have propagated, they should show your Templ servers IP address as a result. Keep in mind that it can take several hours for the changes to take affect.

How to generate the SSL certificate manually

In case your SSL certificate has not been generated automatically, you can do it manually in the Templ Panel. Keep in mind that you should wait until your A-records have propagated before you do this.

To generate the SSL certificate manually in the Templ Panel, follow these steps:

  1. Login to your Templ Panel

  2. Click on Domains in the left menu

  3. Click on your Domain (find the correct one in the list if you have more than one site hosted on Templ), and then click "Add SSL Certificate Now!"

Did this answer your question?