diff --git a/.gitignore b/.gitignore index 1d17dae13b53adda563547053eb79233b236f797..033df5fb60d73b2e9b7a51436be920e2b6974960 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .venv +__pycache__ diff --git a/dns_unbound_cache_reader/__init__.py b/dns_unbound_cache_reader/__init__.py index 5e2ad801199630d9e1715a3b94b7640cfb8f5843..7e2a5e27d8a346195d4befe8a5bedf2218ba1d01 100644 --- a/dns_unbound_cache_reader/__init__.py +++ b/dns_unbound_cache_reader/__init__.py @@ -1 +1 @@ -from dns_unbound_cache_reader import read_unbound_cache +from .dns_unbound_cache_reader import read_unbound_cache diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..2610efb943bdc2e22c470c5278050431ef1814ef --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +fabric diff --git a/test.py b/test.py index 2b6aa9a69764ae0f6ec03fc0ddf234c18c4bae54..57230b9bb6cd0bd0a0ec79fdebb3d84f2a62ea08 100644 --- a/test.py +++ b/test.py @@ -1,3 +1,5 @@ from dns_unbound_cache_reader import read_unbound_cache -read_unbound_cache +remote_host = "linksys-router" +dns_cache = read_unbound_cache(remote_host) +print(dns_cache[0])