Files
zonemaster.es/zonemaster-ldns/ldns/lua/test2.lua
Malin eaaa8f6a11 fix: populate ldns submodule and add autotools to LDNS build stage
- Re-cloned zonemaster-ldns with --recurse-submodules so the bundled
  ldns C library source (including Changelog and configure.ac) is present
- Added autoconf, automake, libtool to Dockerfile.backend ldns-build stage
  so libtoolize + autoreconf can generate ldns/configure during make

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 08:33:38 +02:00

23 lines
521 B
Lua

-- source the lib file with the function
dofile("rns-lib.lua")
my_pkt = packet.new()
my_rdf = rdf.new_frm_str(LDNS_RDF_TYPE_DNAME, "miek.nl")
if my_rdf == nil then
print("failure")
end
rdf.print(my_rdf)
my_rr = record.new_frm_str("www.miek.nl in a 192.168.1.1")
record.print(my_rr)
my_pkt = packet.new()
packet.push_rr(my_pkt, LDNS_SECTION_ANSWER, my_rr)
packet.push_rr(my_pkt, LDNS_SECTION_ANSWER, my_rr)
packet.push_rr(my_pkt, LDNS_SECTION_ANSWER, my_rr)
lua_record_insert(my_pkt, my_rr, 2)
packet.print(my_pkt)