This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

BIND9.9.2-P1 throws general: error: socket: file descriptor exceeds limit (128/64)


Hello,
I am running into a problem running BIND9.9.2-PI on Cygwin throwing
"general: error: socket: file descriptor exceeds limit (128/64)".  I can
circumvent the specific error by running named with the "-S 256" option,
which will allow named to setup the socket, but once started, named is
not responsive to queries or rndc.  The -S option comes with the
following warning in the BIND Administrator Reference Manual :

-S #max-socks Allow named to use up to #max-socks sockets.

WARNING
This option should be unnecessary for the vast majority of users. The use
of this option could even be harmful because the specified value may ex-
ceed the limitation of the underlying system API. It is therefore set only
when the default configuration causes exhaustion of file descriptors and
the operational environment is known to support the specified number of
sockets. Note also that the actual maximum number is normally a little
fewer than the specified value because named reserves some file descrip
-tors for its internal use

This problem was reported previously  "Re: 1.7.1: Bind 9.6.0-P1 on
Vista: could not listen on UDP socket: not enough free resources (patch
attached)"
http://sourceware.org/ml/cygwin/2010-05/msg00552.html

Is it possible to have the patch suggested for 9.6.0 included with the
current BIND package?

Thanks,
Chris

---

$ /usr/sbin/named -V
BIND 9.9.2-P1 built with
'--srcdir=/usr/src/ports/bind/bind-9.9.2-P1-2/src/bind-9.9.2-P1'
'--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin'
'--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--datadir=/usr/share'
'--localstatedir=/var' '--sysconfdir=/etc' '--datarootdir=/usr/share'
'--docdir=/usr/share/doc/bind' '-C' '--enable-shared' '--disable-static'
'--disable-backtrace' '--disable-linux-caps' '--without-dlopen'
'--with-dlz-bdb=/usr' '--with-dlz-filesystem' '--with-dlz-ldap=/usr'
'--with-dlz-mysql=/usr' '--with-dlz-odbc=/usr'
'--with-dlz-postgres=/usr' '--with-dlz-stub'
'--with-docbook-xsl=/usr/share/sgml/docbook/xsl-stylesheets'
'--with-gssapi' '--with-libxml2=/usr' '--with-openssl=/usr' 'CC=gcc'
'CFLAGS=-ggdb -O2 -pipe
-fdebug-prefix-map=/usr/src/ports/bind/bind-9.9.2-P1-2/build=/usr/src/debug/bind-9.9.2-P1-2
-fdebug-prefix-map=/usr/src/ports/bind/bind-9.9.2-P1-2/src/bind-9.9.2-P1=/usr/src/debug/bind-9.9.2-P1-2'
'LDFLAGS=' 'LIBS=-liphlpapi' 'CPPFLAGS='
using OpenSSL version: OpenSSL 1.0.1c 10 May 2012
using libxml2 version: 2.9.0



$ /usr/sbin/named-checkconf -p
options {
        directory "/var/named";
        listen-on port 53 {
                127.0.0.1/32;
                192.168.1.2/32;
        };
        version "not currently available";
        recursion no;
        allow-transfer {
                "none";
        };
};
controls {
        inet 127.0.0.1 port 953 allow {
                127.0.0.1/32;
        } keys {
                "rndc-key";
        };
};
logging {
        channel "example_log" {
                file "/var/log/named/example.log" versions 3 size 2097152;
                severity info;
                print-time yes;
                print-severity yes;
                print-category yes;
        };
        category "default" {
                "example_log";
        };
};
key "rndc-key" {
        algorithm "hmac-md5";
        secret "qrI/JNO/+RzaMF0Muq/MWA==";
};
zone "example.com" in {
        type master;
        file "master.example.com";
};
zone "1.168.192.IN-ADDR.ARPA" in {
        type master;
        file "192.168.1.rev";
};
zone "localhost" in {
        type master;
        file "master.localhost";
        allow-update {
                "none";
        };
};
zone "0.0.127.in-addr.arpa" in {
        type master;
        file "localhost.rev";
        allow-update {
                "none";
        };
};

Attachment: cygcheck.out
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]