Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example does not work #7

Open
mlaradji opened this issue Jul 9, 2019 · 0 comments
Open

Example does not work #7

mlaradji opened this issue Jul 9, 2019 · 0 comments

Comments

@mlaradji
Copy link

mlaradji commented Jul 9, 2019

Description

I have tried running this example:

import asyncdns, asyncio
resolver = asyncdns.SmartResolver()
loop = asyncio.get_event_loop()
query = asyncdns.Query('www.example.com', asyncdns.A, asyncdns.IN)
f = resolver.lookup(query)
loop.run_until_complete(f)
print(f.result())

but this results in

;; Query refused ()
; 0 answers:
; 0 authorities:
; 0 additional:

This seems to be a problem in asyncdns.SmartResolver. Switching to asyncdns.SystemResolver results in

;; No error (RD, RA)
; 1 answers:
www.example.com 50006   IN      A       93.184.216.34
; 0 authorities:
; 0 additional:

System Info

I installed asyncdns through

pip install git+https://github.com/al45tair/asyncdns.git

I use conda to handle my dependencies. The output of conda list is:

# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
aiohttp                   3.5.4            py37h14c3975_0    conda-forge
async-timeout             3.0.1                   py_1000    conda-forge
asyncdns2                 0.1.3                    pypi_0    pypi
attrs                     19.1.0                     py_0    conda-forge
bzip2                     1.0.6             h14c3975_1002    conda-forge
ca-certificates           2019.6.16            hecc5488_0    conda-forge
certifi                   2019.6.16                py37_0    conda-forge
chardet                   3.0.4                 py37_1003    conda-forge
dnspython                 1.15.0                     py_0    conda-forge
ecdsa                     0.13                       py_0    conda-forge
idna                      2.8                   py37_1000    conda-forge
intel-openmp              2019.4                      243  
libblas                   3.8.0                    10_mkl    conda-forge
libcblas                  3.8.0                    10_mkl    conda-forge
libffi                    3.2.1             he1b5a44_1006    conda-forge
libgcc-ng                 9.1.0                hdf63c60_0  
liblapack                 3.8.0                    10_mkl    conda-forge
libstdcxx-ng              9.1.0                hdf63c60_0  
mkl                       2019.4                      243  
multidict                 4.5.2           py37h14c3975_1000    conda-forge
ncurses                   6.1               hf484d3e_1002    conda-forge
numpy                     1.16.4           py37h95a1406_0    conda-forge
openssl                   1.1.1b               h14c3975_1    conda-forge
pandas                    0.24.2           py37hb3f55d8_0    conda-forge
pip                       19.1.1                   py37_0    conda-forge
pycrypto                  2.6.1           py37h14c3975_1002    conda-forge
python                    3.7.3                h33d41f4_1    conda-forge
python-dateutil           2.8.0                      py_0    conda-forge
pytz                      2019.1                     py_0    conda-forge
readline                  8.0                  hf8c457e_0    conda-forge
setuptools                41.0.1                   py37_0    conda-forge
six                       1.12.0                py37_1000    conda-forge
sqlite                    3.28.0               hcee41ef_1    conda-forge
tk                        8.6.9             hed695b0_1002    conda-forge
wheel                     0.33.4                   py37_0    conda-forge
xz                        5.2.4             h14c3975_1001    conda-forge
yarl                      1.3.0           py37h14c3975_1000    conda-forge
zlib                      1.2.11            h14c3975_1004    conda-forge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant