How to Add DNS Records on Porkbun

Are you ready to start using your Porkbun domain name with external services (web hosting, email hosting, etc.) and need to add DNS records? If so, you’re in exactly the right place! We’ll start by walking through the basic steps of adding DNS records before comparing the different requirements of the various record types.

Adding a DNS Record

1
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" from the list.

2
Locate the domain you're adding a DNS record to. There are two ways to open the menu for managing your DNS records. You can hover over your domain name and click on the "DNS" link that appears below it:

Alternatively, you can click on the "Details" button to the right of the domain name, then click on the edit icon under "DNS RECORDS" in the details menu that appears.

3
You'll be presented with the "Manage DNS Records" menu. The top section of this menu is where you will format and add your DNS records. There are a few fields that you can fill out, depending on what type of DNS record you're creating.

  • 1. Type: The type of DNS record you're adding. There are a lot of different types of DNS records you can add, depending on the service you're connecting to your domain. The DNS record types you'll see most commonly are A, CNAME, MX, and TXT.
  • 2. Host: The "host name" or "subdomain" for the record you are adding. If you're adding DNS records to your "root domain" (such as example.com), you will leave this field blank. If you are adding records to a "subdomain" (such as www.example.com or mail.example.com), this is where you will enter that subdomain name.
  • 3. Answer/Value: The actual value (also referred to as "target" or "destination") that your DNS record is pointing to. This field will always be required, but the information you enter in this field will change depending on the type of record you're adding.
  • 4. TTL: The "Time To Live" of your DNS record. This is the number of seconds that will pass before the DNS system checks your domain to see if your record still exists or has been changed. You can usually leave this field set to the default value unless otherwise instructed.
  • 5. Priority: This field will be grayed out unless you are adding an "MX" (or SRV) record for your domain's email service. When adding MX records, you can set the Priority to make sure that your incoming emails are routed properly.
  • 6. Notes: This field is completely optional, and will allow you to create internal notes that you can use to keep track of your DNS records and what they do. Any notes you create will only be viewable in your own DNS records menu, and they have no effect on the functionality of the record.
4
For this first example, we'll create two A records. Let's say you're connecting your domain on Porkbun to a website that you've built with a different provider. When you go to connect your domain to the web hosting provider, they'll likely give you some DNS records that will make it so your website is accessible whether or not "www" is typed in front of it first.
In this example, we'll assume that your web host gave you the IP address 192.168.0.1 and told you to add some A records to your domain that "point" to that IP address. We'll add the record for your "root" domain first.
Make sure the record "Type" is set to "A - Address record". Since we're adding the A record to your root domain, you can leave the "Host" field blank on Porkbun. Enter the IP address you were given into the "Answer / Value" field.

Leave the other fields blank unless instructed otherwise, and leave a note if you want to keep track of what your record does. Once you've inputted the required information, click on "Add" to add the DNS record to your domain.

Once you've added the DNS record, you can scroll down on the same menu to the bottom section labeled "Current Records", where you will be able to see the record you created for your domain!

Note

If you run into any error messages when adding a DNS record, there are a few possible causes. You can review this guide for more information on how to fix the most common error.

5
Scroll back up to the top of the menu. Now we will add the same record as we did in the previous step, but this time we will input www in the "Host" field, making it so "www.goosehollow.design" is also pointing to the web host's server that the website lives on.

After entering that info and clicking on "Add" again, you can scroll back down and see that you now have two DNS records pointing your domain to your web hosting provider.

6
That's the basic idea! You'll probably end up adding different types of records to your domain such as CNAME, TXT, or MX records. Here are a few more examples of how those records tend to be formatted. Just be sure to add the records as instructed by the provider you're connecting your domain to.
CNAME Record:

MX Record:

TXT Record:

7
If you make a mistake when creating any of your DNS records, or if you need to edit or delete them later on, you can always return to this menu and scroll down to the "Current Records" section, where you can edit or delete any records on your domain by clicking on the respective icons.

Congratulations! You've learned how to add DNS records to your domain, and now you'll be able to configure your domain for any service that provides you with their DNS records. If you need more specific information or guides for common providers, feel free to look through our section of guides on connecting domains.


Requirements for different record types

Here are the various technical requirements for different types of DNS records you can add!

  • A (address) records must have an answer that is an IPv4 address, but have no other unique requirements.
  • MX records are used to define the service you will use for receiving email on your domain. Answers for MX records can be a either a fully qualified domain name or an IPv4 address.
  • CNAME records are a type of record that acts as a passthrough for all other record types. Because of this, the Host value of a CNAME record cannot be left empty and must be unique and cannot be shared with other records for the domain. The Answer for a CNAME record must be a fully qualified domain name.
  • ALIAS records function similarly to CNAME records letting you point to a host name. Unlike CNAME records that pass through all record types, ALIAS records only pass through A and AAAA records for web hosting. This allows them to be used on the root domain and alongside other DNS records for the same domain, but also means they are not fully interchangeable with CNAME records which pass through all record types.
  • TXT (text) records are typically used to verify ownership of your domain when connecting it to an outside service. They do not have any functionality other than to be readable and therefore do not have any requirements for what can be set for the Host or Answer.
  • NS records are used to set the authoritative nameservers for subdomains. The Answer for NS records needs to be a fully qualified domain or IPv4 address.
  • AAAA records are another type of address record. Unlike an A record, AAAA records require that the answer is an IPv6 address, but otherwise function the same.
  • SRV records are used for pointing services other than web and email, such as game servers and telephony services. SRV records require specific formatting that you can read in our SRV record guide.

Note

If you're trying to change the DNS nameservers for your root domain, you will do so via a different process. Check out this guide for more information.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.