🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #55522

DNS Questions, dynamic reconfig

#55522
From: Manfred Bartz
Date: Mon, 02 Jun 1997 00:00
37 lines
2032 bytes

I have installed the latest DNS (bind-4.9.5-P1) on my system and made
it work in 2 different modes:
  1. as a caching nameserver while connected to the net via a dial-up
     ppp link to my ISP.
  2. as a root nameserver for my LAN while not connected to the net.

The switching between the modes is done from my ``IP-UP/DOWN'' scripts
by injecting an ``options'' line into ``/etc/named.boot'' and running
``named.reload''.  Since the ``no-recursion'' option can only be set
and not reset, I patched the source to accept an extra option to reset
``no-recursion''.  This seems to work fine.

Questions:
  1. Is there a better way of achieving this mode switching?
  2. Any reason why I shouldn't be doing this?


Also, the man page for ``named.reload'' states:
    "Does  not  check  to see if the name server is actually running, 
     and could use a stale PID ....."

Questions:
  1. If I re-write the ``named.reload'' script to use ``/bin/kill''
     instead of the shell built-in ``kill'', to send it a ``SIGHUP'' 
     would that be safe?
  2. If I wrote a C program to accomplish the signaling, what would
     be the recommended way of finding another processes PID?

Thanks to everyone who commented on my previous posting regarding
DNS.  I took your advice and bought ``DNS and BIND''.  :-)

-- 
Manfred Bartz <mbartz@werple.net.au>
------------------------------------
 Linux is Choice -- Linux is Power!
Technical Details
Message-ID: <m2afl9swhc.fsf@reddwarf.aup.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,9937ba26e8f17764,start
X-Google-Attributes: gid102983,public
From: Manfred Bartz <mbartz@werple.net.au>
Subject: DNS Questions, dynamic reconfig
Date: 1997/06/02
Message-ID: <m2afl9swhc.fsf@reddwarf.aup.com.au>
X-Deja-AN: 245511998
Sender: mbartz@reddwarf.aup.com.au
X-Face: `7XhJ:(7$0=La3f9Tu4$Y8v0tVk-)FpJb(fz(H}9zi&.<tC9:`s'U*Q8Pz&(*x0xAY93N6A :"ObLj?n/\Xm['+nlFm:tE8TMp*dHA3H:1Ny\orulI(nV.Q59Em:i>p/pIs*!p"BJf0#wws0[pX,/: &
Organization: Werple Internet, Melbourne
Newsgroups: aus.computers.linux