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

ConnectionRefusedError: [Errno 111] Connection refused #15

Closed
anandudas opened this issue Jul 19, 2016 · 1 comment
Closed

ConnectionRefusedError: [Errno 111] Connection refused #15

anandudas opened this issue Jul 19, 2016 · 1 comment

Comments

@anandudas
Copy link

anandudas commented Jul 19, 2016

Please see the below query.

$fierce --domain facebook.com --wide

NS: a.ns.facebook.com. b.ns.facebook.com.
SOA: a.ns.facebook.com. (69.171.239.12)
Traceback (most recent call last):
  File "/usr/local/bin/fierce", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.4/dist-packages/fierce.py", line 284, in main
    fierce(**vars(args))
  File "/usr/local/lib/python3.4/dist-packages/fierce.py", line 185, in fierce
    zone = zone_transfer(master_address, domain)
  File "/usr/local/lib/python3.4/dist-packages/fierce.py", line 110, in zone_transfer
    return dns.zone.from_xfr(dns.query.xfr(address, domain))
  File "/usr/lib/python3/dist-packages/dns/zone.py", line 979, in from_xfr
    for r in xfr:
  File "/usr/lib/python3/dist-packages/dns/query.py", line 412, in xfr
    _net_write(s, tcpmsg, expiration)
  File "/usr/lib/python3/dist-packages/dns/query.py", line 260, in _net_write
    current += sock.send(data[current:])
ConnectionRefusedError: [Errno 111] Connection refused

No idea what causes the error. May be an issue with port number?
Using Python3 on Ubuntu 14.04

@mschwager
Copy link
Owner

Hey,

I believe 1f69dd0 should fix this, or at least handle the exception correctly.

ConnectionError handles both ConnectionResetError and ConnectionRefusedError :)

I'm going to close this issue, feel free to re-open it if you're still having trouble!

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

2 participants