On 2014-07-14 19:59, David C. Rankin wrote:
On 07/10/2014 11:27 AM, Carlos E. R. wrote:
At this moment, this machine is using bind, with this config:
forwarders { 192.168.1.1; }; forward first;
Get rid of `forward first;` and replace it with `forward only`. Here is a snippet from the bind 8/9 DNS-HOWWTO:
The default setting is "forward first", which first asks each of the forwarders, and then tries the normal approach of doing the legwork itself if that fails. This gives the familiar behaviour of gethostbyname() taking an inordinately long time when the link is not up. (or full as in your case)
No, it does not take long. It fails, and fails relatively fast, few seconds.
But if "forward only" is set, then BIND gives up when it doesn't get a response from the forwarders, and gethostbyname() returns immediately.
Well, I really prefer getting an answer than a failure. :-) -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)