diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-10-17 17:15:31 -0300 |
---|---|---|
committer | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-10-17 17:15:31 -0300 |
commit | e6a40f0fe0a9c265a567e53e734675055623fd2c (patch) | |
tree | 592159d2c465677af2178446bd732ef8cf601667 /config | |
parent | ff195c7cf770dbd9385c22feb9a69289c5cfae23 (diff) | |
download | pfsense-packages-e6a40f0fe0a9c265a567e53e734675055623fd2c.tar.gz pfsense-packages-e6a40f0fe0a9c265a567e53e734675055623fd2c.tar.bz2 pfsense-packages-e6a40f0fe0a9c265a567e53e734675055623fd2c.zip |
bind - reduce statup erros
Diffstat (limited to 'config')
-rw-r--r-- | config/bind/bind.inc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/config/bind/bind.inc b/config/bind/bind.inc index 6e04e649..f463c699 100644 --- a/config/bind/bind.inc +++ b/config/bind/bind.inc @@ -136,7 +136,6 @@ options { pid-file "/var/run/named/pid"; statistics-file "/var/log/named.stats"; max-cache-size {$ram_limit}; - query-source address * port 53; EOD; // check response rate limit option @@ -417,15 +416,6 @@ EOD; mkdir(CHROOT_LOCALBASE .$dir,0755,true); } //http://www.unixwiz.net/techtips/bind9-chroot.html - //create devices on chroot - exec('ls -lL /dev/zero /dev/null /dev/random',$devs); - foreach ($devs as $cdev){ - $dev=explode(" ",preg_replace("/,/","",$cdev)); - if (preg_match("/\w+/",$dev[15]) && !file_exists(CHROOT_LOCALBASE.$dev[15])){ - if (preg_match("/\d+/",$dev[9]) && preg_match("/\d+/",$dev[11])) - exec("/sbin/mknod ".CHROOT_LOCALBASE."{$dev[15]} c {$dev[9]} {$dev[11]}"); - } - } file_put_contents(CHROOT_LOCALBASE.'/etc/namedb/named.conf', $bind_conf); file_put_contents(CHROOT_LOCALBASE.'/etc/namedb/rndc.conf', $rndc_file); @@ -441,6 +431,7 @@ EOD; bind_write_rcfile(); chown(CHROOT_LOCALBASE."/var/log","bind"); + chown(CHROOT_LOCALBASE."/var/run/named","bind"); chgrp(CHROOT_LOCALBASE."/var/log","bind"); if($bind_enable == "on") mwexec("/usr/local/etc/rc.d/named.sh restart"); |