dnsjit.output.tlscli(3)
π dnsjit.output.tlscli β the manual page, but make it cute
okay bestie, welcome to dnsjit.output.tlscli(3) from the dnsjit library, section 3 of the manual. it's literally a Simple TLS client and i'm obsessed. let's get into it π
β¨ NAME β¨
dnsjit.output.tlscli β a Simple TLS client, no cap π
πΈ SYNOPSIS πΈ
local output = require("dnsjit.output.tlscli").new("127.0.0.1", "853")
look at her. two strings in, an output object out. iconic behavior. π
π¦ DESCRIPTION π¦
so basically: it's a Simple TLS client that attempts to do a TLS handshake β and bestie, listen β without certificate verification. i'm just the messenger, that's what the page says. π
it behaves the same way as tcpcli, except all the data is sent over the encrypted channel. same energy, but make it secure-ish. π₯
β Attributes
timeoutβ acore.timespecthat gets used when producing objects. that's it, that's the whole attribute. she's simple, she's effective. π
π Functions
Tlscli.new()β create a new Tlscli output. fresh out the box, brand new, main character energy. β¨Tlscli:timeout(seconds, nanoseconds)β set the timeout for when objects are being produced. give her seconds and nanoseconds, she'll handle the rest. β°Tlscli:connect(host, port)β connect to the host and port, perform a TLS handshake, and return0if it worked. that0is the little "slay, we're in" signal. π«ΆTlscli:receive()β return the C functions and context for receiving objects. and these objects? they get sent. π€Tlscli:produce()β return the C functions and context for producing objects. these objects are received. the producer will wait for data, and if it times out (seetimeout, bestie, she's back) it will return a payload object with length zero.
and now the important part: if a timeout happens during the first stage β getting the length β it will fail and returnnil. π additional calls will continue retrieving the payload. and the producer returnsnilon error too. so if you seenil, something said no. fr fr.
Tlscli:packets()β return the number of "packets" sent. and yes, the quotes around "packets" are doing a lot of work here, because it's actually the number of completely sent payloads. πTlscli:received()β return the number of "packets" received, which is actually the number of completely received DNS messages. see what i mean? quotes carrying the whole team. πTlscli:errors()β return the number of errors when sending. hopefully0, but she's keeping count either way. π
π AUTHORS and CONTRIBUTORS π
the legends behind this:
- Jerry LundstrΓΆm (DNS-OARC)
- TomΓ‘Ε‘ KΕΓΕΎek (CZ.NIC)
- Petr Ε paΔek (ISC)
Maintained by DNS-OARC
https://www.dns-oarc.net/
the way they maintain itβ¦ periodt. π
π BUGS π
found a bug? need a feature? bestie, please use:
https://codeberg.org/DNS-OARC/dnsjit/issues
got a question, or just need a hand? use:
admin@dns-oarc.net
they're nice, i promise. go say hi. π
okay that's the whole page, no skips, no shortcuts, every flag and every function accounted for. π§
this was dnsjit version 1.5.1, and the page you just read is dnsjit.output.tlscli(3). mwah, take care of her π
β¨
π¦ 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