LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-23-2017, 09:35 PM   #1
md303
LQ Newbie
 
Registered: Dec 2016
Posts: 9

Rep: Reputation: Disabled
BIND DNS server reports wrong memory size when run in chroot environment


Hello,

I have BIND 9.11.2 (built from source) running on Debian Jessie. When I run it in normal context (without chroot) and reload the config, it shows the following line in the log:

Code:
config: info: 'max-cache-size 90%' - setting to 218MB (out of 242MB)
But when I run it in chroot, it shows below:

Code:
config: info: none:103: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB)
I am assuming I am missing some files under chroot directory, but I am not sure what. I copied all BIND files/folders, localtime file, null and random dev files, and all library files needed by named process (determined with ldd command) under the chroot directory.

Could anyone assist me in determining what I may be missing?

Any help would be appreciated.

Thank you.
 
Old 10-25-2017, 06:54 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I am assuming I am missing some files under chroot directory, but I am not sure what. I copied all BIND files/folders, localtime file, null and random dev files, and all library files needed by named process (determined with ldd command) under the chroot directory.
I can't tell if that's the case, but nul and random are not ordinary files.
They are special character files, so you need to use mknod to create them (see 2.4 here)
Code:
mknod /chroot/named/dev/null c 1 3
mknod /chroot/named/dev/random c 1 8
chmod 666 /chroot/named/dev/{null,random}

You can suppress this message by adding something like the following in named.conf:
Code:
max-cache-size 218M;
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DF reports wrong disk size pobman Linux - Newbie 6 08-29-2012 09:58 AM
wrong ttl time for dns entries on bind 9.7 with suse 11.4 server marb84 Linux - Networking 4 08-31-2011 04:24 AM
Dynamic DHCP and DNS Server Bind Chroot on CentOS 5.3 or Ubuntu nyu2009 Linux - Server 2 10-19-2009 01:03 AM
Fedora bind-chroot permissions wrong rhoekstra Linux - Networking 1 08-07-2005 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration