GithubHelp home page GithubHelp logo

Comments (6)

saghul avatar saghul commented on August 22, 2024 2

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.

saghul avatar saghul commented on August 22, 2024

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.

steven2308 avatar steven2308 commented on August 22, 2024

Sadly I'm not familiar with CPython and not even with C. I don't think I'm suitable for such change.

from aiodns.

saghul avatar saghul commented on August 22, 2024

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.

steven2308 avatar steven2308 commented on August 22, 2024

I understand, we have found some hacky workaround while it happens. Thanks for your time!

from aiodns.

saghul avatar saghul commented on August 22, 2024

This is not fixed in the ongoing V2 PR: #54 which depends on the new pycares 3.

from aiodns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.