{"id":1694,"date":"2020-06-08T01:04:14","date_gmt":"2020-06-07T17:04:14","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1694"},"modified":"2026-01-12T13:35:49","modified_gmt":"2026-01-12T05:35:49","slug":"troubleshooting-dnssec","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/troubleshooting-dnssec","title":{"rendered":"Troubleshooting DNSSEC"},"content":{"rendered":"<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h2><strong><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/blog.resellerspanel.com\/wp-content\/uploads\/2017\/02\/dnssec-enabled-on-our-platform-1280x720.png\" alt=\"Troubleshooting DNSSEC\" width=\"1280\" height=\"720\" \/><\/strong><\/h2>\n<h2 class=\"mkb-anchor__title\">esting DNSSEC with Dig<\/h2>\n<\/div>\n<p><em>Troubleshooting <a href=\"https:\/\/www.ibm.com\/think\/topics\/dnssec\" rel=\"nofollow noopener\" target=\"_blank\">DNSSEC<\/a> with Dig<\/em>\u00a0is a command-line tool to query a nameserver for DNS records. For instance,\u00a0<em>dig\u00a0<\/em>can ask a DNS resolver for the IP address of\u00a0<em>www.cloudflare.com\u00a0<\/em>(The option\u00a0<em>+short<\/em>\u00a0outputs the result only)<em>:<\/em><\/p>\n<pre>$\u00a0dig www.cloudflare.com +short 198.41.215.162 198.41.214.162<\/pre>\n<p>Use\u00a0<em>dig<\/em>\u00a0to verify DNSSEC records. \u00a0In the example below, t<span data-ref=\"feea3476-06c4-419b-a194-db823e11e1dc\">he last line of output is the\u00a0<em>RRSIG\u00a0record<\/em>. \u00a0<em>RRSIG<\/em>\u00a0is the DNSSEC signature attach to the record. With the\u00a0<em>RRSIG<\/em>, a DNS resolver determines whether a DNS response is trust.<\/span><\/p>\n<pre>$\u00a0dig www.cloudflare.com +dnssec +short 198.41.214.162 198.41.215.162 A 13 3 300 20180927180434 20180925160434 35273 cloudflare.com. DYYZ\/bhHSAIlpvu\/HEUsxlzkC9NsswbCQ7dcfcuiNBrbhYV7k3AI8t46 QMnOlfhwT6jqsfN7ePV6Fwpym3B0pg==<\/pre>\n<p><span data-ref=\"feea3476-06c4-419b-a194-db823e11e1dc\"><em>Dig<\/em>\u00a0also retrieves the public key use to verify the DNS record. \u00a0A domain\u2019s DNS records are all signed with the same public key. Therefore,<\/span>\u00a0query for the root domain\u2019s public key, not the subdomain\u2019s public key:<\/p>\n<pre>$\u00a0dig\u00a0DNSKEY cloudflare.com +short 257 3 13 mdsswUyr3DPW132mOi8V9xESWE8jTo0dxCjjnopKl+GqJxpVXckHAeF+ KkxLbxILfDLUT0rAK9iUzy1L53eKGQ== 256 3 13 koPbw9wmYZ7ggcjnQ6ayHyhHaDNMYELKTqT+qRGrZpWSccr\/lBcrm10Z\u00a01PuQHB3Azhii+sb0PYFkH1ruxLhe5g==<\/pre>\n<p>The DNS response includes two records:<\/p>\n<ul>\n<li><em>DNSKEY record<\/em>\u00a0<strong>256<\/strong>\u00a0is the public key call Zone-signing-key, use to verify the DNS record signatures for\u00a0<em>A, MX, CNAME, SRV<\/em>, etc.<\/li>\n<li><span data-ref=\"24cfe87f-e841-405a-885e-30f24ca1a609\"><em>DNSKEY record<\/em>\u00a0<strong>257<\/strong>\u00a0is call the Key-Signing Key, use to verify the signatures of the\u00a0<em>DNSKEY, CDS, and CDNSKEY records<\/em>.<\/span><\/li>\n<\/ul>\n<p>Details on how to verify the signatures with the public key are beyond the scope of this article.<\/p>\n<p>When not using the\u00a0<em>+short<\/em>\u00a0option with\u00a0<em>dig<\/em>, a DNS response is DNSSEC authenticated if the\u00a0<strong>ad<\/strong>\u00a0flag appears in the response header:<\/p>\n<pre>$\u00a0dig\u00a0www.cloudflare.com [...] ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR,\u00a0id: 65326\r\n;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 [...] ;; QUESTION SECTION: ;www.cloudflare.com.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IN\u00a0 A [...] ;; ANSWER SECTION: www.cloudflare.com. 15\u00a0 IN\u00a0 A\u00a0\u00a0 198.41.215.162 www.cloudflare.com. 15\u00a0 IN\u00a0 A\u00a0\u00a0 198.41.214.162<\/pre>\n<hr \/>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h2 class=\"mkb-anchor__title\">Viewing the DNSSEC Chain of Trust with Dig<\/h2>\n<\/div>\n<p>Full verification of domain signatures (for example:\u00a0<em>cloudflare.com<\/em>) involves verifying the key-signing key at the top-level-domain (for example:\u00a0<em>.com<\/em>). \u00a0Similar verification is\u00a0<span data-ref=\"40babf11-78cb-4596-ae24-d082e906b41e\">then performed by checking the key-signing\u00a0<\/span><span data-ref=\"40babf11-78cb-4596-ae24-d082e906b41e\">key of\u00a0<em>.com<\/em>\u00a0at the root server level. DNSSEC root keys are distributed to DNS clients to complete the trust chain.<\/span><\/p>\n<p>When DNSSEC is enabled, a\u00a0<em>DS record<\/em>\u00a0is required at the registrar\u2019s DNS. The\u00a0<em>DS record<\/em>\u00a0contains a hash of the public key-signing key as well as metadata about the key.<\/p>\n<p>Use\u00a0<em>dig<\/em>\u00a0to find a\u00a0<em>DS record<\/em>:<\/p>\n<pre>$\u00a0dig\u00a0+short DS cloudflare.com 2371 13 2 32996839A6D808AFE3EB4A795A0E6A7A39A76FC52FF228B22B76F6D6 3826F2B9<\/pre>\n<p><span data-ref=\"c8cd566c-f30c-4cd8-abc7-5e0fdf987b99\">When using the\u00a0<\/span><em><span data-ref=\"c8cd566c-f30c-4cd8-abc7-5e0fdf987b99\">+trace\u00a0<\/span><\/em><span data-ref=\"c8cd566c-f30c-4cd8-abc7-5e0fdf987b99\">option<\/span><span data-ref=\"c8cd566c-f30c-4cd8-abc7-5e0fdf987b99\">,<\/span><em>\u00a0dig<\/em>\u00a0confirms whether an answer is<span data-ref=\"c8cd566c-f30c-4cd8-abc7-5e0fdf987b99\">\u00a0returned by the nameserver for\u00a0<\/span><span data-ref=\"c8cd566c-f30c-4cd8-abc7-5e0fdf987b99\"><em>cloudflare.com<\/em>\u00a0<\/span><span data-ref=\"c8cd566c-f30c-4cd8-abc7-5e0fdf987b99\">or the nameserver for\u00a0<em>.com<\/em>. \u00a0In this example, the\u00a0<em>DS record<\/em>\u00a0for\u00a0<em>cloudflare.com<\/em>\u00a0is return by e.gtld-servers.net:<\/span><\/p>\n<pre>$ dig\u00a0DS cloudflare.com +trace [...] cloudflare.com.\u00a0\u00a0\u00a0\u00a0 86400\u00a0\u00a0 IN\u00a0 DS\u00a0 2371 13 2 32996839A6D808AFE3EB4A795A0E6A7A39A76FC52FF228B22B76F6D6 3826F2B9 [...] com.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 172800\u00a0 IN\u00a0 NS\u00a0 e.gtld-servers.net. [...] ;; Received 1213 bytes from 2001:502:1ca1::30#53(e.gtld-servers.net) in 37 ms<\/pre>\n<p>An easy alternative to manually running all the steps above is to use the DNSViz online tool. See further details on troubleshooting DNSSEC Validation using DNSViz or an example of DNSSEC results of cloudflare.com via DNSViz.<\/p>\n<hr \/>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h2 class=\"mkb-anchor__title\">Troubleshooting DNSSEC Validation with Dig<\/h2>\n<\/div>\n<p>Issues occur if authoritative DNS providers are changed without updating or removing old DNSSEC records at the registrar:<\/p>\n<div data-hasbody=\"true\" data-macro-name=\"code\">\n<pre>$\u00a0dig\u00a0A brokendnssec.net @1.0.0.1 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: SERVFAIL,\u00a0id: 10663<\/pre>\n<p>Confirm whether a\u00a0<em>SERVFAIL<\/em>\u00a0response is related to DNSSEC by running\u00a0<em>dig<\/em>\u00a0with the\u00a0<em>+cd<\/em>\u00a0option. The\u00a0<em>+cd<\/em>\u00a0option provides DNS results without any DNSSEC validation in place.<\/p>\n<pre>$ dig\u00a0A brokendnssec.net @1.0.0.1 +dnssec +cd\u00a0+short 104.20.49.61 104.20.48.61<\/pre>\n<p>In the above example, DNSSEC is misconfigure if a proper DNS response is receive when using the\u00a0<em>+cd<\/em>\u00a0option but queries using DNSSEC return a\u00a0<em>SERVFAIL<\/em>\u00a0response<em>.<\/em>\u00a0This issue often happens when authoritative nameservers are change but\u00a0<em>DS records<\/em>\u00a0are not update. \u00a0The issue can also occur if an attacker attempts to forge a response to a query.<\/p>\n<hr \/>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h2 class=\"mkb-anchor__title\">Troubleshooting DNSSEC Validation using DNSViz<\/h2>\n<\/div>\n<ol>\n<li>Browse to\u00a0http:\/\/dnsviz.net\/<\/li>\n<li>Enter a domain name in the text field that appears.<\/li>\n<li>If DNSViz has never analyzed the site before, click the\u00a0<strong>Analyze<\/strong>\u00a0button that appears.<\/li>\n<li>If the site has been analyze by DNSViz before, click the\u00a0<strong>Update Now<\/strong>\u00a0button that appears.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h3 class=\"mkb-anchor__title\">Example without DNSSEC<\/h3>\n<\/div>\n<p>Below is an example of a working domain without DNSSEC as diagrammed by dnsviz.net:<\/p>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h3 class=\"mkb-anchor__title\">Example with correct DNSSEC<\/h3>\n<\/div>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<p class=\"mkb-anchor__title\">Below is an example of a domain with functioning DNSSEC records between the TLD nameservers and the authoritative nameservers for\u00a0<em>cloudflare.com:<\/em><\/p>\n<p class=\"mkb-anchor__title\"><span style=\"color: #1d1d1d; font-family: Montserrat, sans-serif; font-size: 2.3571em; letter-spacing: -0.3px;\">Example with missing or incorrect RRSIG record on authoritative nameserver<\/span><\/p>\n<\/div>\n<p>Below is an example of how dnsviz.net. It will display incorrect delegation when no valid DNSKEY records are provide by the authoritative nameserver. To match the DS record published by the TLD nameserver:<\/p>\n<hr \/>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h2 class=\"mkb-anchor__title\">Next steps<\/h2>\n<\/div>\n<p>If a problem is discover with DNSSEC implementation, contact the domain\u2019s registrar and confirm the\u00a0<em>DS record<\/em>\u00a0matches what the authoritative DNS provider has specify. If Cloudflare is the authoritative DNS provider, follow the instructions for configuring DNSSEC with Cloudflare.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div data-hasbody=\"true\" data-macro-name=\"code\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>esting DNSSEC with Dig Troubleshooting DNSSEC with Dig\u00a0is a command-line tool to query a nameserver for DNS records. For instance,\u00a0dig\u00a0can ask a DNS resolver for the IP address of\u00a0www.cloudflare.com\u00a0(The option\u00a0+short\u00a0outputs the result only): $\u00a0dig www.cloudflare.com +short 198.41.215.162 198.41.214.162 Use\u00a0dig\u00a0to verify DNSSEC records. \u00a0In the example below, the last line of output is the\u00a0RRSIG\u00a0record. \u00a0RRSIG\u00a0is the DNSSEC signature attach to the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[43],"kbtag":[1390],"class_list":["post-1694","kb","type-kb","status-publish","hentry","kbtopic-cloudflare","kbtag-dnssec"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=1694"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1694\/revisions"}],"predecessor-version":[{"id":5995,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1694\/revisions\/5995"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1694"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1694"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}