So, you want to connect your Porkbun domain to Herokuapp. We can do that! You will need to add a CNAME record and an ALIAS record. Here are the steps you will need to take:
Connecting your domain
Log in. You should arrive at the Domain Management screen. If you’re already logged in, click on Account in the top-right corner and select Domain Management.
Click the drop-down list to the far right of your domain. Then click the “Edit” option next to DNS Records.
Add an “ALIAS – CNAME flattening record,” leaving the “Host” field blank. You will want to consult with Herokuapp to find out which CNAME record they will want you to use for the “Answer” section. This article from the Heroku Dev Center has more information.
We’ll also want to add a CNAME record. The Host field should have “www” entered, and the answer should be the same provided host name as step 3.
Herokuapp offers a service called “Fixie”, which allows you to route your outbound requests through a static IP address. For instructions on how to connect your domain with this option, see this article for help.