5e SRD:Hags
Hags
Back to Main Page → 5e System Reference Document → Creatures → Monsters
gollark: You could stick them in the A record in some simple format (maybe the metadata one).
gollark: And probably AAAA/TXT/etc support.
gollark: <@129553195314839552> You want this with better input validation basically.
gollark: ```javascriptconst dns = require("dns2")const fetch = require("node-fetch")const { Packet } = dns;const server = dns.createServer(async (request, send, rinfo) => { const response = Packet.createResponseFromRequest(request); const [ question ] = request.questions; const { name } = question; if (name.endsWith(".kst")) { const nameWithoutExt = name.replace(/\.kst$/, "") const kstName = await (await fetch(`https://krist.ceriat.net/names/${encodeURIComponent(nameWithoutExt)}`)).json() console.log(kstName) if (kstName.name.a) { response.answers.push({ name, type: Packet.TYPE.A, class: Packet.CLASS.IN, ttl: 300, address: kstName.name.a }); } send(response) } else { // work out how to send NOAUTH here send(response) }});server.on('request', (request, response, rinfo) => { console.log(request.header.id, request.questions[0]);});server.listen(5333);```
gollark: Still working on it.
This article is issued from Dandwiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.