{"id":4,"date":"2017-11-08T09:29:41","date_gmt":"2017-11-08T15:29:41","guid":{"rendered":"https:\/\/help.marketingservices.dev\/?p=4"},"modified":"2020-11-27T10:33:12","modified_gmt":"2020-11-27T16:33:12","slug":"dns-record-caching","status":"publish","type":"post","link":"https:\/\/help.marketingservices.dev\/?p=4","title":{"rendered":"Why are DNS Record changes not instant?"},"content":{"rendered":"<p dir=\"ltr\"><a href=\"https:\/\/help.marketingservices.dev\/?p=10\">Domain Name System (DNS) records<\/a> are used by the infrastructure of the internet to send data through the correct paths i.e. data from your website to the customer on a website.<\/p>\n<p dir=\"ltr\"><strong>So why when DNS Records are changed, do they not update instantly?<\/strong><\/p>\n<p dir=\"ltr\">This is because the DNS uses caching. It would slow down the internet extremely if every request involved asking a NameServer for the records, so they are cached by Internet Service Providers (ISP).<\/p>\n<p dir=\"ltr\">No one can control exactly how this caching affects you because caching is left up to the ISP, not your DNS Provider. But there are 2 ways you can influence it:<\/p>\n<ol>\n<li><strong>Set the Time To Live (TTL)<\/strong>\n<ul>\n<li>DNS records have a way to configure the TTL (the length of time to cache the records)<\/li>\n<li>Typically this is set to something between 5 minutes and an hour<\/li>\n<li>It still depends on the ISP properly obeying this value (which hopefully they do)<\/li>\n<li>Most DNS Providers (Cloudflare or Name.com or whoever) will let you set the TTL<\/li>\n<\/ul>\n<\/li>\n<li><strong>Manually flush the cache<\/strong>\n<ul>\n<li>Google provides a way to manually flush their DNS records cache one domain at a time<\/li>\n<li>Sometimes flushing the cache fails, but sometimes it works immediately. It&#8217;s unclear why Google&#8217;s flush-cache feature fails in some cases.<\/li>\n<li><a href=\"https:\/\/developers.google.com\/speed\/public-dns\/cache\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?hl=en&amp;q=https:\/\/developers.google.com\/speed\/public-dns\/cache&amp;source=gmail&amp;ust=1510241168741000&amp;usg=AFQjCNGI57VaWW4ICBA38_2T2zdE6Rc5Kg\">https:\/\/developers.google.com\/<wbr \/>speed\/public-dns\/cache<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Domain Name System (DNS) records are used by the infrastructure of the internet to send data through the correct paths i.e. data from your website to the customer on a website. So why when DNS Records are changed, do they not update instantly? This is because the DNS uses caching. It would slow down the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4"}],"version-history":[{"count":8,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":433,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions\/433"}],"wp:attachment":[{"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}