What is DNS and how do I edit it?
The Domain Name System, or DNS, is what allows you to use domain names to reach the websites you want instead of having to memorize IP addresses. DNS translates domain names into IP addresses. That way, when you type in a domain name in your web browser, like https://porkbun.com, you end up at our website.
DNS operates on many servers all over the Internet. A web browser asks the DNS server closest to it for the IP address of a domain its user is trying to visit. That DNS server asks a series of other DNS servers until it finds the "authoritative nameserver" for the domain in question, which is a DNS server upon which the domain owner has placed DNS records that match their domain name to an IP address.
Here are some of the more common DNS record types:
- A and AAAA Records
- These point hostnames to IP addresses, and are commonly used to route browser requests. An A record signifies an IPv4 address and AAAA is IPv6.
- MX Records
- These tell email servers where to send mail addressed to a particular domain.
- TXT Records
- These can be used to hold arbitrary information. SPF records are a kind of TXT record.
- CNAME Records
- These can be used to create a DNS alias of another hostname but have unusual properties and should be used sparingly
- These can be used to create Subdomains
- ALIAS - CNAME flattening Records
- These are similar to CNAME records, but are designed to be used for the root (or APEX) domain.
- NS Records
- These assign authoritative name servers to the hostname. Porkbun automatically takes care of these for you.
There are several others but these are the most common. You can query DNS yourself with command line tools such as dig, nslookup, or via our online DNS lookup tool.
ICANN is the organization charged with overseeing the security and stability of DNS.
How to Edit DNS
Wondering where to add, remove, or edit your DNS records? Here's how to do it:
- Log in. You should arrive at the Domain Management screen. If you're already logged in, click your username in the top-right corner and select Domain Management.
- Locate your domain and click the "Details" button list to the right. On the menu that appears, click the "Edit" option next to "DNS Records".
- Select the record type you would like to add from the "Type" drop-down, then enter the hostname and answer for the record. Click the "Add" button to add the record to DNS.
Please note that if you are looking to switch your authoritative nameservers, adding NS records under DNS Records is not the way to do it, please follow this guide instead:
For specific instructions about pointing your domain at web hosting via A records, please check out this guide: