Paul Jarc | 1 Jan 09:59 2004
Picon

Re: my dns is seeing double

"Bill W." <djbdns <at> bicity.net> wrote:
> Now, I have to wait for the ttl defaults to expire.

Follow Jonathan's advice.  Go to <URL:http://djbdns.faqts.com/>.  Look
for "expire".

paul

Joshua Banks | 2 Jan 05:25 2004
Picon

Re: Dnscache install trouble


--- Chris Johnson <dcj-expires-2958269.ppfjp <at> palomine.net> wrote:
> On Wed, Dec 31, 2003 at 12:10:57PM -0500, Brian T Glenn wrote:
> > On Wed, Dec 31, 2003 at 07:03:41AM -0800, Joshua Banks may have
> written:
> > > 
> > > Shouldn't issuing the command "ln -s /ect/dnscache /service"
> create the
> > > "/service" directory and link " etc/dnscache" to it without me
> having
> > > to manually create the "/service" directory first?
> > 
> > Why would it do that? /service can easily be a regular file, UNIX
> > socket, or any other kind of directory entry. /service/ would imply
> that
> > /service is a directory, but because that directory doesn't exist,
> the
> > command would fail.
> 

Chris wrote:
> In any case, /service should already exist as part of the daemontools
> installation. It doesn't do any good to link things into /service if
> svscan
> isn't already running in that directory.

Ahhh. Your comments help Chris. Thanks. So when I first installed
"daemontools" this directory "/service" was created. I wasn't aware of
this. But then again I wan't really looking either. 

(Continue reading)

Scott Gifford | 2 Jan 07:14 2004

Re: Dnscache install trouble

Joshua Banks <l0f33t <at> yahoo.com> writes:

[...]

> Correct me if I'm wrong here. After manually creating "/service"
> directory and issuing "ln -s /etc/dnscache /service", how do i get
> svscan to start supervise to get things working again?

If svscan isn't working but is still in /etc/inittab, it should just
start up again after a few minutes.  If it doesn't, 

    kill -HUP 1

should get it started.  If it still won't start, look in the system
logs to see what's going on.

----ScottG.

Joshua Banks | 2 Jan 08:40 2004
Picon

Re: Dnscache install trouble


--- Scott Gifford <sgifford <at> suspectclass.com> wrote:
> > Correct me if I'm wrong here. After manually creating "/service"
> > directory and issuing "ln -s /etc/dnscache /service", how do i get
> > svscan to start supervise to get things working again?
> 
> If svscan isn't working but is still in /etc/inittab, it should just
> start up again after a few minutes.  If it doesn't, 
> 
>     kill -HUP 1
> 
> should get it started.  If it still won't start, look in the system
> logs to see what's going on.

I don't understand what you mean when you say, "If svscan isn't working
but is still in /etc/inittab, it should just start up again after a few
minutes." 

Specifically "...but is still in etc/inittab" I'm running Gentoo linux
so this might be a little different from what your thinking of. If not
then I have know Idea what your meaning is. Sorry. Please let me know.

When I issue the "kill -HUP 1" command, do I add "svscan" to the end of
that command? I.E. 

"# kill -HUP 1 svscan" ???

Thanks,
Joshua Banks

(Continue reading)

Scott Gifford | 2 Jan 10:03 2004

Re: Dnscache install trouble

Joshua Banks <l0f33t <at> yahoo.com> writes:

[...]

> Specifically "...but is still in etc/inittab" I'm running Gentoo linux
> so this might be a little different from what your thinking of. If not
> then I have know Idea what your meaning is. Sorry. Please let me know.

Look in the file /etc/inittab, and see if there is a line in it that
mentions svscan.  If you don't have an /etc/inittab file, then Gentoo
is strange indeed.  :-)

> When I issue the "kill -HUP 1" command, do I add "svscan" to the end of
> that command? I.E. 
> 
> "# kill -HUP 1 svscan" ???

Nope, 1 is the PID of the init program.  It tells it to re-read
/etc/inittab, and start up any programs in it which aren't already
started.

----ScottG.

Joshua Banks | 2 Jan 10:33 2004
Picon

Re: Dnscache install trouble


--- Scott Gifford <sgifford <at> suspectclass.com> wrote:

> Look in the file /etc/inittab, and see if there is a line in it that
> mentions svscan.  If you don't have an /etc/inittab file, then Gentoo
> is strange indeed.  :-)

Hmmmm. Here's a copy.

jbanks <at> deadmeat jbanks $ cat /etc/inittab

# /etc/inittab:  This file describes how the INIT process should set up
#                the system in a certain run-level.
#
# Author:  Miquel van Smoorenburg, <miquels <at> cistron.nl>
# Modified by:  Patrick J. Volkerding, <volkerdi <at> ftp.cdrom.com>
# Modified by:  Daniel Robbins, <drobbins <at> gentoo.org>
# Modified by:  Martin Schlemmer, <azarah <at> gentoo.org>
#
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/inittab,v 1.6
2003/01/06 21:32:43 azarah Exp $

#
# Default runlevel.
id:3:initdefault:

# System initialization, mount local filesystems, etc.
si::sysinit:/sbin/rc sysinit

# Further system initialization, brings up the boot runlevel.
(Continue reading)

Scott Gifford | 2 Jan 11:10 2004

Re: Dnscache install trouble

Joshua Banks <l0f33t <at> yahoo.com> writes:

> --- Scott Gifford <sgifford <at> suspectclass.com> wrote:
> 
> > Look in the file /etc/inittab, and see if there is a line in it that
> > mentions svscan.  If you don't have an /etc/inittab file, then Gentoo
> > is strange indeed.  :-)
> 
> 
> Hmmmm. Here's a copy.

[...]

Hrm.  I'm not sure how you installed daemontools, but when you run
"make setup check", it should add to the end of /etc/inittab:

    SV:123456:respawn:/command/svscanboot

Since that line isn't in your inittab file, perhaps you installed
daemontools in some nonstandard way?...

> > > When I issue the "kill -HUP 1" command, do I add "svscan" to the
> > end of
> > > that command? I.E. 
> > > 
> > > "# kill -HUP 1 svscan" ???
> > 
> > Nope, 1 is the PID of the init program.  It tells it to re-read
> > /etc/inittab, and start up any programs in it which aren't already
> > started.
(Continue reading)

Chris Johnson | 2 Jan 11:27 2004
Picon

Re: Dnscache install trouble

On Fri, Jan 02, 2004 at 05:10:58AM -0500, Scott Gifford wrote:
> Joshua Banks <l0f33t <at> yahoo.com> writes:
> 
> > --- Scott Gifford <sgifford <at> suspectclass.com> wrote:
> > 
> > > Look in the file /etc/inittab, and see if there is a line in it that
> > > mentions svscan.  If you don't have an /etc/inittab file, then Gentoo
> > > is strange indeed.  :-)
> > 
> > 
> > Hmmmm. Here's a copy.
> 
> [...]
> 
> Hrm.  I'm not sure how you installed daemontools, but when you run
> "make setup check", it should add to the end of /etc/inittab:
> 
>     SV:123456:respawn:/command/svscanboot
> 
> Since that line isn't in your inittab file, perhaps you installed
> daemontools in some nonstandard way?...

I believe in the Gentoo Linux build of daemontools creates a startup script in
/etc/init.d, so he'd have to run that.

Chris

Mat Kovach | 2 Jan 14:06 2004

Re: Dnscache install trouble

* sgifford <at> suspectclass.com [2004-01-02 05:10:58 -0500]:

> Joshua Banks <l0f33t <at> yahoo.com> writes:
> 
> > --- Scott Gifford <sgifford <at> suspectclass.com> wrote:
> > 
> > > Look in the file /etc/inittab, and see if there is a line in it that
> > > mentions svscan.  If you don't have an /etc/inittab file, then Gentoo
> > > is strange indeed.  :-)

Gentoo starts svscan using init scripts.  You'll find the start up file
in /etc/init.d/svscan.

Use rc-update to add/delete if from system startup:

rc-update add svscan default
rc-update del svscan default

and of source /etc/init.d/svscan {start|stop} to start/stop the service.

You can, of course, do the following:

rc-update del svscan default

This will make sure svscan will not start during boot.

Then add the inittab line given, and you can start svscan using inittab
without worry about the init.d scripts interfering.

Mat
(Continue reading)

Bilal Dar | 2 Jan 09:17 2004
Picon

tips on dns cache setup

Hello,
 
I want to setup a dns cache for my network, currently everyone is using my ISP's dns server. I have around 500 users on my LAN, i want to know what kind of machine will i be needing (processor speed, memory, disk space). Also i want to know bind will be  a better choice or djbdns, as i dont have much dns administration experience. I just used dns caching on djbdns once before. Please advise me what to do and also tell me if i use djbdns how will i forward all the dns requests to my isps server, do i have to just add my ISP nameserver in my /etc/resolv.conf or i have to do something else as well.
 
Thanks.
 

Gmane