[comp.protocols.tcp-ip.domains] Creating rev files automatically

aggarwal@NISC.JVNC.NET (Vikas Aggarwal) (12/03/90)

I have just finished writing two scripts for creating rev files taking
a totally differant approach. (this is on a sun 4 but don't see why
they shouldn't work someplace else).

Since usually the nameserver files have $ORIGINS and a number of
net addresses can exist for a particular domain, I used the fact
that the nameserver would know (it had better) all the hosts under
its domain. So I retrieve the list of hosts by querying the primary
nameserver, and then split the addresses by the class of the address.
By default, the script ends up creating a ".inaddr" file for each
network under the domain specified. The files can then be directly 
appended onto a fixed template.

I use a makefile (with Sun extensions), to tack on the resultant files
onto a basic template (similar to the makedepend program). In addition,
the makefile also replaces any occurrence of %I% with the RCS revision
number (obviously since I use RCS and not SCCS).

Only flaw being that you have to restart the nameserver twice - once
with your normal changes and then you run the program to create the
".rev" files. But its well worth the cause and gives me full freedom
while creating the regular nameserver files.

I will be throwing a copy of the programs on nisc.jvnc.net for
anonymous ftp sometime next week (probably named-util or something
like that).

I am not on this mailing list so please email me directly.



-vikas
vikas@jvnc.net						(609) 258-2403
Network Engineering					         -2400
			JvNCnet, Princeton, NJ
-----------------------------------------------------------------------------