zone2host-svn Mailing List for Zone2Host
Status: Alpha
Brought to you by:
msl521
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(8) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(5) |
|
From: <ms...@us...> - 2007-12-30 17:30:38
|
Revision: 35
http://zone2host.svn.sourceforge.net/zone2host/?rev=35&view=rev
Author: msl521
Date: 2007-12-30 09:30:27 -0800 (Sun, 30 Dec 2007)
Log Message:
-----------
* www/trunk/documentation.html
Fixed the file name and heading spelling.
Added Paths:
-----------
www/trunk/documentation.html
Removed Paths:
-------------
www/trunk/documenation.html
Deleted: www/trunk/documenation.html
===================================================================
--- www/trunk/documenation.html 2007-12-30 17:22:38 UTC (rev 34)
+++ www/trunk/documenation.html 2007-12-30 17:30:27 UTC (rev 35)
@@ -1,199 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<title>Zone2Host - Documentation</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link href="style.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-<div id="container">
-
- <div id="header">
- <h1>Zone2Host - Documenation</h1>
- <p>Convert BIND zone files to hosts files</p>
-</div>
-
-<div id="tabs10">
- <ul>
- <li><a href="/" title="Home"><span>Home</span></a></li>
- <li><a href="http://sourceforge.net/projects/zone2host/" title="Project Page"><span>Project Page</span></a></li>
- <li><a href="/download.html" title="Download"><span>Download</span></a></li>
- <li><a href="/documentation.html" title="Documenation"><span>Documentation</span></a></li>
- </ul>
-</div>
-
-<div id="container2">
-
-<div id="content">
-<!-- INDEX BEGIN -->
-<div>
-<a name="__index__" />
-<ul>
-
- <li><a href="#name">NAME</a></li>
- <li><a href="#synopsis">SYNOPSIS</a></li>
- <li><a href="#description">DESCRIPTION</a></li>
- <li><a href="#options">OPTIONS</a></li>
- <li><a href="#installation">INSTALLATION</a></li>
-
- <li><a href="#bugs_and_future_features">BUGS AND FUTURE FEATURES</a></li>
- <li><a href="#author">AUTHOR</a></li>
- <li><a href="#copyright_and_license">COPYRIGHT AND LICENSE</a></li>
-</ul>
-
-</div>
-<!-- INDEX END -->
-
-<h2><a name="name">NAME</a></h2>
-<p>z2h - Convert BIND zone files to host files</p>
-<h2><a name="synopsis">SYNOPSIS</a></h2>
-<p>perl z2h.pl [options]</p>
-<p>or</p>
-<p>z2h.exe [options]</p>
-<pre>
- Options:
- -? or --help This help message
- --man Complete documentation
- --license Display the license</pre>
-
-<pre>
- --zonefile=<file> Full or relative path to zone file
- --hostfile=<file> Full or relative path to host file
- --multiple For each zone file write to a separate
- host file
- --nomultiple Write to one host file even if multiple
- zone files are given</pre>
-<pre>
- --verbose *** TODO ***</pre>
-
-<h2><a name="description">DESCRIPTION</a></h2>
-<p><strong>z2h</strong> will convert a BIND format zone file into an /etc/hosts style
-file. It currently only operates on A records. TXT records are used to
-generate comments.</p>
-<h2><a name="options">OPTIONS</a></h2>
-<dl>
-<dt><strong><a name="or_help" class="item"><strong>-?</strong> or <strong>--help</strong></a></strong></dt>
-
-<dd>
-<p>Print a brief help message and exit.</p>
-</dd>
-<dt><strong><a name="man" class="item"><strong>--man</strong></a></strong></dt>
-
-<dd>
-<p>Print the complete documentation and exit.</p>
-</dd>
-<dt><strong><a name="license" class="item"><strong>--license</strong></a></strong></dt>
-
-<dd>
-<p>Print the text of the license and exit.</p>
-</dd>
-<dt><strong><a name="zonefile" class="item"><strong>--zonefile</strong></a></strong></dt>
-
-<dd>
-<p>Specify the BIND format zone file to operate on. A resource records
-are parsed for the IP address and host name. TXT records are matched
-to generate comments. Multiple zone files can be specified and written
-to a single host file or an host file per zone file.</p>
-</dd>
-<dt><strong><a name="hostfile" class="item"><strong>--hostfile</strong></a></strong></dt>
-
-<dd>
-
-<p>The host file that is written to. The default host file is
-<code>/etc/hosts</code>. If <code>--multiple</code> is specified, there must be one host
-file for each zone file given.</p>
-</dd>
-<dt><strong><a name="multiple_or_nomultiple" class="item"><strong>--multiple</strong> or <strong>--nomultiple</strong></a></strong></dt>
-
-<dd>
-<p>Writes each individual zone file to a separate host file. The negation
-explicitly writes to single host file; the default behavior.</p>
-
-</dd>
-<dt><strong><a name="verbose" class="item"><strong>--verbose</strong></a></strong></dt>
-
-<dd>
-<p>*** TODO ***</p>
-</dd>
-</dl>
-<h2><a name="installation">INSTALLATION</a></h2>
-<p>Install Perl and the <code>DNS::ZoneParse</code> module from CPAN or via PPM. Or
-if you are using a binary PAR distribution, just run the executable.</p>
-
-<h2><a name="bugs_and_future_features">BUGS AND FUTURE FEATURES</a></h2>
-<dl>
-<dt><strong><a name="truncation" class="item">Truncation</a></strong></dt>
-
-<dd>
-<p>Currently a static Perl format is used to generate nicely aligned
-columns. The host name is truncated at 20 characters and the comment
-is truncated at 38 characters.</p>
-</dd>
-<dt><strong><a name="unequal_a_and_txt_record_count" class="item">Unequal A and TXT record count</a></strong></dt>
-
-<dd>
-<p><code>DNS::ZoneParse</code> dumps all resource records to an array for each type
-of record. If each A record does not have a TXT record, the comments
-will not match properly.</p>
-</dd>
-<dt><strong><a name="cnames_unhandled" class="item">CNAMEs unhandled</a></strong></dt>
-
-<dd>
-<p>Host files allow multiple host names for each IP address on a single
-line. Currently CNAME RRs are ignored, but could be parsed into an
-additional host name.</p>
-</dd>
-<dt><strong><a name="duplicate_ips_allowed" class="item">Duplicate IPs allowed</a></strong></dt>
-
-<dd>
-<p>If multiple zone files are written to a single host file, there is no
-check for duplicate IP addresses. If you are starting with a valid
-BIND configuration, this shouldn't be a problem.</p>
-</dd>
-</dl>
-<h2><a name="author">AUTHOR</a></h2>
-<p>Michael S. Liebman <msl521 at sourceforge dot net></p>
-<h2><a name="copyright_and_license">COPYRIGHT AND LICENSE</a></h2>
-<p>Copyright 2003 by Michael S. Liebman</p>
-<p>This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.</p>
-<p>This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.</p>
-<p>You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p></div>
-
-<div id="sidebar">
- <h2>Links</h2>
- <p><a href="http://www.isc.org/bind/">ISC BIND</a></p>
- <p>About <a href="http://en.wikipedia.org/wiki/Domain_name_system">DNS</a>
- & <a href="http://en.wikipedia.org/wiki//etc/hosts">hosts</a></p>
- <p><a href="http://sauron.jyu.fi/">Sauron DNS & DHCP Management</a></p>
- <p><!-- #BeginLibraryItem "/Library/SF Logo.lbi" --><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=167918&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a><!-- #EndLibraryItem --></p>
-</div>
-
-<div id="footer">
- <p> <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a>
- | Copyright © 2006 <a href="mailto:msl521%20at%20users%20dot%20sourceforge%20dot%20com">Michael
- S. Liebman</a>/LPJ Productions| Design by <a href="#">super j man</a>
- </p>
-</div>
-
-</div>
-
-</div>
-<!-- #BeginLibraryItem "/Library/analytics.lbi" --><script type="text/javascript">
-var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-</script>
-<script type="text/javascript">
-var pageTracker = _gat._getTracker("UA-141660-2");
-pageTracker._initData();
-pageTracker._trackPageview();
-</script><!-- #EndLibraryItem --></body>
-</html>
Copied: www/trunk/documentation.html (from rev 34, www/trunk/documenation.html)
===================================================================
--- www/trunk/documentation.html (rev 0)
+++ www/trunk/documentation.html 2007-12-30 17:30:27 UTC (rev 35)
@@ -0,0 +1,199 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Zone2Host - Documentation</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link href="style.css" rel="stylesheet" type="text/css" />
+</head>
+
+<body>
+<div id="container">
+
+ <div id="header">
+ <h1>Zone2Host - Documentation</h1>
+ <p>Convert BIND zone files to hosts files</p>
+</div>
+
+<div id="tabs10">
+ <ul>
+ <li><a href="/" title="Home"><span>Home</span></a></li>
+ <li><a href="http://sourceforge.net/projects/zone2host/" title="Project Page"><span>Project Page</span></a></li>
+ <li><a href="/download.html" title="Download"><span>Download</span></a></li>
+ <li><a href="/documentation.html" title="Documenation"><span>Documentation</span></a></li>
+ </ul>
+</div>
+
+<div id="container2">
+
+<div id="content">
+<!-- INDEX BEGIN -->
+<div>
+<a name="__index__" />
+<ul>
+
+ <li><a href="#name">NAME</a></li>
+ <li><a href="#synopsis">SYNOPSIS</a></li>
+ <li><a href="#description">DESCRIPTION</a></li>
+ <li><a href="#options">OPTIONS</a></li>
+ <li><a href="#installation">INSTALLATION</a></li>
+
+ <li><a href="#bugs_and_future_features">BUGS AND FUTURE FEATURES</a></li>
+ <li><a href="#author">AUTHOR</a></li>
+ <li><a href="#copyright_and_license">COPYRIGHT AND LICENSE</a></li>
+</ul>
+
+</div>
+<!-- INDEX END -->
+
+<h2><a name="name">NAME</a></h2>
+<p>z2h - Convert BIND zone files to host files</p>
+<h2><a name="synopsis">SYNOPSIS</a></h2>
+<p>perl z2h.pl [options]</p>
+<p>or</p>
+<p>z2h.exe [options]</p>
+<pre>
+ Options:
+ -? or --help This help message
+ --man Complete documentation
+ --license Display the license</pre>
+
+<pre>
+ --zonefile=<file> Full or relative path to zone file
+ --hostfile=<file> Full or relative path to host file
+ --multiple For each zone file write to a separate
+ host file
+ --nomultiple Write to one host file even if multiple
+ zone files are given</pre>
+<pre>
+ --verbose *** TODO ***</pre>
+
+<h2><a name="description">DESCRIPTION</a></h2>
+<p><strong>z2h</strong> will convert a BIND format zone file into an /etc/hosts style
+file. It currently only operates on A records. TXT records are used to
+generate comments.</p>
+<h2><a name="options">OPTIONS</a></h2>
+<dl>
+<dt><strong><a name="or_help" class="item"><strong>-?</strong> or <strong>--help</strong></a></strong></dt>
+
+<dd>
+<p>Print a brief help message and exit.</p>
+</dd>
+<dt><strong><a name="man" class="item"><strong>--man</strong></a></strong></dt>
+
+<dd>
+<p>Print the complete documentation and exit.</p>
+</dd>
+<dt><strong><a name="license" class="item"><strong>--license</strong></a></strong></dt>
+
+<dd>
+<p>Print the text of the license and exit.</p>
+</dd>
+<dt><strong><a name="zonefile" class="item"><strong>--zonefile</strong></a></strong></dt>
+
+<dd>
+<p>Specify the BIND format zone file to operate on. A resource records
+are parsed for the IP address and host name. TXT records are matched
+to generate comments. Multiple zone files can be specified and written
+to a single host file or an host file per zone file.</p>
+</dd>
+<dt><strong><a name="hostfile" class="item"><strong>--hostfile</strong></a></strong></dt>
+
+<dd>
+
+<p>The host file that is written to. The default host file is
+<code>/etc/hosts</code>. If <code>--multiple</code> is specified, there must be one host
+file for each zone file given.</p>
+</dd>
+<dt><strong><a name="multiple_or_nomultiple" class="item"><strong>--multiple</strong> or <strong>--nomultiple</strong></a></strong></dt>
+
+<dd>
+<p>Writes each individual zone file to a separate host file. The negation
+explicitly writes to single host file; the default behavior.</p>
+
+</dd>
+<dt><strong><a name="verbose" class="item"><strong>--verbose</strong></a></strong></dt>
+
+<dd>
+<p>*** TODO ***</p>
+</dd>
+</dl>
+<h2><a name="installation">INSTALLATION</a></h2>
+<p>Install Perl and the <code>DNS::ZoneParse</code> module from CPAN or via PPM. Or
+if you are using a binary PAR distribution, just run the executable.</p>
+
+<h2><a name="bugs_and_future_features">BUGS AND FUTURE FEATURES</a></h2>
+<dl>
+<dt><strong><a name="truncation" class="item">Truncation</a></strong></dt>
+
+<dd>
+<p>Currently a static Perl format is used to generate nicely aligned
+columns. The host name is truncated at 20 characters and the comment
+is truncated at 38 characters.</p>
+</dd>
+<dt><strong><a name="unequal_a_and_txt_record_count" class="item">Unequal A and TXT record count</a></strong></dt>
+
+<dd>
+<p><code>DNS::ZoneParse</code> dumps all resource records to an array for each type
+of record. If each A record does not have a TXT record, the comments
+will not match properly.</p>
+</dd>
+<dt><strong><a name="cnames_unhandled" class="item">CNAMEs unhandled</a></strong></dt>
+
+<dd>
+<p>Host files allow multiple host names for each IP address on a single
+line. Currently CNAME RRs are ignored, but could be parsed into an
+additional host name.</p>
+</dd>
+<dt><strong><a name="duplicate_ips_allowed" class="item">Duplicate IPs allowed</a></strong></dt>
+
+<dd>
+<p>If multiple zone files are written to a single host file, there is no
+check for duplicate IP addresses. If you are starting with a valid
+BIND configuration, this shouldn't be a problem.</p>
+</dd>
+</dl>
+<h2><a name="author">AUTHOR</a></h2>
+<p>Michael S. Liebman <msl521 at sourceforge dot net></p>
+<h2><a name="copyright_and_license">COPYRIGHT AND LICENSE</a></h2>
+<p>Copyright 2003 by Michael S. Liebman</p>
+<p>This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.</p>
+<p>This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.</p>
+<p>You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p></div>
+
+<div id="sidebar">
+ <h2>Links</h2>
+ <p><a href="http://www.isc.org/bind/">ISC BIND</a></p>
+ <p>About <a href="http://en.wikipedia.org/wiki/Domain_name_system">DNS</a>
+ & <a href="http://en.wikipedia.org/wiki//etc/hosts">hosts</a></p>
+ <p><a href="http://sauron.jyu.fi/">Sauron DNS & DHCP Management</a></p>
+ <p><!-- #BeginLibraryItem "/Library/SF Logo.lbi" --><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=167918&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a><!-- #EndLibraryItem --></p>
+</div>
+
+<div id="footer">
+ <p> <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a>
+ | Copyright © 2006 <a href="mailto:msl521%20at%20users%20dot%20sourceforge%20dot%20com">Michael
+ S. Liebman</a>/LPJ Productions| Design by <a href="#">super j man</a>
+ </p>
+</div>
+
+</div>
+
+</div>
+<!-- #BeginLibraryItem "/Library/analytics.lbi" --><script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("UA-141660-2");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script><!-- #EndLibraryItem --></body>
+</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ms...@us...> - 2007-12-30 17:22:40
|
Revision: 34
http://zone2host.svn.sourceforge.net/zone2host/?rev=34&view=rev
Author: msl521
Date: 2007-12-30 09:22:38 -0800 (Sun, 30 Dec 2007)
Log Message:
-----------
SF Task: 127387
* www/trunk/documentation.html
Initial add.
* www/trunk/index.html,
www/trunk/download.html
Added link back to documentation page.
Modified Paths:
--------------
www/trunk/download.html
www/trunk/index.html
Added Paths:
-----------
www/trunk/documenation.html
Added: www/trunk/documenation.html
===================================================================
--- www/trunk/documenation.html (rev 0)
+++ www/trunk/documenation.html 2007-12-30 17:22:38 UTC (rev 34)
@@ -0,0 +1,199 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Zone2Host - Documentation</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link href="style.css" rel="stylesheet" type="text/css" />
+</head>
+
+<body>
+<div id="container">
+
+ <div id="header">
+ <h1>Zone2Host - Documenation</h1>
+ <p>Convert BIND zone files to hosts files</p>
+</div>
+
+<div id="tabs10">
+ <ul>
+ <li><a href="/" title="Home"><span>Home</span></a></li>
+ <li><a href="http://sourceforge.net/projects/zone2host/" title="Project Page"><span>Project Page</span></a></li>
+ <li><a href="/download.html" title="Download"><span>Download</span></a></li>
+ <li><a href="/documentation.html" title="Documenation"><span>Documentation</span></a></li>
+ </ul>
+</div>
+
+<div id="container2">
+
+<div id="content">
+<!-- INDEX BEGIN -->
+<div>
+<a name="__index__" />
+<ul>
+
+ <li><a href="#name">NAME</a></li>
+ <li><a href="#synopsis">SYNOPSIS</a></li>
+ <li><a href="#description">DESCRIPTION</a></li>
+ <li><a href="#options">OPTIONS</a></li>
+ <li><a href="#installation">INSTALLATION</a></li>
+
+ <li><a href="#bugs_and_future_features">BUGS AND FUTURE FEATURES</a></li>
+ <li><a href="#author">AUTHOR</a></li>
+ <li><a href="#copyright_and_license">COPYRIGHT AND LICENSE</a></li>
+</ul>
+
+</div>
+<!-- INDEX END -->
+
+<h2><a name="name">NAME</a></h2>
+<p>z2h - Convert BIND zone files to host files</p>
+<h2><a name="synopsis">SYNOPSIS</a></h2>
+<p>perl z2h.pl [options]</p>
+<p>or</p>
+<p>z2h.exe [options]</p>
+<pre>
+ Options:
+ -? or --help This help message
+ --man Complete documentation
+ --license Display the license</pre>
+
+<pre>
+ --zonefile=<file> Full or relative path to zone file
+ --hostfile=<file> Full or relative path to host file
+ --multiple For each zone file write to a separate
+ host file
+ --nomultiple Write to one host file even if multiple
+ zone files are given</pre>
+<pre>
+ --verbose *** TODO ***</pre>
+
+<h2><a name="description">DESCRIPTION</a></h2>
+<p><strong>z2h</strong> will convert a BIND format zone file into an /etc/hosts style
+file. It currently only operates on A records. TXT records are used to
+generate comments.</p>
+<h2><a name="options">OPTIONS</a></h2>
+<dl>
+<dt><strong><a name="or_help" class="item"><strong>-?</strong> or <strong>--help</strong></a></strong></dt>
+
+<dd>
+<p>Print a brief help message and exit.</p>
+</dd>
+<dt><strong><a name="man" class="item"><strong>--man</strong></a></strong></dt>
+
+<dd>
+<p>Print the complete documentation and exit.</p>
+</dd>
+<dt><strong><a name="license" class="item"><strong>--license</strong></a></strong></dt>
+
+<dd>
+<p>Print the text of the license and exit.</p>
+</dd>
+<dt><strong><a name="zonefile" class="item"><strong>--zonefile</strong></a></strong></dt>
+
+<dd>
+<p>Specify the BIND format zone file to operate on. A resource records
+are parsed for the IP address and host name. TXT records are matched
+to generate comments. Multiple zone files can be specified and written
+to a single host file or an host file per zone file.</p>
+</dd>
+<dt><strong><a name="hostfile" class="item"><strong>--hostfile</strong></a></strong></dt>
+
+<dd>
+
+<p>The host file that is written to. The default host file is
+<code>/etc/hosts</code>. If <code>--multiple</code> is specified, there must be one host
+file for each zone file given.</p>
+</dd>
+<dt><strong><a name="multiple_or_nomultiple" class="item"><strong>--multiple</strong> or <strong>--nomultiple</strong></a></strong></dt>
+
+<dd>
+<p>Writes each individual zone file to a separate host file. The negation
+explicitly writes to single host file; the default behavior.</p>
+
+</dd>
+<dt><strong><a name="verbose" class="item"><strong>--verbose</strong></a></strong></dt>
+
+<dd>
+<p>*** TODO ***</p>
+</dd>
+</dl>
+<h2><a name="installation">INSTALLATION</a></h2>
+<p>Install Perl and the <code>DNS::ZoneParse</code> module from CPAN or via PPM. Or
+if you are using a binary PAR distribution, just run the executable.</p>
+
+<h2><a name="bugs_and_future_features">BUGS AND FUTURE FEATURES</a></h2>
+<dl>
+<dt><strong><a name="truncation" class="item">Truncation</a></strong></dt>
+
+<dd>
+<p>Currently a static Perl format is used to generate nicely aligned
+columns. The host name is truncated at 20 characters and the comment
+is truncated at 38 characters.</p>
+</dd>
+<dt><strong><a name="unequal_a_and_txt_record_count" class="item">Unequal A and TXT record count</a></strong></dt>
+
+<dd>
+<p><code>DNS::ZoneParse</code> dumps all resource records to an array for each type
+of record. If each A record does not have a TXT record, the comments
+will not match properly.</p>
+</dd>
+<dt><strong><a name="cnames_unhandled" class="item">CNAMEs unhandled</a></strong></dt>
+
+<dd>
+<p>Host files allow multiple host names for each IP address on a single
+line. Currently CNAME RRs are ignored, but could be parsed into an
+additional host name.</p>
+</dd>
+<dt><strong><a name="duplicate_ips_allowed" class="item">Duplicate IPs allowed</a></strong></dt>
+
+<dd>
+<p>If multiple zone files are written to a single host file, there is no
+check for duplicate IP addresses. If you are starting with a valid
+BIND configuration, this shouldn't be a problem.</p>
+</dd>
+</dl>
+<h2><a name="author">AUTHOR</a></h2>
+<p>Michael S. Liebman <msl521 at sourceforge dot net></p>
+<h2><a name="copyright_and_license">COPYRIGHT AND LICENSE</a></h2>
+<p>Copyright 2003 by Michael S. Liebman</p>
+<p>This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.</p>
+<p>This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.</p>
+<p>You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p></div>
+
+<div id="sidebar">
+ <h2>Links</h2>
+ <p><a href="http://www.isc.org/bind/">ISC BIND</a></p>
+ <p>About <a href="http://en.wikipedia.org/wiki/Domain_name_system">DNS</a>
+ & <a href="http://en.wikipedia.org/wiki//etc/hosts">hosts</a></p>
+ <p><a href="http://sauron.jyu.fi/">Sauron DNS & DHCP Management</a></p>
+ <p><!-- #BeginLibraryItem "/Library/SF Logo.lbi" --><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=167918&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a><!-- #EndLibraryItem --></p>
+</div>
+
+<div id="footer">
+ <p> <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a>
+ | Copyright © 2006 <a href="mailto:msl521%20at%20users%20dot%20sourceforge%20dot%20com">Michael
+ S. Liebman</a>/LPJ Productions| Design by <a href="#">super j man</a>
+ </p>
+</div>
+
+</div>
+
+</div>
+<!-- #BeginLibraryItem "/Library/analytics.lbi" --><script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("UA-141660-2");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script><!-- #EndLibraryItem --></body>
+</html>
Property changes on: www/trunk/documenation.html
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:eol-style
+ native
Modified: www/trunk/download.html
===================================================================
--- www/trunk/download.html 2007-12-30 16:28:47 UTC (rev 33)
+++ www/trunk/download.html 2007-12-30 17:22:38 UTC (rev 34)
@@ -19,6 +19,7 @@
<li><a href="/" title="Home"><span>Home</span></a></li>
<li><a href="http://sourceforge.net/projects/zone2host/" title="Project Page"><span>Project Page</span></a></li>
<li><a href="/download.html" title="Download"><span>Download</span></a></li>
+ <li><a href="/documentation.html" title="Documenation"><span>Documentation</span></a></li>
</ul>
</div>
Modified: www/trunk/index.html
===================================================================
--- www/trunk/index.html 2007-12-30 16:28:47 UTC (rev 33)
+++ www/trunk/index.html 2007-12-30 17:22:38 UTC (rev 34)
@@ -19,6 +19,7 @@
<li><a href="/" title="Home"><span>Home</span></a></li>
<li><a href="http://sourceforge.net/projects/zone2host/" title="Project Page"><span>Project Page</span></a></li>
<li><a href="/download.html" title="Download"><span>Download</span></a></li>
+ <li><a href="/documentation.html" title="Documenation"><span>Documentation</span></a></li>
</ul>
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ms...@us...> - 2007-12-30 16:28:48
|
Revision: 33
http://zone2host.svn.sourceforge.net/zone2host/?rev=33&view=rev
Author: msl521
Date: 2007-12-30 08:28:47 -0800 (Sun, 30 Dec 2007)
Log Message:
-----------
* www/trunk/index.html,
www/trunk/download.html
Added link back to home page.
Modified Paths:
--------------
www/trunk/download.html
www/trunk/index.html
Modified: www/trunk/download.html
===================================================================
--- www/trunk/download.html 2007-12-30 16:03:43 UTC (rev 32)
+++ www/trunk/download.html 2007-12-30 16:28:47 UTC (rev 33)
@@ -16,6 +16,7 @@
<div id="tabs10">
<ul>
+ <li><a href="/" title="Home"><span>Home</span></a></li>
<li><a href="http://sourceforge.net/projects/zone2host/" title="Project Page"><span>Project Page</span></a></li>
<li><a href="/download.html" title="Download"><span>Download</span></a></li>
</ul>
Modified: www/trunk/index.html
===================================================================
--- www/trunk/index.html 2007-12-30 16:03:43 UTC (rev 32)
+++ www/trunk/index.html 2007-12-30 16:28:47 UTC (rev 33)
@@ -16,6 +16,7 @@
<div id="tabs10">
<ul>
+ <li><a href="/" title="Home"><span>Home</span></a></li>
<li><a href="http://sourceforge.net/projects/zone2host/" title="Project Page"><span>Project Page</span></a></li>
<li><a href="/download.html" title="Download"><span>Download</span></a></li>
</ul>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ms...@us...> - 2007-12-30 16:03:39
|
Revision: 32
http://zone2host.svn.sourceforge.net/zone2host/?rev=32&view=rev
Author: msl521
Date: 2007-12-30 08:03:43 -0800 (Sun, 30 Dec 2007)
Log Message:
-----------
* www/trunk/download.html
Fixed page title.
Modified Paths:
--------------
www/trunk/download.html
Modified: www/trunk/download.html
===================================================================
--- www/trunk/download.html 2007-12-30 15:59:59 UTC (rev 31)
+++ www/trunk/download.html 2007-12-30 16:03:43 UTC (rev 32)
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-<title>Zone2Host</title>
+<title>Zone2Host - Download</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
@@ -10,7 +10,7 @@
<div id="container">
<div id="header">
- <h1>Zone2Host</h1>
+ <h1>Zone2Host - Download</h1>
<p>Convert BIND zone files to hosts files</p>
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ms...@us...> - 2007-12-30 16:00:01
|
Revision: 31
http://zone2host.svn.sourceforge.net/zone2host/?rev=31&view=rev
Author: msl521
Date: 2007-12-30 07:59:59 -0800 (Sun, 30 Dec 2007)
Log Message:
-----------
* www/trunk/index.html,
www/trunk/download.html
Updated analytics to ga.js code.
Modified Paths:
--------------
www/trunk/download.html
www/trunk/index.html
Modified: www/trunk/download.html
===================================================================
--- www/trunk/download.html 2006-05-28 02:33:26 UTC (rev 30)
+++ www/trunk/download.html 2007-12-30 15:59:59 UTC (rev 31)
@@ -53,11 +53,13 @@
</div>
</div>
-<!-- #BeginLibraryItem "/Library/analytics.lbi" --><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+<!-- #BeginLibraryItem "/Library/analytics.lbi" --><script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
-_uacct = "UA-141660-2";
-urchinTracker();
-</script><!-- #EndLibraryItem -->
-</body>
+var pageTracker = _gat._getTracker("UA-141660-2");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script><!-- #EndLibraryItem --></body>
</html>
Modified: www/trunk/index.html
===================================================================
--- www/trunk/index.html 2006-05-28 02:33:26 UTC (rev 30)
+++ www/trunk/index.html 2007-12-30 15:59:59 UTC (rev 31)
@@ -60,11 +60,13 @@
</div>
</div>
-<!-- #BeginLibraryItem "/Library/analytics.lbi" --><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+<!-- #BeginLibraryItem "/Library/analytics.lbi" --><script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
-_uacct = "UA-141660-2";
-urchinTracker();
-</script><!-- #EndLibraryItem -->
-</body>
+var pageTracker = _gat._getTracker("UA-141660-2");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script><!-- #EndLibraryItem --></body>
</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ms...@us...> - 2006-05-28 02:33:32
|
Revision: 30 Author: msl521 Date: 2006-05-27 19:33:26 -0700 (Sat, 27 May 2006) ViewCVS: http://svn.sourceforge.net/zone2host/?rev=30&view=rev Log Message: ----------- SF Tracker: 1494710 SF Task: 127470 SF Task: 127471 Perl Critic Severity 1 & 2 * script/z2h.pl Changed printing loop to a perl style for. Added braces to filehandle on print in loop. Removed parens from builtin exit. Modified Paths: -------------- core/trunk/script/z2h.pl Modified: core/trunk/script/z2h.pl =================================================================== --- core/trunk/script/z2h.pl 2006-05-27 21:43:18 UTC (rev 29) +++ core/trunk/script/z2h.pl 2006-05-28 02:33:26 UTC (rev 30) @@ -39,17 +39,17 @@ # Assume that the number of A and TXT RRs is equal and write() to # the output file -for ( my $i = 0; $i < scalar( @{$rr_a} ); $i++ ) { +for my $i ( 0 .. scalar( @{$rr_a} ) - 1 ) { my $name = $rr_a->[$i]{'name'}; my $host = $rr_a->[$i]{'host'}; my $comment = $rr_txt->[$i]{'text'}; - print $hostfile_fh form( $hostfile_format, $host, $name, $comment ); + print {$hostfile_fh} form( $hostfile_format, $host, $name, $comment ); } # Close the hostfile close $hostfile_fh; -exit(0); +exit 0; __END__ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <ms...@us...> - 2006-05-27 21:43:22
|
Revision: 29 Author: msl521 Date: 2006-05-27 14:43:18 -0700 (Sat, 27 May 2006) ViewCVS: http://svn.sourceforge.net/zone2host/?rev=29&view=rev Log Message: ----------- * script/z2h.pl Removed extraneous check for the deprecated multiple file option on closing the host file. Modified Paths: -------------- core/trunk/script/z2h.pl Modified: core/trunk/script/z2h.pl =================================================================== --- core/trunk/script/z2h.pl 2006-05-27 21:37:26 UTC (rev 28) +++ core/trunk/script/z2h.pl 2006-05-27 21:43:18 UTC (rev 29) @@ -47,7 +47,7 @@ } # Close the hostfile -close $hostfile_fh unless $ARGV{-multiple}; +close $hostfile_fh; exit(0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <ms...@us...> - 2006-05-27 21:37:35
|
Revision: 28 Author: msl521 Date: 2006-05-27 14:37:26 -0700 (Sat, 27 May 2006) ViewCVS: http://svn.sourceforge.net/zone2host/?rev=28&view=rev Log Message: ----------- SF Task: 127469 SF Tracker: 1494710 * t/, t/criticize.t, t/perlcriticrc Initial add. Added Paths: ----------- core/trunk/t/ core/trunk/t/criticize.t core/trunk/t/perlcriticrc Property changes on: core/trunk/t ___________________________________________________________________ Name: svn:ignore + _build Build Build.bat blib *.tmp README MANIFEST MANIFEST.bak META.yml *.bak Added: core/trunk/t/criticize.t =================================================================== --- core/trunk/t/criticize.t (rev 0) +++ core/trunk/t/criticize.t 2006-05-27 21:37:26 UTC (rev 28) @@ -0,0 +1,7 @@ +#!perl + +use Test::More; + +eval "use Test::Perl::Critic (-profile => 't/perlcriticrc', -severity => 1)"; +plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; +all_critic_ok(); Property changes on: core/trunk/t/criticize.t ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: core/trunk/t/perlcriticrc =================================================================== --- core/trunk/t/perlcriticrc (rev 0) +++ core/trunk/t/perlcriticrc 2006-05-27 21:37:26 UTC (rev 28) @@ -0,0 +1 @@ +[-Miscellanea::RequireRcsKeywords] Property changes on: core/trunk/t/perlcriticrc ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <ms...@us...> - 2006-05-27 20:10:22
|
Revision: 27 Author: msl521 Date: 2006-05-27 13:10:17 -0700 (Sat, 27 May 2006) ViewCVS: http://svn.sourceforge.net/zone2host/?rev=27&view=rev Log Message: ----------- Code tidying * zone2host Added ignore for *.bak * zone2host/script Recursed the ignores from zone2host * Build.PL, script/z2h.pl Perltidy Modified Paths: -------------- core/trunk/Build.PL core/trunk/script/z2h.pl Property Changed: ---------------- core/trunk/ core/trunk/script/ Property changes on: core/trunk ___________________________________________________________________ Name: svn:ignore - _build Build Build.bat blib *.tmp README MANIFEST MANIFEST.bak META.yml + _build Build Build.bat blib *.tmp README MANIFEST MANIFEST.bak META.yml *.bak Modified: core/trunk/Build.PL =================================================================== --- core/trunk/Build.PL 2006-05-27 20:02:17 UTC (rev 26) +++ core/trunk/Build.PL 2006-05-27 20:10:17 UTC (rev 27) @@ -9,10 +9,10 @@ dist_name => 'Zone2Host', dist_author => 'Michael S. Liebman <ms...@us...>', dist_version_from => 'script/z2h.pl', - dist_version => '0.0.3', # get around qv stringification - license => 'gpl', - create_readme => 1, - build_requires => { + dist_version => '0.0.3', # get around qv stringification + license => 'gpl', + create_readme => 1, + build_requires => { 'App::Build' => 0, 'Module::Build' => '>=0.18', }, @@ -23,7 +23,7 @@ 'DNS::ZoneParse' => 0, 'Getopt::Euclid' => '>= 0.0.5', }, - script_files => { 'script/z2h.pl' => 0, }, - add_to_cleanup => [ 'Zone2Host-*' ], + script_files => { 'script/z2h.pl' => 0, }, + add_to_cleanup => ['Zone2Host-*'], ); $build->create_build_script; Property changes on: core/trunk/script ___________________________________________________________________ Name: svn:ignore + _build Build Build.bat blib *.tmp README MANIFEST MANIFEST.bak META.yml *.bak Modified: core/trunk/script/z2h.pl =================================================================== --- core/trunk/script/z2h.pl 2006-05-27 20:02:17 UTC (rev 26) +++ core/trunk/script/z2h.pl 2006-05-27 20:10:17 UTC (rev 27) @@ -20,30 +20,30 @@ # Format for a host file. Comments are preceded by a '#'. Items are # truncated. Readonly my $hostfile_format => - '{<<<<<<<<<<<<<} {<<<<<<<<<<<<<<<<<<} # {<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<}'; + '{<<<<<<<<<<<<<} {<<<<<<<<<<<<<<<<<<} # {<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<}'; # Open the hostfile for writing. my $hostfile = $ARGV{-hostfile}; -open my $hostfile_fh, '>', $hostfile or - croak "Unable to open host file \($hostfile\) for writing: $!\n"; +open my $hostfile_fh, '>', $hostfile + or croak "Unable to open host file \($hostfile\) for writing: $!\n"; # DNS::ZoneParse throws fatal errors with file problems, so there is # no need to test the return value. # # TODO: Trap the fatal errors and move on to the next zone file. -my $zonefile = DNS::ZoneParse->new($ARGV{-zonefile}); +my $zonefile = DNS::ZoneParse->new( $ARGV{-zonefile} ); # Get all the A and TXT resource records. -my $rr_a = $zonefile->a(); +my $rr_a = $zonefile->a(); my $rr_txt = $zonefile->txt(); # Assume that the number of A and TXT RRs is equal and write() to # the output file -for (my $i = 0; $i < scalar(@{$rr_a}); $i++) { - my $name = $rr_a->[$i]{'name'}; - my $host = $rr_a->[$i]{'host'}; +for ( my $i = 0; $i < scalar( @{$rr_a} ); $i++ ) { + my $name = $rr_a->[$i]{'name'}; + my $host = $rr_a->[$i]{'host'}; my $comment = $rr_txt->[$i]{'text'}; - print $hostfile_fh form($hostfile_format, $host, $name, $comment); + print $hostfile_fh form( $hostfile_format, $host, $name, $comment ); } # Close the hostfile @@ -51,8 +51,6 @@ exit(0); - - __END__ =head1 NAME This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <ms...@us...> - 2006-05-27 20:02:26
|
Revision: 26 Author: msl521 Date: 2006-05-27 13:02:17 -0700 (Sat, 27 May 2006) ViewCVS: http://svn.sourceforge.net/zone2host/?rev=26&view=rev Log Message: ----------- SF Tracker: 1496089 Implement App::Build * zone2host Added ignores for build system stuff * script Created App::Build script directory * script/z2h.pl Moved from root * Build.PL, MANIFEST.SKIP Initial add Added Paths: ----------- core/trunk/Build.PL core/trunk/MANIFEST.SKIP core/trunk/script/ core/trunk/script/z2h.pl Removed Paths: ------------- core/trunk/z2h.pl Property Changed: ---------------- core/trunk/ Property changes on: core/trunk ___________________________________________________________________ Name: svn:ignore + _build Build Build.bat blib *.tmp README MANIFEST MANIFEST.bak META.yml Added: core/trunk/Build.PL =================================================================== --- core/trunk/Build.PL (rev 0) +++ core/trunk/Build.PL 2006-05-27 20:02:17 UTC (rev 26) @@ -0,0 +1,29 @@ +#!perl + +use strict; +use warnings; + +use App::Build; + +my $build = App::Build->new( + dist_name => 'Zone2Host', + dist_author => 'Michael S. Liebman <ms...@us...>', + dist_version_from => 'script/z2h.pl', + dist_version => '0.0.3', # get around qv stringification + license => 'gpl', + create_readme => 1, + build_requires => { + 'App::Build' => 0, + 'Module::Build' => '>=0.18', + }, + requires => { + 'version' => 0, + 'Readonly' => 0, + 'Perl6::Form' => 0, + 'DNS::ZoneParse' => 0, + 'Getopt::Euclid' => '>= 0.0.5', + }, + script_files => { 'script/z2h.pl' => 0, }, + add_to_cleanup => [ 'Zone2Host-*' ], +); +$build->create_build_script; Property changes on: core/trunk/Build.PL ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: core/trunk/MANIFEST.SKIP =================================================================== --- core/trunk/MANIFEST.SKIP (rev 0) +++ core/trunk/MANIFEST.SKIP 2006-05-27 20:02:17 UTC (rev 26) @@ -0,0 +1,17 @@ +^_build +(^|/)blib +^Build$ +^Build.bat$ +~$ +^MANIFEST\.SKIP$ +\.bak$ +\.rej$ +^patch +^Zone2Host- +Makefile$ +/cover_db/ +\.tdy$ +\.svn +\.zone$ +hosts + Property changes on: core/trunk/MANIFEST.SKIP ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Copied: core/trunk/script/z2h.pl (from rev 25, core/trunk/z2h.pl) =================================================================== --- core/trunk/script/z2h.pl (rev 0) +++ core/trunk/script/z2h.pl 2006-05-27 20:02:17 UTC (rev 26) @@ -0,0 +1,273 @@ +#!/usr/bin/perl + +# $Id$ +# $URL$ +# $Rev$ + +use strict; +use warnings; + +use Readonly; +use Carp; +use Perl6::Form; + +use DNS::ZoneParse; + +use Getopt::Euclid; + +use version; our $VERSION = qv('0.0.3'); + +# Format for a host file. Comments are preceded by a '#'. Items are +# truncated. +Readonly my $hostfile_format => + '{<<<<<<<<<<<<<} {<<<<<<<<<<<<<<<<<<} # {<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<}'; + +# Open the hostfile for writing. +my $hostfile = $ARGV{-hostfile}; +open my $hostfile_fh, '>', $hostfile or + croak "Unable to open host file \($hostfile\) for writing: $!\n"; + +# DNS::ZoneParse throws fatal errors with file problems, so there is +# no need to test the return value. +# +# TODO: Trap the fatal errors and move on to the next zone file. +my $zonefile = DNS::ZoneParse->new($ARGV{-zonefile}); + +# Get all the A and TXT resource records. +my $rr_a = $zonefile->a(); +my $rr_txt = $zonefile->txt(); + +# Assume that the number of A and TXT RRs is equal and write() to +# the output file +for (my $i = 0; $i < scalar(@{$rr_a}); $i++) { + my $name = $rr_a->[$i]{'name'}; + my $host = $rr_a->[$i]{'host'}; + my $comment = $rr_txt->[$i]{'text'}; + print $hostfile_fh form($hostfile_format, $host, $name, $comment); +} + +# Close the hostfile +close $hostfile_fh unless $ARGV{-multiple}; + +exit(0); + + + +__END__ + +=head1 NAME + +z2h - Convert BIND zone files to host files + +=head1 VERSION + +This documentation refers to z2h version 0.0.3 + +=head1 DESCRIPTION + +B<z2h> will convert a BIND format zone file into an /etc/hosts style +file. It currently only operates on A records. TXT records are used to +generate comments. + +=head1 USAGE + +perl z2h.pl -zonefile=example.com.zone -hostfile=hosts + +or + +z2h.exe -zonefile=example.com.zone -hostfile=hosts + +=head1 REQUIRED ARGUMENTS + +=over + +=item -zonefile [=] <file> + +Full or relative path to zone file + +=for Euclid + file.type: readable + +=back + +=head1 OPTIONS + +=over + +=item -hostfile [=] <file> + +Full or relative path to host file + +=for Euclid + file.type: writeable + file.default: "/etc/hosts" + +=item --help + +Print a brief help message and exit. + +=item --man + +Print the complete documentation and exit. + +=item --version + +Print the version, copyright and license information and exit. + +=item --verbose + +*** TODO *** + +=back + +=head1 ABOUT ZONE AND HOST FILES + +=over + +=item B<--zonefile> + +Specify the BIND format zone file to operate on. A resource records +are parsed for the IP address and host name. TXT records are matched +to generate comments. Multiple zone files can be specified and written +to a single host file or an host file per zone file. + +=item B<--hostfile> + +The host file that is written to. The default host file is +C</etc/hosts>. If C<--multiple> is specified, there must be one host +file for each zone file given. + +=back + + +=head1 INSTALLATION + +Install Perl and the C<DNS::ZoneParse> module from CPAN or via PPM. Or +if you are using a binary PAR distribution, just run the executable. + +=head1 CONFIGURATION + +No environment variables or configuration files are used. All +configuration is done at run time through command line options. + +=head1 DEPENDENCIES + +=over + +=item L<DNS::ZoneParse> + +=item L<Perl6:Form> + +=item L<Getopt::Euclid> + +=back + +=head1 INCOMPATIBILITIES + +There are no known incompatibilities at this time. + +=head1 DIAGNOSTICS + +=over + +=item "Number of host files does not equal number of zone files." + +You requested one host file for each zone file, but you did not supply +equal numbers of zone and hosts files. If you only wanted one host +file, use the C<--nomultiple> argument. + +=item "Got more than one host file but expected only one." + +You requested all of the zone files to be flattened into a single host +file, but you supplied multiple host files. If you wanted more than +one host file, use the C<--multiple> argument. + +=item "Unable to open host file (<hostfile>) for writing" + +The host file was not writeable. If you are trying to write to +C</etc/hosts> you probably need to be root. + +=back + +=head1 EXIT STATUS + +If the process completes successfully, the program will exit with a +status of zero. + +=head1 BUGS AND LIMITATIONS + +Please report bugs and feature requests through the SourceForge +project tracker at L<http://sourceforge.net/tracker/> + +=over + +=item Truncation + +Currently a static Perl format is used to generate nicely aligned +columns. The host name is truncated at 20 characters and the comment +is truncated at 38 characters. + +=item Unequal A and TXT record count + +C<DNS::ZoneParse> dumps all resource records to an array for each type +of record. If each A record does not have a TXT record, the comments +will not match properly. + +=item CNAMEs unhandled + +Host files allow multiple host names for each IP address on a single +line. Currently CNAME RRs are ignored, but could be parsed into an +additional host name. + +=item Duplicate IPs allowed + +If multiple zone files are written to a single host file, there is no +check for duplicate IP addresses. If you are starting with a valid +BIND configuration, this shouldn't be a problem. + +=back + +=head1 AUTHOR + +Michael S. Liebman E<lt>msl521 at sourceforge dot netE<gt> + +=head1 LICENSE AND COPYRIGHT + +Copyright 2006 by Michael S. Liebman (msl521 at sourceforge dot net). All rights reserved. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +=head1 DISCLAIMER OF WARRANTY + +BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER +EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE +ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH +YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL +NECESSARY SERVICING, REPAIR, OR CORRECTION. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE +LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, +OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE +THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. Deleted: core/trunk/z2h.pl =================================================================== --- core/trunk/z2h.pl 2006-05-27 18:22:12 UTC (rev 25) +++ core/trunk/z2h.pl 2006-05-27 20:02:17 UTC (rev 26) @@ -1,273 +0,0 @@ -#!/usr/bin/perl - -# $Id$ -# $URL$ -# $Rev$ - -use strict; -use warnings; - -use Readonly; -use Carp; -use Perl6::Form; - -use DNS::ZoneParse; - -use Getopt::Euclid; - -use version; our $VERSION = qv('0.0.3'); - -# Format for a host file. Comments are preceded by a '#'. Items are -# truncated. -Readonly my $hostfile_format => - '{<<<<<<<<<<<<<} {<<<<<<<<<<<<<<<<<<} # {<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<}'; - -# Open the hostfile for writing. -my $hostfile = $ARGV{-hostfile}; -open my $hostfile_fh, '>', $hostfile or - croak "Unable to open host file \($hostfile\) for writing: $!\n"; - -# DNS::ZoneParse throws fatal errors with file problems, so there is -# no need to test the return value. -# -# TODO: Trap the fatal errors and move on to the next zone file. -my $zonefile = DNS::ZoneParse->new($ARGV{-zonefile}); - -# Get all the A and TXT resource records. -my $rr_a = $zonefile->a(); -my $rr_txt = $zonefile->txt(); - -# Assume that the number of A and TXT RRs is equal and write() to -# the output file -for (my $i = 0; $i < scalar(@{$rr_a}); $i++) { - my $name = $rr_a->[$i]{'name'}; - my $host = $rr_a->[$i]{'host'}; - my $comment = $rr_txt->[$i]{'text'}; - print $hostfile_fh form($hostfile_format, $host, $name, $comment); -} - -# Close the hostfile -close $hostfile_fh unless $ARGV{-multiple}; - -exit(0); - - - -__END__ - -=head1 NAME - -z2h - Convert BIND zone files to host files - -=head1 VERSION - -This documentation refers to z2h version 0.0.3 - -=head1 DESCRIPTION - -B<z2h> will convert a BIND format zone file into an /etc/hosts style -file. It currently only operates on A records. TXT records are used to -generate comments. - -=head1 USAGE - -perl z2h.pl -zonefile=example.com.zone -hostfile=hosts - -or - -z2h.exe -zonefile=example.com.zone -hostfile=hosts - -=head1 REQUIRED ARGUMENTS - -=over - -=item -zonefile [=] <file> - -Full or relative path to zone file - -=for Euclid - file.type: readable - -=back - -=head1 OPTIONS - -=over - -=item -hostfile [=] <file> - -Full or relative path to host file - -=for Euclid - file.type: writeable - file.default: "/etc/hosts" - -=item --help - -Print a brief help message and exit. - -=item --man - -Print the complete documentation and exit. - -=item --version - -Print the version, copyright and license information and exit. - -=item --verbose - -*** TODO *** - -=back - -=head1 ABOUT ZONE AND HOST FILES - -=over - -=item B<--zonefile> - -Specify the BIND format zone file to operate on. A resource records -are parsed for the IP address and host name. TXT records are matched -to generate comments. Multiple zone files can be specified and written -to a single host file or an host file per zone file. - -=item B<--hostfile> - -The host file that is written to. The default host file is -C</etc/hosts>. If C<--multiple> is specified, there must be one host -file for each zone file given. - -=back - - -=head1 INSTALLATION - -Install Perl and the C<DNS::ZoneParse> module from CPAN or via PPM. Or -if you are using a binary PAR distribution, just run the executable. - -=head1 CONFIGURATION - -No environment variables or configuration files are used. All -configuration is done at run time through command line options. - -=head1 DEPENDENCIES - -=over - -=item L<DNS::ZoneParse> - -=item L<Perl6:Form> - -=item L<Getopt::Euclid> - -=back - -=head1 INCOMPATIBILITIES - -There are no known incompatibilities at this time. - -=head1 DIAGNOSTICS - -=over - -=item "Number of host files does not equal number of zone files." - -You requested one host file for each zone file, but you did not supply -equal numbers of zone and hosts files. If you only wanted one host -file, use the C<--nomultiple> argument. - -=item "Got more than one host file but expected only one." - -You requested all of the zone files to be flattened into a single host -file, but you supplied multiple host files. If you wanted more than -one host file, use the C<--multiple> argument. - -=item "Unable to open host file (<hostfile>) for writing" - -The host file was not writeable. If you are trying to write to -C</etc/hosts> you probably need to be root. - -=back - -=head1 EXIT STATUS - -If the process completes successfully, the program will exit with a -status of zero. - -=head1 BUGS AND LIMITATIONS - -Please report bugs and feature requests through the SourceForge -project tracker at L<http://sourceforge.net/tracker/> - -=over - -=item Truncation - -Currently a static Perl format is used to generate nicely aligned -columns. The host name is truncated at 20 characters and the comment -is truncated at 38 characters. - -=item Unequal A and TXT record count - -C<DNS::ZoneParse> dumps all resource records to an array for each type -of record. If each A record does not have a TXT record, the comments -will not match properly. - -=item CNAMEs unhandled - -Host files allow multiple host names for each IP address on a single -line. Currently CNAME RRs are ignored, but could be parsed into an -additional host name. - -=item Duplicate IPs allowed - -If multiple zone files are written to a single host file, there is no -check for duplicate IP addresses. If you are starting with a valid -BIND configuration, this shouldn't be a problem. - -=back - -=head1 AUTHOR - -Michael S. Liebman E<lt>msl521 at sourceforge dot netE<gt> - -=head1 LICENSE AND COPYRIGHT - -Copyright 2006 by Michael S. Liebman (msl521 at sourceforge dot net). All rights reserved. - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -=head1 DISCLAIMER OF WARRANTY - -BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER -EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE -ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH -YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL -NECESSARY SERVICING, REPAIR, OR CORRECTION. - -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE -LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, -OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE -THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <ms...@us...> - 2006-05-27 18:22:19
|
Revision: 25 Author: msl521 Date: 2006-05-27 11:22:12 -0700 (Sat, 27 May 2006) ViewCVS: http://svn.sourceforge.net/zone2host/?rev=25&view=rev Log Message: ----------- SF Tracker: 1493305 * z2h.pl Changed version to a 3 part version object. Modified Paths: -------------- core/trunk/z2h.pl Modified: core/trunk/z2h.pl =================================================================== --- core/trunk/z2h.pl 2006-05-27 18:03:41 UTC (rev 24) +++ core/trunk/z2h.pl 2006-05-27 18:22:12 UTC (rev 25) @@ -15,7 +15,7 @@ use Getopt::Euclid; -our $VERSION = 0.03; +use version; our $VERSION = qv('0.0.3'); # Format for a host file. Comments are preceded by a '#'. Items are # truncated. @@ -61,7 +61,7 @@ =head1 VERSION -This documentation refers to z2h version 0.03 +This documentation refers to z2h version 0.0.3 =head1 DESCRIPTION This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <ms...@us...> - 2006-05-27 18:03:46
|
Revision: 24 Author: msl521 Date: 2006-05-27 11:03:41 -0700 (Sat, 27 May 2006) ViewCVS: http://svn.sourceforge.net/zone2host/?rev=24&view=rev Log Message: ----------- * z2h.pl Removed remaining pod2usage code. Eliminated mutliple zone/host file processing. Modified Paths: -------------- core/trunk/z2h.pl Modified: core/trunk/z2h.pl =================================================================== --- core/trunk/z2h.pl 2006-05-23 01:40:51 UTC (rev 23) +++ core/trunk/z2h.pl 2006-05-27 18:03:41 UTC (rev 24) @@ -22,82 +22,31 @@ Readonly my $hostfile_format => '{<<<<<<<<<<<<<} {<<<<<<<<<<<<<<<<<<} # {<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<}'; -# Check for at least one zone file -unless ($ARGV{-zonefile}) { - pod2usage( - -exitval => 3, - -message => "At least one zone file needed.", - ); -} +# Open the hostfile for writing. +my $hostfile = $ARGV{-hostfile}; +open my $hostfile_fh, '>', $hostfile or + croak "Unable to open host file \($hostfile\) for writing: $!\n"; -# Check for a host file or use the default -unless ($ARGV{-hostfile}) { - push(@{$ARGV{-hostfile}}, '/etc/hosts'); -} +# DNS::ZoneParse throws fatal errors with file problems, so there is +# no need to test the return value. +# +# TODO: Trap the fatal errors and move on to the next zone file. +my $zonefile = DNS::ZoneParse->new($ARGV{-zonefile}); -# For convienence, set the multiple option if it wasn't set on the -# command line. Check to see if the number of zone files equals the -# number of host files. Also check for multiple host files when only -# expecting one. -$ARGV{-multiple} = 0 unless exists($ARGV{-multiple}); -if ($ARGV{-multiple}) { - if( scalar(@{$ARGV{-hostfile}}) != scalar(@{$ARGV{-zonefile}}) ) { - croak "Number of host files does not equal number of zone files."; - } -} else { - if ( scalar(@{$ARGV{-hostfile}}) > 1 ) { - croak "Got more than one host file but expected only one."; - } -} +# Get all the A and TXT resource records. +my $rr_a = $zonefile->a(); +my $rr_txt = $zonefile->txt(); -my $hostfile_fh; - -# If we're only writing to one host file, open it. -# TODO: break this out into a sub. -unless ($ARGV{-multiple}) { - my $hostfile = $ARGV{-hostfile}[0]; - open $hostfile_fh, '>', $hostfile or - croak "Unable to open host file \($hostfile\) for writing: $!\n"; -} - -# Iterate over all of the zone files specified on the command line. -for (my $opt_counter = 0; - $opt_counter < scalar(@{$ARGV{-zonefile}}); - $opt_counter++) { - - # DNS::ZoneParse throws fatal errors with file problems, so there is - # no need to test the return value. - # - # TODO: Trap the fatal errors and move on to the next zone file. - my $zonefile = DNS::ZoneParse->new($ARGV{-zonefile}[$opt_counter]); - - # Get all the A and TXT resource records. - my $rr_a = $zonefile->a(); - my $rr_txt = $zonefile->txt(); - - # Open the appropriate host file if we're using multiple host files - # - # TODO: Make a failure non-fatal and move on. - if ($ARGV{-multiple}) { - my $hostfile = $ARGV{-hostfile}[$opt_counter]; - open $hostfile_fh, '>', $hostfile or - croak "Unable to open host file \($hostfile\) for writing: $!\n"; - } - - # Assume that the number of A and TXT RRs is equal and write() to - # the output file - for (my $i = 0; $i < scalar(@{$rr_a}); $i++) { +# Assume that the number of A and TXT RRs is equal and write() to +# the output file +for (my $i = 0; $i < scalar(@{$rr_a}); $i++) { my $name = $rr_a->[$i]{'name'}; my $host = $rr_a->[$i]{'host'}; my $comment = $rr_txt->[$i]{'text'}; print $hostfile_fh form($hostfile_format, $host, $name, $comment); - } - - # Close the hostfile only if using multiple host files. - close $hostfile_fh if $ARGV{-multiple}; } -# Close the hostfile if we weren't using multiple host files. +# Close the hostfile close $hostfile_fh unless $ARGV{-multiple}; exit(0); @@ -139,6 +88,12 @@ =for Euclid file.type: readable +=back + +=head1 OPTIONS + +=over + =item -hostfile [=] <file> Full or relative path to host file @@ -147,12 +102,6 @@ file.type: writeable file.default: "/etc/hosts" -=back - -=head1 OPTIONS - -=over - =item --help Print a brief help message and exit. @@ -165,11 +114,6 @@ Print the version, copyright and license information and exit. -=item --multiple - -Writes each individual zone file to a separate host file. The negation -explicitly writes to single host file; the default behavior. - =item --verbose *** TODO *** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <ms...@us...> - 2006-05-23 01:40:56
|
Revision: 23 Author: msl521 Date: 2006-05-22 18:40:51 -0700 (Mon, 22 May 2006) ViewCVS: http://svn.sourceforge.net/zone2host/?rev=23&view=rev Log Message: ----------- * www/trunk/download.html Added 0.02 release info and previous release info. Modified Paths: -------------- www/trunk/download.html Modified: www/trunk/download.html =================================================================== --- www/trunk/download.html 2006-05-23 00:21:54 UTC (rev 22) +++ www/trunk/download.html 2006-05-23 01:40:51 UTC (rev 23) @@ -25,9 +25,15 @@ <div id="content"> <h2>Download Zone2Host</h2> - <p> There are no releases available as standalone downloads yet. You can - get <em>Zone2Host</em> from the <a href="https://sourceforge.net/svn/?group_id=167918">Subversion - repository</a>.</p> + <p>The latest released version is 0.02. You can download the <a href="http://prdownloads.sourceforge.net/zone2host/zone2host-0.02.tar.gz?download">.tar.gz</a> + or <a href="http://prdownloads.sourceforge.net/zone2host/zone2host-0.02.zip?download">.zip</a> + of the program.</p> + <h2>Development Versions</h2> + <p>Vist the <a href="https://sourceforge.net/svn/?group_id=167918">Subversion + repository</a> for the most recent changes.</p> + <h2>Previous Versions</h2> + <p>Previous versions of <em>Zone2Host</em> can be downloaded from the <a href="https://sourceforge.net/project/showfiles.php?group_id=167918">File + Release</a> page.</p> <h2> </h2> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |