Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: uberj/dnsscopecheck
base: 58dbeea622
...
head fork: uberj/dnsscopecheck
compare: 57b1e6b0b7
  • 2 commits
  • 20 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 02, 2013
@uberj rename! bab7dcc
@uberj updated README 57b1e6b
Showing with 26 additions and 20 deletions.
  1. +4 −4 MANIFEST
  2. +15 −9 README.md
  3. 0  {fixdns/tests → dnsscopecheck}/__init__.py
  4. +2 −2 fixdns/fix.py → dnsscopecheck/check.py
  5. 0  {fixdns → dnsscopecheck}/paths.py
  6. 0  {fixdns → dnsscopecheck/tests}/__init__.py
  7. 0  {fixdns → dnsscopecheck}/tests/all_conf.txt
  8. 0  {fixdns → dnsscopecheck}/tests/chroot/usr/bin/bash
  9. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/config/test.conf
  10. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/config/test1.conf
  11. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/config/test2.conf
  12. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/config/view.conf
  13. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/zones/bar.foo.com
  14. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/zones/bar.foo.net
  15. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/zones/baz.bar.foo.com
  16. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/zones/baz.foo.com
  17. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/zones/foo.com
  18. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/zones/foo.com.signed
  19. 0  {fixdns → dnsscopecheck}/tests/chroot/var/run/named/zones/foo.net
  20. +5 −5 setup.py
View
8 MANIFEST
@@ -1,5 +1,5 @@
setup.py
-bin/fixdns
-fixdns/__init__.py
-fixdns/fix.py
-fixdns/paths.py
+bin/dnsscopecheck
+dnsscopecheck/__init__.py
+dnsscopecheck/check.py
+dnsscopecheck/paths.py
View
24 README.md
@@ -1,5 +1,5 @@
-fixdns
-======
+dnsscopecheck
+=============
Look for records that are in one zone file, but should be in another.
@@ -7,21 +7,26 @@ 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
0  fixdns/tests/__init__.py → dnsscopecheck/__init__.py
File renamed without changes
View
4 fixdns/fix.py → dnsscopecheck/check.py
@@ -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()
View
0  fixdns/paths.py → dnsscopecheck/paths.py
File renamed without changes
View
0  fixdns/__init__.py → dnsscopecheck/tests/__init__.py
File renamed without changes
View
0  fixdns/tests/all_conf.txt → dnsscopecheck/tests/all_conf.txt
File renamed without changes
View
0  fixdns/tests/chroot/usr/bin/bash → dnsscopecheck/tests/chroot/usr/bin/bash
File renamed without changes
View
0  ...sts/chroot/var/run/named/config/test.conf → ...sts/chroot/var/run/named/config/test.conf
File renamed without changes
View
0  ...ts/chroot/var/run/named/config/test1.conf → ...ts/chroot/var/run/named/config/test1.conf
File renamed without changes
View
0  ...ts/chroot/var/run/named/config/test2.conf → ...ts/chroot/var/run/named/config/test2.conf
File renamed without changes
View
0  ...sts/chroot/var/run/named/config/view.conf → ...sts/chroot/var/run/named/config/view.conf
File renamed without changes
View
0  ...ts/chroot/var/run/named/zones/bar.foo.com → ...ts/chroot/var/run/named/zones/bar.foo.com
File renamed without changes
View
0  ...ts/chroot/var/run/named/zones/bar.foo.net → ...ts/chroot/var/run/named/zones/bar.foo.net
File renamed without changes
View
0  ...hroot/var/run/named/zones/baz.bar.foo.com → ...hroot/var/run/named/zones/baz.bar.foo.com
File renamed without changes
View
0  ...ts/chroot/var/run/named/zones/baz.foo.com → ...ts/chroot/var/run/named/zones/baz.foo.com
File renamed without changes
View
0  .../tests/chroot/var/run/named/zones/foo.com → .../tests/chroot/var/run/named/zones/foo.com
File renamed without changes
View
0  ...chroot/var/run/named/zones/foo.com.signed → ...chroot/var/run/named/zones/foo.com.signed
File renamed without changes
View
0  .../tests/chroot/var/run/named/zones/foo.net → .../tests/chroot/var/run/named/zones/foo.net
File renamed without changes
View
10 setup.py
@@ -2,16 +2,16 @@
from distutils.core import setup
-setup(name='fixdns',
+setup(name='dnsscopecheck',
version='1.0',
description='Finds errors in DNS zone files',
author='Jacques Uber',
author_email='juber@mozilla.com',
- packages=['fixdns'],
+ packages=['dnsscopecheck'],
package_data={
- 'fixdns': ['fixdns/fix.py', 'fixdns/paths.py'],
+ 'dnsscopecheck': ['dnsscopecheck/check.py', 'dnsscopecheck/paths.py'],
},
- scripts=['bin/fixdns'],
- url='https://github.com/uberj/fixdns',
+ scripts=['bin/dnsscopecheck'],
+ url='https://github.com/uberj/dnsscopecheck',
license='LICENSE.txt',
)

No commit comments for this range

Something went wrong with that request. Please try again.