<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DNS: forwarding - what if forwarders are not reacheable etc...? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5325457#M81410</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Im continuosly learning DNS on linux and have some doubts sometimes.&lt;/P&gt;&lt;P&gt;Assuming that in named.conf I have following settings in options&lt;/P&gt;&lt;P&gt;options {&lt;BR /&gt;forwarders {X.X.X.X; X.X.X.Y;};&lt;BR /&gt;forward only;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now.&lt;/P&gt;&lt;P&gt;Assuming that named was running some time and sudenly forwarders are not reacheable.&lt;/P&gt;&lt;P&gt;However when I do nslookup I get proper response. Is it from cache or maybe it is from the fact that&lt;/P&gt;&lt;P&gt;in named.conf there is - apart of clauses where this server is master for own zones -&amp;nbsp; clause like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zone "." IN {&lt;BR /&gt;type hint;&lt;BR /&gt;file "named.ca";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in filename is a list of root servers known as root zone.&lt;/P&gt;&lt;P&gt;Anyway. Studying documentation I see that&lt;/P&gt;&lt;P&gt;When a name server cannot resolve a query&lt;BR /&gt;from its local zone files or its cache, it uses the name servers obtained via this query to return a&lt;BR /&gt;referral (if an iterative query) or to find an answer (if a recursive query).&lt;/P&gt;&lt;P&gt;Now how it is dealing when forwarders are defined and forward only is set in globa options.&lt;/P&gt;&lt;P&gt;Do forwarder settings in global sections&amp;nbsp; "overwrites"&amp;nbsp; this zone "." settings?&lt;/P&gt;&lt;P&gt;And what if forwarders are not reacheable?&lt;/P&gt;&lt;P&gt;Thanks for hints.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2011 09:13:39 GMT</pubDate>
    <dc:creator>mar_q</dc:creator>
    <dc:date>2011-09-08T09:13:39Z</dc:date>
    <item>
      <title>DNS: forwarding - what if forwarders are not reacheable etc...?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5325457#M81410</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Im continuosly learning DNS on linux and have some doubts sometimes.&lt;/P&gt;&lt;P&gt;Assuming that in named.conf I have following settings in options&lt;/P&gt;&lt;P&gt;options {&lt;BR /&gt;forwarders {X.X.X.X; X.X.X.Y;};&lt;BR /&gt;forward only;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now.&lt;/P&gt;&lt;P&gt;Assuming that named was running some time and sudenly forwarders are not reacheable.&lt;/P&gt;&lt;P&gt;However when I do nslookup I get proper response. Is it from cache or maybe it is from the fact that&lt;/P&gt;&lt;P&gt;in named.conf there is - apart of clauses where this server is master for own zones -&amp;nbsp; clause like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zone "." IN {&lt;BR /&gt;type hint;&lt;BR /&gt;file "named.ca";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in filename is a list of root servers known as root zone.&lt;/P&gt;&lt;P&gt;Anyway. Studying documentation I see that&lt;/P&gt;&lt;P&gt;When a name server cannot resolve a query&lt;BR /&gt;from its local zone files or its cache, it uses the name servers obtained via this query to return a&lt;BR /&gt;referral (if an iterative query) or to find an answer (if a recursive query).&lt;/P&gt;&lt;P&gt;Now how it is dealing when forwarders are defined and forward only is set in globa options.&lt;/P&gt;&lt;P&gt;Do forwarder settings in global sections&amp;nbsp; "overwrites"&amp;nbsp; this zone "." settings?&lt;/P&gt;&lt;P&gt;And what if forwarders are not reacheable?&lt;/P&gt;&lt;P&gt;Thanks for hints.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2011 09:13:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5325457#M81410</guid>
      <dc:creator>mar_q</dc:creator>
      <dc:date>2011-09-08T09:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: DNS: forwarding - what if forwarders are not reacheable etc...?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5327119#M81411</link>
      <description>&lt;P&gt;If nslookup says "Non-authoritative answer", then the response is from cache.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A global "forward only;" should be overrideable only by having authoritative zones configured (i.e. either "master" or "slave" zones) or a set of zone-specific forwarding settings (a "forward" type zone). The hint zone should not affect forwarding at all: if you find it does, you have found a bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Queries for authoritative zones are never forwarded (unless it's an expired slave zone): since an authoritative zone is by definition a "complete" set of records for that zone, BIND can just use the information it already has; there would be no point of asking another name server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The root hint zone has been a requirement for named for a very long time. If the hint zone does not exist, modern versions of named have a built-in set of hints to use. When global configuration says "forward only" and there are no zone-specific forwarding overrides configured, BIND has no need for root hints at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made some quick tests on BIND 9.7.3 on a Debian 6.0.2 system: apparently, if the global configuration is "forward only" and there are no zones with overriding forwarding settings, BIND won't try to fetch an up-to-date list of root name servers at all. So it looks like the hint zone is completely ignored in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the configuration says "forward only" &lt;STRONG&gt;and&lt;/STRONG&gt; the forwarders are not reachable &lt;STRONG&gt;and&lt;/STRONG&gt; the requested information is not in BIND's cache, you will get a SERVFAIL error instead of any answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using nslookup, it should look like this:&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;P&gt;# nslookup &lt;A target="_blank" href="http://www.google.com."&gt;www.google.com.&lt;/A&gt;&lt;BR /&gt;Server:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 127.0.0.1&lt;BR /&gt;Address:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 127.0.0.1#53&lt;BR /&gt;&lt;BR /&gt;** server can't find &lt;A target="_blank" href="http://www.google.com:"&gt;www.google.com:&lt;/A&gt; SERVFAIL&lt;BR /&gt;&lt;BR /&gt;﻿&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:19:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5327119#M81411</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-09-09T12:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: DNS: forwarding - what if forwarders are not reacheable etc...?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5327141#M81412</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Thank you very much for answer and big effort.&lt;/P&gt;&lt;P&gt;Your answer is quite clear for me.&lt;/P&gt;&lt;P&gt;However.&lt;/P&gt;&lt;P&gt;I'm a little bit confused thought.&lt;/P&gt;&lt;P&gt;I've noticed that&amp;nbsp; I get the SERVFAIL (talking about forwarders) in log for some requests... but doing nslookup I get proper answer for the same names reported. (the server answering for nslookup is my local DNS which configuration we here discuss)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your post I understand that all requests (which are not for zones for which my DNS is authoritative) should be forwarded and the entry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zone "." IN {&lt;BR /&gt;type hint;&lt;BR /&gt;file "named.ca"﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;has nothing to do here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is going on here in my case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:40:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5327141#M81412</guid>
      <dc:creator>mar_q</dc:creator>
      <dc:date>2011-09-09T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: DNS: forwarding - what if forwarders are not reacheable etc...?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5327613#M81413</link>
      <description>&lt;P&gt;So you get SERVFAIL logged by BIND, and at the same time your nslookup is giving you a correct result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A complete understanding of the situation might require a trace of the DNS traffic... but my first guesses would be one of the following:&lt;/P&gt;&lt;P&gt;A.) if you have more than one forwarder configured: one forwarder may be unable/unwilling to answer, so BIND logs an error and sends the query to another forwarder, which successfully returns the requested information.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;B.) if you have previously made the same query successfully, BIND has cached the information; but all DNS information that's stored outside an authoritative server has a limited lifetime. BIND may be thinking: "this cached information will soon be stale, and since the client keeps asking for it, maybe I should proactively refresh it." It sends a query to the forwarder, and gets a SERVFAIL. "Oh well. Since the cached information is not quite stale yet, I'll just keep giving copies of it to the clients now and try to refresh it again later."&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 19:05:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5327613#M81413</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-09-09T19:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: DNS: forwarding - what if forwarders are not reacheable etc...?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5327649#M81414</link>
      <description>&lt;P&gt;Yes that's true. I got SERVFAIL for certain queries and and get proper response the same time using nslookup.&lt;/P&gt;&lt;P&gt;A) No. It's not the case. Both forwarders are failing.&lt;/P&gt;&lt;P&gt;B) If it is so it might be true. But I'm not so experienced in it to say this is it :-)&lt;/P&gt;&lt;P&gt;I will also study the book about DNS because I'm intersted in that.&lt;/P&gt;&lt;P&gt;But you see. In fact. In the book there is no clear description how it works. What I mean there is no certain scenarios discussed - examples.&lt;/P&gt;&lt;P&gt;Thank you for your support. We can continue the case if you want.&lt;/P&gt;&lt;P&gt;I will also try to install linux on laptop at home with bind and do some practises.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 19:39:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5327649#M81414</guid>
      <dc:creator>mar_q</dc:creator>
      <dc:date>2011-09-09T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: DNS: forwarding - what if forwarders are not reacheable etc...?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5328661#M81415</link>
      <description>&lt;P&gt;Perhaps your book does not discuss some scenarios because they are described in the relevant Internet standards documents (RFCs)?&lt;/P&gt;&lt;P&gt;If you want to understand DNS, you should read these RFCs:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://tools.ietf.org/html/rfc1035"&gt;http://tools.ietf.org/html/rfc1035&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://tools.ietf.org/html/rfc1123"&gt;http://tools.ietf.org/html/rfc1123&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://tools.ietf.org/html/rfc2181"&gt;http://tools.ietf.org/html/rfc2181&lt;/A&gt;﻿&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2011 09:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-forwarding-what-if-forwarders-are-not-reacheable-etc/m-p/5328661#M81415</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-09-12T09:19:11Z</dc:date>
    </item>
  </channel>
</rss>

