Code Monkey home page Code Monkey logo

Comments (8)

 avatar commented on June 4, 2024

You're right, I missed it.
Any patch?

from dns.

DominikTo avatar DominikTo commented on June 4, 2024

I've been looking a bit at the \Hoa\Dns\Dns class, but unfortunately don't have enough time at the moment to get up to speed with UDP and the DNS protocol.

from dns.

 avatar commented on June 4, 2024

Hi,

I have re-written “from scratch” the protocol computation (please, see commit b39775a, e05f89d, fee96ca, a20843d, 25483e9, d5ce1a1, 3d9f85b, 3b5341b, 7e1c3ff which is the most important and 27618d2) The code is now more expressive and more informative.

So, the two major new features are:

  • the (Q)CLASS is passed to the listener through the class index;
  • if the listener returns false, then the resolver answer includes NXDOMAIN (3) (please, see the line 227).

My tests are conclusive. I wonder what about yours?

Best regards.

from dns.

 avatar commented on June 4, 2024

Documentation (in french) has been updated.

from dns.

DominikTo avatar DominikTo commented on June 4, 2024

Awesome! Just tried it: NXDOMAIN is returned, but when testing lookups via nslookup (for example nslookup example.org 127.0.0.1 -port 54) it complains about the message being malformed.

nslookup error

;; Warning: Message parser reports malformed message packet.
Server:     127.0.0.1
Address:    127.0.0.1#54

** server can't find example.org: NXDOMAIN

I logged it with tcpdump (just used port 54 to get a clean log), maybe that helps you.

tcpdump

tcpdump: listening on lo0, link-type NULL (BSD loopback), capture size 256 bytes
19:45:40.960245 IP (tos 0x0, ttl 64, id 2035, offset 0, flags [none], proto UDP (17), length 57, bad cksum 0 (->74bf)!)
    127.0.0.1.64161 > 127.0.0.1.54: [bad udp cksum b224!] UDP, length 29
    0x0000:  4500 0039 07f3 0000 4011 0000 7f00 0001  E..9....@.......
    0x0010:  7f00 0001 faa1 0036 0025 fe38 116b 0100  .......6.%.8.k..
    0x0020:  0001 0000 0000 0000 0765 7861 6d70 6c65  .........example
    0x0030:  036f 7267 0000 0100 01                   .org.....
19:45:41.592492 IP (tos 0x0, ttl 64, id 25271, offset 0, flags [none], proto UDP (17), length 40, bad cksum 0 (->1a0c)!)
    127.0.0.1.54 > 127.0.0.1.64161: [bad udp cksum 5376!] UDP, length 12
    0x0000:  4500 0028 62b7 0000 4011 0000 7f00 0001  E..(b...@.......
    0x0010:  7f00 0001 0036 faa1 0014 fe27 116b 8103  .....6.....'.k..
    0x0020:  0001 0001 0000 0000                      ........

from dns.

 avatar commented on June 4, 2024

Ok thanks. I'll take a look at this :-).

from dns.

 avatar commented on June 4, 2024

I was very tired yesterday night…
This is fixed now (please, see 27cc9cd). nslookup returns NXDOMAIN and does not produce a warning.

I close the issue :-).

from dns.

DominikTo avatar DominikTo commented on June 4, 2024

That fixed the problem!
👍

from dns.

Related Issues (2)

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.