{"id":13797,"date":"2019-01-20T11:42:20","date_gmt":"2019-01-20T11:42:20","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=13797"},"modified":"2026-03-10T09:30:57","modified_gmt":"2026-03-10T09:30:57","slug":"what-is-dns","status":"publish","type":"post","link":"\/ca\/tutorials\/what-is-dns","title":{"rendered":"What is DNS: A comprehensive guide to how it works"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>The Domain Name System (DNS) associates website names with their numerical Internet Protocol (IP) addresses that a web browser needs to locate the server a website is on. This means you can type hostinger.com instead of having to memorize strings of numbers like 172.217.14.142.<\/p><p>But DNS does more than make the internet user-friendly. It keeps websites running fast by directing traffic to the closest servers, can help block access to malicious sites, and ensures that requests always reach the right destination.<\/p><p>Here&rsquo;s why this matters: when DNS isn&rsquo;t working properly, websites won&rsquo;t load, emails won&rsquo;t send, and apps stop connecting. Understanding how it works can help you fix connection problems faster and make smarter decisions about your internet security.<\/p><p>Let&rsquo;s see how this happens.<\/p><figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"What is DNS | Domain Name System | Explained\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/mxpLTv9Gd3k?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure><p>\n  <div class=\"youtube-shortcode\">\n    <div class=\"row\">\n      <div class=\"col-7 col-sm-8 d-flex align-items-center\">\n        <img decoding=\"async\" class=\"channel-logo\" src=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/youtube-channels\/hostinger-academy.jpg\" alt=\"youtube channel logo\">\n        <div class=\"d-flex flex-column justify-content-between\">\n          <span class=\"slogan d-none d-sm-block\">Subscribe For more educational videos!<\/span>\n          <span class=\"channel-name\">Hostinger Academy<\/span>\n                    <\/div>\n      <\/div>\n      <div class=\"col-5 col-sm-4 d-flex align-items-center justify-content-end\">\n          <a class=\"subscribe-button\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" href=\"http:\/\/www.youtube.com\/channel\/UCbNIC-svDbtUOH2qsLnPQPg?sub_confirmation=1\">\n            <img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/icons\/youtube.svg\" alt=\"subscribe\">\n            <span>Subscribe<\/span>\n          <\/a>\n      <\/div>\n    <\/div>\n  <\/div>\n\n    \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-does-dns-work\">How does DNS work?<\/h2><p>DNS works by translating domain names into IP addresses through a multi-step process called <a href=\"\/ca\/tutorials\/reduce-dns-lookups\">DNS lookup<\/a>, which happens in milliseconds when you visit a website.<\/p><p>When you enter hostinger.com into your browser&rsquo;s address bar, you&rsquo;re submitting a DNS request. Your computer then checks whether it already has the IP address for that domain stored locally in a DNS record, which is simply an IP address that matches the <a href=\"\/ca\/tutorials\/fqdn\">fully-qualified domain name<\/a>.<\/p><p>Your computer searches its hosts file and cache for this information. The hosts file is a plain text file that maps hostnames to IP addresses in your operating system, while the cache is temporary data stored by your hardware or software components.<\/p><p>Matching IP addresses are commonly found in your <a href=\"\/ca\/tutorials\/clear-browser-cache\">browser cache<\/a> or your internet service provider&rsquo;s (ISP&rsquo;s) cache, which speeds up the process since your computer doesn&rsquo;t need to search elsewhere.<\/p><p>However, if no matching IP address is found in your hosts file and cache, the DNS resolution process continues with additional steps to find the correct address.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/01\/how-does-dns-work.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"590\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/01\/how-does-dns-work-1024x590.png\" alt=\"A graphic describing how DNS works\" class=\"wp-image-74881\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-what-dns-servers-are-involved-in-loading-a-website\">What DNS servers are involved in loading a website?<\/h2><p>If your computer can&rsquo;t find a matching IP address in your hosts file or cache, it will submit your DNS query to a network of four DNS servers:<\/p><ul class=\"wp-block-list\">\n<li><strong>DNS resolver (recursive resolver): <\/strong>Acts as the middleman between your computer and other DNS servers. It first checks its own cache for the IP address and, if found, returns it immediately. If not, it forwards your request to the root nameserver.<\/li>\n\n\n\n<li><strong>Root nameserver: <\/strong>Sits at the top of the DNS hierarchy and acts like a directory. It doesn&rsquo;t store the IP address you need but identifies the <a href=\"\/ca\/tutorials\/what-is-tld\">top-level domain<\/a> and directs the resolver to the correct TLD nameserver.<\/li>\n\n\n\n<li><strong>TLD nameserver:<\/strong> Manages all domain names within a specific top-level domain, such as <a href=\"\/ca\/tld\/com-domain\">.com<\/a>, <a href=\"\/ca\/tld\/org-domain\">.org<\/a>, <a href=\"\/ca\/tld\/net-domain\">.net<\/a>, and <a href=\"\/ca\/tld\/online-domain\">.online<\/a>. For hostinger.com, it would direct the resolver to the specific authoritative nameserver that holds Hostinger&rsquo;s records.<\/li>\n\n\n\n<li><strong>Authoritative nameserver: <\/strong>The final stop that stores all information for the specific domain, including its IP address. It sends the IP address back to the resolver, which then returns it to your computer so you can visit the website.<\/li>\n<\/ul><p>Finally, the resolver performs DNS caching by storing the IP address as temporary data, so future visits to the same site happen instantly without going through all these steps again.<\/p><h3 class=\"wp-block-heading\" id=\"h-what-are-the-main-differences-between-recursive-and-authoritative-dns-servers\">What are the main differences between recursive and authoritative DNS servers?<\/h3><p>The main difference is that recursive DNS servers act as middlemen that search for answers on your behalf, while authoritative DNS servers are the final sources that actually store and provide the official DNS records for specific domains.<\/p><p><strong>Recursive DNS server<\/strong><\/p><ul class=\"wp-block-list\">\n<li>Acts as an intermediary between your computer and other DNS servers. <\/li>\n\n\n\n<li>Doesn&rsquo;t store domain records but searches through the DNS hierarchy (root &rarr; TLD &rarr; authoritative servers) to find answers. <\/li>\n\n\n\n<li>Caches responses to speed up future queries for the same domains.<\/li>\n<\/ul><p><strong>Authoritative DNS server<\/strong><\/p><ul class=\"wp-block-list\">\n<li>Stores the official DNS records for specific domains and provides definitive answers about those domains. <\/li>\n\n\n\n<li>Contains the actual IP addresses, mail server information, and other DNS data. <\/li>\n\n\n\n<li>Doesn&rsquo;t need to query other servers as it has the authoritative information.<\/li>\n<\/ul><p>When you visit a website, the recursive server does the legwork of finding the right authoritative server.<\/p><p>Most internet users interact with recursive DNS servers (often provided by their ISP or services like Google DNS), while website owners manage authoritative DNS servers for their domains.<\/p><h2 class=\"wp-block-heading\" id=\"h-what-are-domain-nameservers\">What are domain nameservers?<\/h2><p>Domain nameservers are specialized servers that store all DNS records for a domain name and respond to queries about where that domain should direct visitors.<\/p><p>When someone visits your domain, the nameserver responds with the necessary information to connect them to your website&rsquo;s hosting server.<\/p><p>Nameserver addresses look similar to domain names. Most hosting providers give you two or more nameserver addresses. For example, here is what Hostinger&rsquo;s nameservers might look like:<\/p><pre class=\"wp-block-preformatted\">exampleone.dns-parking.com<\/pre><pre class=\"wp-block-preformatted\">exampletwo.dns-parking.com<\/pre><p>When launching a new site, nameserver addresses that look like the examples above would be provided to enable you to point your domain name to Hostinger.<\/p><p>If you bought your domain and hosting from the same provider, this happens automatically. But if you purchased your domain from one company and hosting from another, you&rsquo;ll need to update your domain&rsquo;s nameservers manually. You can check your current nameservers using <a href=\"https:\/\/dnschecker.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">DNS checkup<\/a> tools, <a href=\"https:\/\/client.rdap.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">RDAP lookup<\/a>, or <a href=\"\/ca\/whois\">Hostinger&rsquo;s WHOIS<\/a>.<\/p><p>Here&rsquo;s a typical example: if you host your website with Hostinger but bought your domain from a different provider, you&rsquo;d need to change your domain&rsquo;s nameservers to Hostinger&rsquo;s. This connects your domain name to your website.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Ready to register your own domain?<\/h4>\n                    <p>Check out our guides for more tips on <a href=\"\/ca\/tutorials\/how-to-buy-a-domain-name\">how to buy a domain name<\/a> and <a href=\"\/ca\/tutorials\/i-bought-a-domain-name-now-what\">what to do after you bought a domain name<\/a>. It includes a step-by-step process for registering a domain and answers other related questions.<\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-change-the-nameservers\">How to change the nameservers?<\/h2><p>You can only <a href=\"\/ca\/tutorials\/how-to-change-domain-nameservers\">change nameservers<\/a> where your domain is registered. For example, if you bought your domain from Hostinger, you can change the nameservers in hPanel. If you purchased it from Cloudflare Registrar, you can change it in your Cloudflare account.<\/p><p>Domain names purchased from Hostinger automatically use Hostinger&rsquo;s nameservers. If you <a href=\"\/ca\/domain-name-search\">buy a domain from Hostinger<\/a> along with hosting, you don&rsquo;t need to change anything.<\/p><p>Here&rsquo;s how to change nameservers from your domain registrar account. We&rsquo;ll use Hostinger as an example, but the process is similar with most domain providers:<\/p><ol class=\"wp-block-list\">\n<li>Log in to hPanel, navigate to <strong>Domains<\/strong>, and click <strong>Manage<\/strong> on the domain name you want to edit.<\/li>\n<\/ol><figure data-wp-context='{\"imageId\":\"69e1c58b95fd8\"}' data-wp-interactive=\"core\/image\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"339\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/domain-manage-1024x339.png\" alt=\"Domain portfolio panel within hPanel\" class=\"wp-image-131764\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>In the left panel, select <strong>DNS \/ Nameservers<\/strong>.<\/li>\n<\/ol><figure data-wp-context='{\"imageId\":\"69e1c58b9742b\"}' data-wp-interactive=\"core\/image\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"506\" height=\"452\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/domain-nameserver.png\" alt=\"Domain Overview section in hPanel\" class=\"wp-image-131765\"  sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Click <strong>Change Nameservers<\/strong>, and choose <strong>Use Hostinger nameservers<\/strong> to point your domain to Hostinger hosting, or select <strong>Change nameservers<\/strong> to enter custom nameserver addresses from another provider.<\/li>\n<\/ol><figure data-wp-context='{\"imageId\":\"69e1c58b98a76\"}' data-wp-interactive=\"core\/image\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"389\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/domain-select-nameservers-1024x389.png\" alt=\"Nameservers section within hPanel\" class=\"wp-image-131766\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Save <\/strong>your changes.<\/li>\n<\/ol><p>Once your nameservers point to your hosting provider, you can manage your DNS settings from your hosting control panel. For example, if your Cloudflare Registrar domain now points to Hostinger, you&rsquo;ll control all DNS settings through Hostinger instead of Cloudflare.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/ca\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-what-is-a-dns-zone-and-how-do-i-make-changes-to-it-for-my-domain\">What is a DNS zone, and how do I make changes to it for my domain?<\/h2><p>A DNS zone is a portion of the DNS namespace that&rsquo;s divided up for administrative control by a person or organization. Each DNS zone contains at least one DNS record.<\/p><p>When you use your web host&rsquo;s nameservers for your domain, you can make changes to the DNS zone using their provided tools. You might want to modify a DNS zone for various reasons, such as pointing your domain to a different server address.<\/p><p>You can easily modify DNS zone records using a <a href=\"\/ca\/tutorials\/how-to-use-hostinger-dns-zone-editor\">DNS Zone Editor<\/a>. If you use Hostinger, access the editor by logging into hPanel, then go to <strong>Advanced &rarr; DNS Zone Editor<\/strong> in the sidebar.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/10\/hpanel-advanced-dnszoneeditor-sidebar.png\"><img loading=\"lazy\" decoding=\"async\" width=\"436\" height=\"312\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/10\/hpanel-advanced-dnszoneeditor-sidebar.png\" alt=\"The DNS Zone Editor button on hPanel\" class=\"wp-image-96269\"  sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/a><\/figure><\/div><p>On the DNS Zone Editor page, you&rsquo;ll see a form to add new DNS records. You can add five main types of DNS records here.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/hpanel-advanced-dnszoneeditor.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"563\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/hpanel-advanced-dnszoneeditor-1024x563.png\" alt=\"The DNS Zone Editor on hPanel\" class=\"wp-image-82810\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Below the form is a table showing your existing records. Use the search bar to find specific DNS records, then click <strong>Delete<\/strong> or <strong>Edit<\/strong> to modify them.<\/p><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/hpanel-advanced-dnszoneeditor-dnsrecords.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"605\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/hpanel-advanced-dnszoneeditor-dnsrecords-1024x605.png\" alt=\"The DNS records on hPanel's DNS Zone Editor\" class=\"wp-image-82812\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Before configuring your DNS settings, it&rsquo;s important to understand the different types of DNS records and how they work.<\/p><h3 class=\"wp-block-heading\" id=\"h-a-record\">A record<\/h3><p>An A record (or DNS host record) points a hostname or domain to an IPv4 address. For example, it converts hostinger.com to 104.19.184.120. An AAAA record works the same way but uses IPv6 addresses instead.<\/p><p>While each hostname typically has one primary A record, you can add multiple A records for load balancing or backup purposes. By default, you&rsquo;ll find two A records in hPanel: one for your main domain (@) and one for FTP. Both usually point to the same IP address.<\/p><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-advanced-dnszoneeditor-arecords.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"216\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-advanced-dnszoneeditor-arecords-1024x216.png\" alt=\"A records on hPanel's DNS Zone Editor\" class=\"wp-image-82814\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>To modify your A records and point your domain to a different IP address, click <strong>Edit<\/strong> and update these fields:<\/p><ul class=\"wp-block-list\">\n<li><strong>Type:<\/strong> Change to AAAA only if your new IP address is IPv6.<\/li>\n\n\n\n<li><strong>Name:<\/strong> The @ symbol represents your root domain (like yourdomain.com). For subdomains like sub.yourdomain.com, enter just the subdomain part.<\/li>\n\n\n\n<li><strong>Points to:<\/strong> Enter the new IP address here.<\/li>\n\n\n\n<li><strong>TTL:<\/strong> Short for &ldquo;time-to-live,&rdquo; this tells DNS resolvers how long to cache the query. The default is usually 14400 (4 hours).<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-advanced-dnszoneeditor-edittherecord.png\"><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"465\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-advanced-dnszoneeditor-edittherecord.png\" alt=\"Editing an A record on hPanel's DNS Zone Editor\" class=\"wp-image-82824\"  sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-cname-records\">CNAME records<\/h3><p>A CNAME record (or &ldquo;canonical name&rdquo; record) creates an alias that points one domain to another domain name. When users visit the alias domain, DNS resolves it through the target domain to reach the same destination.<\/p><p>This saves time for domain administrators because you don&rsquo;t need multiple A records pointing different domain names to the same IP address.<\/p><p>For example, if you want alias1.yourdomain.com and alias2.yourdomain.com to both go to main.yourdomain.com, you&rsquo;d create a CNAME record for each alias.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/cname-record.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"257\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/cname-record-1024x257.png\" alt=\"CNAME record edit options on hpanel\" class=\"wp-image-31446\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>To add a new CNAME record, fill in these fields:<\/p><ul class=\"wp-block-list\">\n<li><strong>Name:<\/strong> Enter the alias domain or subdomain name.<\/li>\n\n\n\n<li><strong>Target:<\/strong> Enter the domain that the alias should point to.<\/li>\n<\/ul><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/edit-cname-record.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"213\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/edit-cname-record-1024x213.png\" alt=\"edit CNAME on hpanel\" class=\"wp-image-31449\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-mx-records\">MX records<\/h3><p>An MX record (mail exchanger) tells email providers which mail server handles incoming emails for your domain. For example, with an MX record for yourdomain.com, you can receive emails at addresses like name@yourdomain.com.<\/p><p>Hostinger provides two default MX records:<\/p><pre class=\"wp-block-preformatted\">mx1.hostinger.com<\/pre><pre class=\"wp-block-preformatted\">mx2.hostinger.com<\/pre><p>If you want to use a third-party email service like <a href=\"\/ca\/google-workspace\">Google Workspace<\/a>, you&rsquo;ll need to replace these default MX records with Google&rsquo;s mail servers. <\/p><p>When adding or modifying MX records, fill in these fields:<\/p><ul class=\"wp-block-list\">\n<li><strong>Mail server: <\/strong>The address of your mail server. For Google Workspace, it looks like ASPMX.L.GOOGLE.COM.<\/li>\n\n\n\n<li><strong>Priority: <\/strong>If you have multiple mail servers, this determines which one gets used first. Lower numbers have higher priority.<\/li>\n<\/ul><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/edit-mx-record.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"197\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/edit-mx-record-1024x197.png\" alt=\"edit MX record on hpanel\" class=\"wp-image-31450\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-txt-records\">TXT records<\/h3><p>A TXT record lets you add readable text information about your domain for both humans and machines. While it doesn&rsquo;t directly change how your DNS works, it provides important information to other services about your domain. You can have multiple TXT records in your DNS zone.<\/p><p>One common use for TXT records is creating Sender Policy Framework (SPF) records. These specify which servers are authorized to send emails on behalf of your domain. Hostinger automatically creates an SPF record for you.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/txt-record.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"156\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/txt-record-1024x156.png\" alt=\"TXT record options to edit on hpanel\" class=\"wp-image-31459\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Adding or modifying TXT records works like other record types. Simply fill in the TXT value field with the information you want to include.<\/p><p>Hostinger&rsquo;s default SPF record looks like this:<\/p><pre class=\"wp-block-preformatted\">v=spf1 include:_spf.mail.hostinger.com ~all.<\/pre><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/edit-txt.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"215\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/edit-txt-1024x215.png\" alt=\"edit TXT record on hpanel\" class=\"wp-image-31451\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-srv-records\">SRV Records<\/h3><p>An SRV record connects a hostname to a specific service and includes more detailed information than other DNS records, like port numbers. This helps applications find the right settings for particular services on your domain.<\/p><p>Hostinger doesn&rsquo;t include SRV records by default, but you can add them if needed. For example, you might add an SRV record for an XMPP instant messaging service.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/srv-record.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"305\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/srv-record-1024x305.png\" alt=\"SRV record option to edit on hpanel\" class=\"wp-image-31458\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>When creating SRV records, fill in these fields:<\/p><ul class=\"wp-block-list\">\n<li><strong>Name:<\/strong> The service name in <strong>_service._protocol.example.com<\/strong> format. For XMPP, something like _xmpp-client._tcp.example.net.<\/li>\n\n\n\n<li><strong>Weight:<\/strong> If multiple SRV records have the same priority, this determines which gets used first. Lower numbers have higher priority.<\/li>\n\n\n\n<li><strong>Port:<\/strong> The port number assigned to the service, which helps computers route the right type of traffic.<\/li>\n\n\n\n<li><strong>Target:<\/strong> The address of the server that handles this service.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-dns-propagation\">DNS propagation<\/h2><p>Each time you modify or add a new DNS record, there&rsquo;s a period where the changes spread across DNS servers worldwide. This is called the DNS propagation period.<\/p><p>Besides adding or modifying DNS records, changing your domain&rsquo;s nameservers or adding new subdomains will also trigger DNS propagation.<\/p><p>DNS propagation can take anywhere from a few minutes to 24 hours to complete fully. During this time, some visitors might see your old content while others see the new version, but your site typically remains accessible. <\/p><p>For domains using Hostinger nameservers, you can check the propagation status directly in hPanel.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2025\/02\/domain-propagation-status.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"613\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2025\/02\/domain-propagation-status-1024x613.png\" alt=\"Domain propagation status banner in hPanel\" class=\"wp-image-122359\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>You can also check DNS propagation progress in real-time by entering your domain into a DNS checker tool like <a href=\"https:\/\/www.whatsmydns.net\/\" target=\"_blank\" rel=\"noopener\">WhatsMyDNS<\/a>. <\/p><p>These tools show you how your DNS changes are spreading across different locations worldwide, so you can see which areas have updated and which are still showing the old information..<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/whatsmydns.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"463\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/01\/whatsmydns-1024x463.png\" alt=\"whats my dns landing page\" class=\"wp-image-31460\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-dnssec\">DNSSEC<\/h2><p>Domain Name Security Extensions (DNSSEC) is a security technology available through many free and <a href=\"\/ca\/tutorials\/premium-dns\">premium DNS<\/a> services. It works by adding cryptographic signatures to DNS records, which helps verify that the DNS responses you receive are authentic and haven&rsquo;t been tampered with by attackers.<\/p><p>DNSSEC availability varies by domain registrar and hosting provider. For example, Hostinger supports DNSSEC for some domains, but not all registrars or hosting providers offer this feature.<\/p><p>If you&rsquo;re interested in enabling DNSSEC, contact your hosting provider or domain registrar to check if it&rsquo;s available for your specific domain.<\/p><h2 class=\"wp-block-heading\" id=\"h-why-should-you-care-about-dns\">Why should you care about DNS?<\/h2><p>DNS directly affects your website&rsquo;s performance and overall online presence, and when it breaks, your business can go offline.<\/p><p>Beyond just getting visitors to your site, DNS records like SPF, DKIM, and DMARC also secure your email system by blocking unauthorized senders from impersonating your domain and damaging your reputation.<\/p><p>However, DNS can also face issues. Server outages, corrupted cache files, and configuration errors can all prevent users from reaching your site. If you&rsquo;re experiencing connectivity problems, learn <a href=\"\/ca\/tutorials\/dns-server-not-responding\">how to fix a DNS server that is not responding<\/a> to get back online quickly.<\/p><p>With this DNS foundation, you&rsquo;re equipped to troubleshoot connection issues, secure your email delivery, and manage your domain&rsquo;s technical settings with confidence.<\/p><h3 class=\"wp-block-heading\" id=\"h-how-do-i-check-my-dns\">How do I check my DNS?<\/h3><p>Open your command prompt app, type <strong>ipconfig \/displaydns<\/strong>, and press Enter to see your cached DNS records. This command shows you all the DNS information temporarily stored on your computer, including recently resolved domain names and their corresponding IP addresses.<\/p><p>You can also use the command prompt to clear out old or corrupted DNS data that might be causing connection problems. If you&rsquo;re experiencing issues with websites not loading properly, learn <a href=\"\/ca\/tutorials\/how-to-flush-dns\">how to flush DNS<\/a> to refresh your local DNS cache and potentially resolve connectivity issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Domain Name System (DNS) associates website names with their numerical Internet Protocol (IP) addresses that a web browser needs to locate the server a website is on. This means you can type hostinger.com instead of having to memorize strings of numbers like 172.217.14.142. But DNS does more than make the internet user-friendly. It keeps [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/what-is-dns\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":186,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"What Is DNS and How Does It Work \u2013 A Comprehensive Guide","rank_math_description":"Learn what a domain name system is, the uses of DNS, and how it works. This article will cover DNS Zone, DNS records, DNS servers, and more.","rank_math_focus_keyword":"what is dns","footnotes":""},"categories":[22686],"tags":[],"class_list":["post-13797","post","type-post","status-publish","format-standard","hentry","category-domains"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/what-is-dns","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/o-que-e-dns","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/quest-ce-que-le-dns","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/que-es-dns","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/apa-itu-dns","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/was-ist-dns","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/cos-e-il-dns","default":0},{"locale":"nl-NL","link":"https:\/\/www.hostinger.com\/nl\/tutorials\/wat-is-dns","default":0},{"locale":"ar-AE","link":"https:\/\/www.hostinger.com\/ae\/tutorials\/what-is-dns","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/what-is-dns","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/what-is-dns","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/what-is-dns","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/que-es-dns","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/que-es-dns","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/que-es-dns","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/o-que-e-dns","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/what-is-dns","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/what-is-dns","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/what-is-dns","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/what-is-dns","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/13797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/186"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=13797"}],"version-history":[{"count":69,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/13797\/revisions"}],"predecessor-version":[{"id":141361,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/13797\/revisions\/141361"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=13797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=13797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=13797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}