dnsjit.output.udpcli(3)
π dnsjit.output.udpcli β bestie edition π
okay so this is dnsjit.output.udpcli, and it lives in section 3 of the Library Functions Manual, which means it's a library function, not a command you type into your shell. got it? good. π«Ά
β¨ NAME β¨
dnsjit.output.udpcli β a Simple and dumb UDP DNS client π
πΈ SYNOPSIS πΈ
local output = require("dnsjit.output.udpcli").new("127.0.0.1", "53")
π¦ DESCRIPTION π¦
So basically: it's a simple and rather dumb DNS client. and when I say dumb I mean it with love π β it takes any payload you give it and sends the full payload over UDP. that's it. that's the whole personality. no parsing, no thinking, no opinions. it just yeets the bytes. π
π Attributes π
timeoutβ acore.timespecthat gets used when producing objects. β°
π Functions π
Udpcli.new()β creates a brand newUdpclioutput. baby's first client β¨Udpcli:timeout(seconds, nanoseconds)β sets the timeout used when producing objects. β³Udpcli:connect(host, port)β connects to the host and port, and returns0if it worked. π«ΆUdpcli:nonblocking(bool)β turns nonblocking mode on (true) or off (false), returns0if it succeeded. and if you don't pass bool at all, it just tells you the current state:trueif nonblocking mode is on,falseif it's off. very "read the room" of it. πUdpcli:receive()β returns the C functions and context for receiving objects. and those objects? they get sent. π€Udpcli:produce()β returns the C functions and context for producing objects, and those objects are the ones being received. here's the tea though:- if nonblocking mode is enabled, the producer returns a payload object with length zero if there was nothing to receive.
- if nonblocking mode is disabled, the producer waits for data, and if it times out (see
timeoutabove π) it returns a payload object with length zero. - and the producer returns
nilon error. π
Udpcli:packets()β returns the number of "packets" sent. and yes, "packets" is in scare quotes for a reason: it's actually the number of completely sent payloads. πUdpcli:received()β returns the number of "packets" received, which is actually the number of successful calls torecvfrom(2)that returned data. same scare quotes, same energy. πUdpcli:errors()β returns the number of errors that happened while sending or receiving. hope it stays at zero fr fr π€
π AUTHORS and CONTRIBUTORS π
Jerry LundstrΓΆm (DNS-OARC), TomΓ‘Ε‘ KΕΓΕΎek (CZ.NIC), Petr Ε paΔek (ISC)
Maintained by DNS-OARC
https://www.dns-oarc.net/
π BUGS π
got issues? got feature requests? bestie, they want to hear it:
https://codeberg.org/DNS-OARC/dnsjit/issues
got questions? need help? slide into the inbox:
admin@dns-oarc.net
no cap, those are the actual places to go. don't just suffer in silence π
and that's the whole page, periodt. π
this was dnsjit version 1.5.1, and the page itself is dnsjit.output.udpcli(3) β go forth and send some payloads, you absolute icon. πβ¨π¦πΈ
π¦ where this page comes from
- epel 10: dnsjit 1.5.1-2.el10_2 Β· GPL-3.0-or-later
- epel 9: dnsjit 1.5.1-2.el9 Β· GPL-3.0-or-later
- fedora 43: dnsjit 1.5.1-2.fc43 Β· GPL-3.0-or-later
- fedora 43: dnsjit 1.5.1-2.fc43 Β· GPL-3.0-or-later
- fedora 44: dnsjit 1.5.1-2.fc44 Β· GPL-3.0-or-later
- fedora 44: dnsjit 1.5.1-2.fc44 Β· GPL-3.0-or-later
- ubuntu resolute: dnsjit 1.5.1-2 Β· GPL-3.0-or-later
- ubuntu stonking: dnsjit-dev 1.5.1-6 Β· GPL-3.0-or-later
- Copyright (c) 2018-2026 OARC, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms