--- title: DNS (Domain Name System) description: "The system that maps domain names to IP addresses, separate from the site files that stay on your host." canonical: https://penasihathosting.com/en/hosting-wiki/dns-domain-name-system type: wiki locale: en updated: 2026-10-30 author: Willya Randika --- # DNS (Domain Name System) ## Overview - **Summary:** The system that maps domain names to IP addresses, separate from the site files that stay on your host. - **Author:** Willya Randika ([profile](/penulis/willya-randika)) ## Article DNS is the system that maps a human-readable name such as `example.com` to the [IP address](/en/hosting-wiki/ip-address) a server uses. Without it, you would type numbers like `203.0.113.10` to reach a site. In hosting, DNS decides which server receives requests for your domain, while the site files stay on the host. ## Three layers people mix up Three separate roles are often treated as one. You buy the domain name at a registrar. [Nameservers](/en/hosting-wiki/nameserver) decide who holds and answers for the DNS zone. The record values inside that zone, such as A, AAAA, and MX, hold the actual directions. So adding an A record on a new host's panel does nothing public if the nameservers still point at the old provider. Fix who owns the zone first, then edit records. A domain can live at registrar A, run DNS at a service like Cloudflare, and host files at C, as long as the records stay consistent. ## The records you touch most | Record | Job | Example value | | --- | --- | --- | | A | Maps a name to an IPv4 server | `203.0.113.10` | | AAAA | Maps a name to an IPv6 address | `2001:db8::1` | | CNAME | Alias, one name points to another | `www` to `example.com` | | MX | Where domain email is delivered | `10 mail.example.com` | | TXT | Verification plus SPF or DKIM text | `v=spf1 include:_spf.google.com ~all` | | NS | Nameservers authoritative for the zone | `ns1.provider.com` | A standard site needs an A or CNAME, whichever the host documents, plus MX and TXT if it uses domain email. In cPanel you edit these under Domains, then Zone Editor. Each type is covered in [DNS Records](/en/hosting-wiki/dns-records). ## TTL and caching TTL ([time to live](/en/hosting-wiki/dns-ttl)) tells resolvers how long to keep a record before asking again. Common values: `300` seconds right before a change, `3600` for normal operation, `86400` for records that rarely move. Lower the TTL a day before a migration, not after, because the TTL change itself has to propagate. After you move hosts, some visitors keep seeing the old IP until their resolver cache expires, which is what [domain propagation](/en/hosting-wiki/domain-propagation) explains. ## What breaks during a move Do not touch MX records when you only move the web, because mail can break while the site already works. A safe [hosting migration](/en/hosting-wiki/hosting-migration) keeps mail records pointed at the right mail server. If the site sits behind a proxy, visitors see the proxy IP rather than the raw origin, so test from outside it too. Subdomains like `www`, `mail`, and `staging` need their own records and do not inherit automatically from the root. ## FAQ Usually the A record or nameservers still point at the old server, or propagation is not finished. Check the records and propagation before blaming the new host. A healthy lookup is a small slice of load time. Server work, page weight, database queries, and CDN delivery matter more. Broken DNS, though, makes the site unreachable outright. At whoever holds the nameservers: the registrar, the host, or a separate DNS service. Editing a panel that is not authoritative changes nothing the internet sees.