Comments (6)
Almost a year later... I'm preparing a new pycares release here: saghul/pycares#83 and then I'll update this library to use it and this bug will be fixed.
I took the liberty of using your domain examples as tests :-)
from aiodns.
Hi there! Yep, I see the issue. Looks like a fix is need in pycares. This makes me wonder where else we could find such chars, so a big change, returning bytes everywhere sounds about the right thing to do...
FTR:
dig mx xn--cardeosapeluqueros-r0b.com
; <<>> DiG 9.9.7-P3 <<>> mx xn--cardeosapeluqueros-r0b.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2315
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;xn--cardeosapeluqueros-r0b.com. IN MX
;; ANSWER SECTION:
xn--cardeosapeluqueros-r0b.com. 900 IN MX 10 carde\241osapeluqueros.com.
;; Query time: 93 msec
;; SERVER: 10.53.53.53#53(10.53.53.53)
;; WHEN: Wed Jan 31 16:13:49 CET 2018
;; MSG SIZE rcvd: 95
dig soa ayesas.com
; <<>> DiG 9.9.7-P3 <<>> soa ayesas.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56952
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;ayesas.com. IN SOA
;; ANSWER SECTION:
ayesas.com. 3600 IN SOA ns2.3c1b.com. adm\253n.domain.com. 2015010244 3600 600 1209600 3600
;; Query time: 127 msec
;; SERVER: 10.53.53.53#53(10.53.53.53)
;; WHEN: Wed Jan 31 16:14:29 CET 2018
;; MSG SIZE rcvd: 97
Are you up for writing a patch?
from aiodns.
Sadly I'm not familiar with CPython and not even with C. I don't think I'm suitable for such change.
from aiodns.
That's ok, but that means you'll need to wait until I find the time to solve this all across the library.
from aiodns.
I understand, we have found some hacky workaround while it happens. Thanks for your time!
from aiodns.
This is not fixed in the ongoing V2 PR: #54 which depends on the new pycares 3.
from aiodns.
Related Issues (20)
- Error when retrieving binary data in TXT records HOT 8
- test_query_bad_chars started failing
- I was wondering if it would be worth creating more robust error responses when a query fails? HOT 1
- Support for non-standard ports? HOT 2
- [drive-by feedback] Update the GHA workflow for publishing to PyPI HOT 2
- Queries intermittently freezing asyncio event loop HOT 3
- Convert Type Annotations to Py3 syntax HOT 4
- NotImplementedError on Win10 x64 OS HOT 5
- Support for DNSSEC HOT 3
- Issue a release please HOT 8
- [2.0.0] will rely on pip typing HOT 4
- aiodns.error.DNSError: (12, 'Timeout while contacting DNS servers')
- Return fully qualified name when querying domain HOT 1
- NotImplementedError on Windows HOT 10
- Python CFFI Error HOT 1
- Use PEP-0561 to indicate to library users that type hints are available HOT 1
- Python 3.10 test failure: ERROR: test_future_cancel: TypeError: sleep() got an unexpected keyword argument 'loop' HOT 4
- AttributeError: module 'pycares' has no attribute 'QUERY_TYPE_CAA' HOT 3
- Import error in termux HOT 4
- Retry behavior HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiodns.