{"id":710,"date":"2019-05-17T10:10:07","date_gmt":"2019-05-17T09:10:07","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=710"},"modified":"2019-05-17T10:10:07","modified_gmt":"2019-05-17T09:10:07","slug":"bind-server-not-responding-to-external-queries","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/bind-server-not-responding-to-external-queries\/","title":{"rendered":"Bind server not responding to external queries"},"content":{"rendered":"<p>Recently I ran into a problem where one DNS server setup using Bind9 was not responding to external queries.<\/p>\n<p><span style=\"color: #0000ff;\">systemctl status bind9 &#8211;no-pager &#8211;full\u00a0 <span style=\"color: #000000;\">shows &#8220;<span style=\"color: #ff0000;\">Denied<\/span>&#8220;<\/span><br \/>\n<\/span><\/p>\n<p>Common issues (listed below) that can cause the problem were not there.<\/p>\n<ol>\n<li>Bind9 was running properly<\/li>\n<li>The server was listening on both IPv4 and IPv6<\/li>\n<li>Port 53 was open<\/li>\n<li>The DNS server or port 53 could be connected using Telnet<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>The issue was with &#8220;recursive query&#8221; permissions. To allow external queries needed to add the following option<\/p>\n<pre class='wp-code-highlight prettyprint'>options {\r\n\u00a0\u00a0 ...\r\n\u00a0\u00a0 ...\r\n\u00a0\u00a0\u00a0\u00a0 allow-recursion { any; };\r\n\u00a0\u00a0 ...\r\n\u00a0\u00a0 ...\r\n}<\/pre>\n<p>The options are commonly stored in <span style=\"color: #0000ff;\">\/etc\/bind\/named.conf.options <span style=\"color: #000000;\">for Bind9 servers. <\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I ran into a problem where one DNS server setup using Bind9 was not responding to external queries. systemctl status bind9 &#8211;no-pager &#8211;full\u00a0 shows &#8220;Denied&#8220; Common issues (listed below) that can cause the problem were not there. Bind9 was running properly The server was listening on both IPv4 and IPv6 Port 53 was open&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/bind-server-not-responding-to-external-queries\/\">Continue reading <span class=\"screen-reader-text\">Bind server not responding to external queries<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[205,206,201,204,200,132],"class_list":["post-710","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","tag-nameserver","tag-nameserver-query","tag-bind","tag-bind-dns","tag-bind9","tag-dns","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=710"}],"version-history":[{"count":1,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/710\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/710\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}