Translated message

A translation of this page exists in English.

bind9 を使用して Red Hat Enterprise Linux 5 の最大オープンソケットを変更する方法

Solution Verified - Updated -

Issue

  • bind の起動時に、オープンソケットの最大値を 4096 に制限します。

  • 以下のオプションで /etc/security/limits.conf ファイルを修正しました。

    * - nofile 16384 
    
  • Sysctl は、許可されたオープンファイルが多数あることを報告します。

    # /sbin/sysctl fs.file-max 
    fs.file-max = 357302 
    
  • /var/log/messages に、bind の起動時の制限が表示されます。

    May 12 18:02:00 ns named[18864]: starting BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 -u named -t /var/named/chroot
    May 12 18:02:00 ns named[18864]: adjusted limit on open files from 16384 to 1048576
    May 12 18:02:00 ns named[18864]: found 8 CPUs, using 8 worker threads
    May 12 18:02:00 ns named[18864]: using up to 4096 sockets                      <================
    May 12 18:02:00 ns named[18864]: loading configuration from '/etc/named.conf'
    May 12 18:02:00 ns named[18864]: using default UDP/IPv4 port range:[1024, 65535]
    May 12 18:02:00 ns named[18864]: using default UDP/IPv6 port range:[1024, 65535]
    May 12 18:02:00 ns named[18864]: listening on IPv4 interface lo, 127.0.0.1#53
    May 12 18:02:00 ns named[18864]: listening on IPv4 interface eth0, 62.169.194.97#53
    May 12 18:02:00 ns named[18864]: command channel listening on 127.0.0.1#953
    May 12 18:02:00 ns named[18864]: zone 0.0.127.in-addr.arpa/IN: loaded serial 42
    May 12 18:02:00 ns named[18864]: zone localhost/IN: loaded serial 42
    May 12 18:02:00 ns named[18864]: running
    

Environment

  • Red Hat Enterprise Linux 5
  • bind 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content