Permalink
Browse files

updated README

  • Loading branch information...
uberj committed Apr 2, 2013
1 parent bab7dcc commit 57b1e6b0b7785fde24e64d400a4c37c2d524ce69
Showing with 17 additions and 11 deletions.
  1. +15 −9 README.md
  2. +2 −2 dnsscopecheck/check.py
View
@@ -1,27 +1,32 @@
-fixdns
-======
+dnsscopecheck
+=============
Look for records that are in one zone file, but should be in another.
Installing
----------
```
sudo yum install fakeroot
-mkdir fixdns
-cd fixdns
+mkdir dnsscopecheck
+cd dnsscopecheck
virtualenv venv
source venv/bin/activate
pip install -e git://github.com/uberj/iscpy.git#egg=iscpy
pip install -e git://github.com/uberj/dnspython.git#egg=dns
-git clone git://github.com/uberj/fixdns.git
-cd fixdns
-python fixdns.py --help
+git clone git://github.com/uberj/dnsscopecheck.git
+cd dnsscopecheck
+python dnsscopecheck.py --help
+```
+
+If you want an rpm use:
+```
+python setup.py bdist_rpm --requires dnspython,iscpy,argparse
```
Usage
-----
```
-usage: fixdns.py [-h] --named-path NAMED_PATH [--debug] [--use-signed]
+usage: dnsscopecheck.py [-h] --named-path NAMED_PATH [--debug] [--use-signed]
[--show-corrected SHOW_CORRECTED]
[--config-file CONFIG_FILE | --config-files CONFIG_FILES | --view-file VIEW_FILE]
@@ -47,7 +52,8 @@ optional arguments:
Example Output
--------------
```
-[uberj@leo fixdns]$ ./bin/fixdns --debug --named-path $(pwd)/fixdns/tests/chroot --view-file $(pwd)/fixdns/tests/chroot/var/run/named/config/view.conf
+[uberj@leo dnsscopecheck]$ export PYTHONPATH=.:$PYTHONPATH
+[uberj@leo dnsscopecheck]$ ./bin/dnsscopecheck --debug --named-path $(pwd)/dnsscopecheck/tests/chroot/var/run/named --view-file $(pwd)/dnsscopecheck/tests/chroot/var/run/named/config/view.conf
--Processing baz.bar.foo.com
baz.bar.foo.com is a child zone of bar.foo.com
baz.bar.foo.com is a child zone of foo.com
View
@@ -6,7 +6,7 @@
from paths import swap_paths
-class Fix(object):
+class Check(object):
def __init__(self, named_path, show_corrected, config_files=None,
view_file=None, debug=False, use_signed=True):
self.use_signed = use_signed
@@ -31,7 +31,7 @@ def __init__(self, named_path, show_corrected, config_files=None,
self.zones, cmp=lambda a, b: len(b) - len(a)
)
- def fix(self):
+ def check(self):
if not self.zones:
return
zones = self.calculate_potential_violations()

0 comments on commit 57b1e6b

Please sign in to comment.