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.
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 Website 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
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.
Another thing you must do is to remove any AAAA for @ and www, these 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 name servers 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.
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 name servers have propagated before you do this.
To generate the SSL certificate manually in the Templ Panel, follow these steps:
Login to your Templ Panel
Click on Domains in the left menu
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!"
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..