Giter Club home page Giter Club logo

Comments (2)

pcamelo avatar pcamelo commented on June 29, 2024

c-ares is parsing correctly the no answer case so this is actually an issue from pycares:

$ ./adig -s 192.5.6.30 -t NS google.com
DNS server returned answer with no data
id: XXXXX
flags: qr rd
opcode: QUERY
rcode: NOERROR
Questions:
	google.com     .		NS
Answers:
NS records:
	google.com     .	172800	NS	ns2.google.com.
	google.com     .	172800	NS	ns1.google.com.
	google.com     .	172800	NS	ns3.google.com.
	google.com     .	172800	NS	ns4.google.com.
Additional records:
	ns2.google.com .	172800	AAAA	2001:4860:4802:34::a
	ns2.google.com .	172800	A	216.239.34.10
	ns1.google.com .	172800	AAAA	2001:4860:4802:32::a
	ns1.google.com .	172800	A	216.239.32.10
	ns3.google.com .	172800	AAAA	2001:4860:4802:36::a
	ns3.google.com .	172800	A	216.239.36.10
	ns4.google.com .	172800	AAAA	2001:4860:4802:38::a
	ns4.google.com .	172800	A	216.239.38.10

from pycares.

saghul avatar saghul commented on June 29, 2024

Hi there!

It's not an issue in pycares. c-are's parsing functions do not parse the additional section, AFAIK. adig is doing some manual parsing: https://github.com/c-ares/c-ares/blob/master/adig.c So that would have to be implemented in pycares too, which I'm not thrilled about TBH. I would however, take a PR if you're up for writing one.

from pycares.

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.