home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / contrib / dnsparse / README < prev    next >
Text File  |  1990-09-11  |  3KB  |  67 lines

  1.   $Id: README,v 2.0 90/09/11 11:06:43 hakanson Rel $
  2.  
  3. --------------------------------------------------------------------------
  4.  
  5.             dnsparse kit, version 2.0
  6.  
  7.          Copyright (c) 1990, Marion Hakanson
  8.  
  9.     This program is free software; you can redistribute it and/or modify
  10.     it under the terms of the GNU General Public License as published by
  11.     the Free Software Foundation; either version 1, or (at your option)
  12.     any later version.
  13.  
  14.     This program is distributed in the hope that it will be useful,
  15.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.     GNU General Public License for more details.
  18.  
  19.     You should have received a copy of the GNU General Public License
  20.     along with this program; if not, write to the Free Software
  21.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22.  
  23. --------------------------------------------------------------------------
  24.  
  25. In this directory are some tools for manipulating Domain Name System
  26. master files, and for converting to /etc/hosts format.  There are also
  27. a couple of tools (simphosts, sorthosts) for dealing with host tables.
  28.  
  29. To run dns2hosts, or anything which uses the dnsparse.pl library
  30. (currently just dnstest and dnsmkptr), one must first compile
  31. "dnslex.c" into a program "dnslex" and install it somewhere in your
  32. search path.  The "dnsparse.pl" file must also be somewhere in the
  33. perl library search path, and perl must be available.
  34.  
  35. Typically how one generates new host table(s) from the DNS zone files is
  36. to have the zones and their master file pathnames in "zonelist", and
  37. then do something like (in csh syntax):
  38.  
  39. set ver=YY.MM.DD
  40. foreach dom ( ogi admin.ogi cbs.ogi cse.ogi ese.ogi mse.ogi )
  41.   echo $dom
  42.   set fil="HOSTS.${dom}.$ver"
  43.   ./dns2hosts -d${dom}.edu `cat zonelist` > $fil
  44.   chmod a-w,a+r $fil
  45. end
  46.  
  47. NOTE: you may need to edit by hand to reorder multiply-homed hosts!
  48.  
  49. To Do:
  50.  
  51. Write some real documentation.  Manual pages, too.
  52.  
  53. The dnsmkptr program is really simplistic -- needs to produce split
  54. zone files (net/subnet), rather than just a single output.
  55.  
  56. These things should really be more automated....
  57.  
  58. The dns2hosts output would be "more like the nameserver" if it also
  59. simulated the "sortlist" functionality.  This would require another
  60. option to specify the target network that queries are coming from,
  61. and maybe also the home network.  Complicated, ugly, and at the least
  62. it requires further study.
  63.  
  64. -- 
  65. Marion Hakanson         Domain: hakanson@cse.ogi.edu
  66.                         UUCP  : {hp-pcd,tektronix}!ogicse!hakanson
  67.