Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!prang!riscit.NOC.Vitalink.COM!ejm From: ejm@riscit.NOC.Vitalink.COM (Erik J. Murrey) Newsgroups: comp.protocols.tcp-ip.domains Subject: Re: Bind mods to call a program Message-ID: <42@prang.TEST.Vitalink.COM> Date: 8 Feb 91 17:34:25 GMT References: Sender: usenet@prang.TEST.Vitalink.COM Reply-To: ejm@riscit.NOC.Vitalink.COM (Erik J. Murrey) Distribution: comp Organization: Vitalink Communications Lines: 22 Nntp-Posting-Host: riscit.noc.vitalink.com In article , fwp1@CC.MsState.Edu (Frank Peters) writes: > > I would like to add (purely internal to my named) a new record type > PROG that would specify a program to be run. The output of this > program would then be returned to the querying host as an A record. > > $ORIGIN where.ever. > FooSun PROG /usr/local/adm/leastload > MX 10 MailHub.where.ever. > Instead of fork/exec-ing a process for each A query made, how about creating an RPC (or AF_UNIX) process that waits for requests from your modified BIND? This process could reply to BIND's request without the overhead of a fork + exec. --- Erik J. Murrey Vitalink Communications NOC ejm@NOC.Vitalink.COM ...!uunet!NOC.Vitalink.COM!ejm