Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: BIND DNS memory consuming

  1. #1
    Join Date
    May 2008
    Beans
    9
    Distro
    Ubuntu 10.04 Lucid Lynx

    BIND DNS memory consuming

    hey geeks

    in my new openvz vps i noted that bind9 is taking a lot of the RAM

    process info:
    ID Owner Size Command
    17559 root 290396 kB /usr/sbin/named -c /etc/bind/named.conf

    can anybody help?
    Last edited by Smart_Viral; November 14th, 2010 at 12:25 AM.

  2. #2
    Join Date
    May 2008
    Beans
    9
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: BIND DNS memory consuming

    284mb ... isn't that too much!???

  3. #3
    Join Date
    Mar 2010
    Location
    Los Angeles, CA
    Beans
    231
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: BIND DNS memory consuming

    That depends; how many zones are you serving DNS for?

    One also wonders why your named service is running as root.
    Postfix problems? Come find me in #postfix on the freenode IRC network.

  4. #4
    Join Date
    Sep 2008
    Beans
    Hidden!

    Re: BIND DNS memory consuming

    @KB1JWQ: Excellent point. The default user it should run as is BIND.

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,840
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: BIND DNS memory consuming

    For comparison purposes, I'm serving 34 zones and using about 65MB. This is on CentOS 5.5 using bind 9.3.6.

  6. #6
    Join Date
    Mar 2010
    Location
    Los Angeles, CA
    Beans
    231
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: BIND DNS memory consuming

    Quote Originally Posted by James78 View Post
    @KB1JWQ: Excellent point. The default user it should run as is BIND.
    Weird, I usually see it running as "named" albeit not on Ubuntu.
    Postfix problems? Come find me in #postfix on the freenode IRC network.

  7. #7
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,840
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: BIND DNS memory consuming

    Quote Originally Posted by KB1JWQ View Post
    Weird, I usually see it running as "named" albeit not on Ubuntu.
    It runs as user "named" on RedHat-flavored distros; on Ubuntu (and probably Debian?) it runs as user "bind".

  8. #8
    Join Date
    Sep 2008
    Beans
    Hidden!

    Re: BIND DNS memory consuming

    Quote Originally Posted by KB1JWQ View Post
    Weird, I usually see it running as "named" albeit not on Ubuntu.
    Here's my ps output.
    Code:
    toonarmy@ns1:~$ ps -fC named
    UID        PID  PPID  C STIME TTY          TIME CMD
    bind       872     1  0 Nov14 ?        00:00:02 /usr/sbin/named -u bind

  9. #9
    Join Date
    May 2008
    Beans
    9
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: BIND DNS memory consuming

    Quote Originally Posted by KB1JWQ View Post
    That depends; how many zones are you serving DNS for?

    One also wonders why your named service is running as root.
    after the first reboot,,, service name has became "bind" instead of "root"

    Quote Originally Posted by SeijiSensei View Post
    For comparison purposes, I'm serving 34 zones and using about 65MB. This is on CentOS 5.5 using bind 9.3.6.
    LOL, i just have 6 zones:

    mywebsite.com
    Root zone
    0
    127
    255
    localhost

    (on ubuntu server 10.04 and bind 9.7.0)

  10. #10
    Join Date
    Sep 2008
    Beans
    Hidden!

    Re: BIND DNS memory consuming

    I'm serving 24 zones. Most of them are just empty zones, such as 168.192.in-addr.arpa., mainly because I found out in my security log that BIND was actually leaking queries, (see, "What does "RFC 1918 response from Internet for 0.0.0.10.IN-ADDR.ARPA" mean?" in the below link), and adding those empty zones fixed it. Because I found out about that, I actually recommend everyone enable the zones.rfc1918 file...

    named.conf.local
    Code:
    // Consider adding the 1918 zones here, if they are not used in your
    // organization
    //include "/etc/bind/zones.rfc1918";
    http://www.bind9.net/BIND-FAQ
    Last edited by James78; November 16th, 2010 at 01:30 AM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •