Thanks for everyone's input. Here's the poop:


On Redhat 6.2 the startup file for named (/etc/rc.d/init.d/named)
invokes it with the "-u" option:

     daemon named -u named

[root at dns1 init.d]# grep -i named /etc/passwd
named:x:25:25:Named:/var/named:/bin/false

[root at dns1 init.d]# grep -i 25 /etc/group
named:x:25:

The default permissions on /var/named were such that only root
could write to it:

[root at dns1 /]# ls -ld /var/named
drwxr-xr-x    2 root     root         4096 Jul 20 04:42 /var/named


The fix is to open up permissions on /var/named or remove the
"-u" option in startup file so that the daemon runs as root.


Tested both of these and either way named dumps cache and stats
just fine using "ndc" or "kill -s".

thanks
chuckc


tclug-list at mn-linux.org wrote:
> allow-update has nothing to do with it...he wants to dump the cache andthe stats.

Adam Maloney
Systems Administrator
Sihope Communications

On Wed, 19 Jul 2000, Scott Dier wrote:

> 
> You are worried about allow-update {ip-list;};
> 
> * Adam Maloney  [000719 16:34]:
> > What's the directory/file set as in the options { }, or are you using the
> > default?
> > 
> > There may be something you haven't set in the named.conf and it's not
> > dumping to where you'd expect it to (or it can't dump to the default for
> > whatever reason).  My memory's a bit foggy on this, I haven't had to do it
> > in awhile.
> > 
> > Adam Maloney
> > Systems Administrator
> > Sihope Communications
> > 
> > On Wed, 19 Jul 2000 openview at mindspring.com wrote:
> > 
> > > I'm running BIND 8 on Redhat 6.2.
> > > 
> > > When I ask it to dump the database with SIGINT or ndc I get nothing.
> > > Dumping stats doesn't work either. I've tailed /var/log/messages
> > > and can see messages for a reload when I ask it to with ndc or
> > > with kill -s SIGHUP pid.
> > > 
> > > Any thoughts?
> > > 
> > > thanks
> > > chuckc
> > > 
> > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > > 
> > > [root at dns1 /root]# which named
> > > /usr/sbin/named
> > > 
> > > [root at dns1 /root]# cd /usr/sbin
> > > 
> > > [root at dns1 sbin]# strings -a named | grep -i named
> > > named-xfer
> > > Usage: named [-d #] [-q] [-r] [-v] [-f] [-p port] [[-b|-c] configfile]
> > > named.run
> > > /etc/named.conf
> > > named
> > > named shutting down
> > > named restarting
> > > named-xfer "%s" exited with signal %d
> > > named-xfer for "%s" exited %d
> > > /var/run/named.pid
> > > /usr/sbin/named-xfer
> > > named_dump.db
> > > named.stats
> > > named.memstats
> > > named.run
> > > [DYNAMIC_UPDATE] id %u from %s %s (named pid %ld):
> > > @(#)named 8.2.2-P5 Mon Feb 28 10:17:53 EST 2000 root at porky.devel.redhat.com:/usr
> > > /src/bs/BUILD/bind-8.2.2_P5/src/bin/named
> > > named 8.2.2-P5 Mon Feb 28 10:17:53 EST 2000
> > > root at porky.devel.redhat.com:/usr/src/bs/BUILD/bind-8.2.2_P5/src/bin/named
> > > 
> > > [root at dns1 sbin]# 
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
> > > For additional commands, e-mail: tclug-list-help at mn-linux.org
> > > 
> > > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
> > For additional commands, e-mail: tclug-list-help at mn-linux.org
> > 
> 
> -- 
> Scott Dier  #nicnac at efnet 
> http://www.ringworld.org/  finger:dieman at destiny.ringworld.org
> 
> Wait. Watch. Wonder.
> 	-J
> 
> Fight collective stupidity, blackhole cybercreek.com
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org