Hacker GitHub

← All repos

spc476/SPCDNS

View on GitHub ↗ ★ 84 C

An easy to use DNS library with C and Lua bindings

12 mentions on Hacker News by 1 person: 0 stories, 12 comments · first 2012-05-20 · latest 2024-09-03

Mentions per year 12 mentions · busiest year 2016 (4)
20082026
  1. …and experimental record types, it was easy to parse them as a lot of RRs share the same format. [1] https://github.com/spc476/SPCDNS
  2. …away with the comment and make this more "self-documenting". [1] Code to encode/decode DNS packets: https://github.com/spc476/SPCDNS/blob/05aead581acf050edf610c...
  3. …I'm not sure how viable it would be to limit the pointers to earlier in the packet would be. [1] https://github.com/spc476/SPCDNS
  4. …in C, but it should be easy to interface to other languages given it only has two functions. [1] https://github.com/spc476/SPCDNS
    comment by spc476 · 2019-04-14 · in Web Developer's Guide to DNS
  5. …framework. Mine? Just two functions: dns_encode() and dns_decode(). No I/O. No malloc(). [1] https://github.com/spc476/SPCDNS [2] The ones I was looking at are written in C.
    comment by spc476 · 2018-06-10 · in Minimalist C Libraries
  6. …with unknown flags was on the assumption of potential garbage being used as a possible exploit. [1] https://github.com/spc476/SPCDNS
    comment by spc476 · 2018-05-19 · in Introducing Git protocol version 2
  7. …field "class" [2]. And I'm not about to pay lip service to an abomination like C++ [3][4]. [1] https://github.com/spc476/SPCDNS [2] https://github.com/spc476/SPCDNS/blob/ca5052c3d0c3252071a18e... [3] I am NOT a fan of C++. [4] But I had to…
  8. That's the approach I took with my DNS library ( https://github.com/spc476/SPCDNS)---extract the DNS packet into a C structure that's easier to deal with (for instance, the A RR structure: https://github.com/spc476/SPCDNS/blob/master/src/dn…
  9. I marked the RFC where each RR is defined ( https://github.com/spc476/SPCDNS/blob/master/src/dns.h ) in my DNS decoding library (in C: https://github.com/spc476/SPCDNS ). I've also referenced RFCs (in comments) in the main code (…
    comment by spc476 · 2016-08-22 · in A year of Rust and DNS
  10. I did a networkless approach for decoding DNS packets: https://github.com/spc476/SPCDNS No memory allocation (the user supplies the memory) and because it does not bother with the network at all, it's easy to integrate into an existing…
    comment by spc476 · 2016-08-07 · in Network protocols, sans I/O
  11. …are pretty dismal. (Dismal enough that I ended up writing my own DNS encoding/decoding library ( https://github.com/spc476/SPCDNS ) with the aim of being easy to use as well as safe. It assumes nothing about the incoming packet and does…
  12. I did that when doing writing a DNS resolution library ( https://github.com/spc476/SPCDNS ). The encoding and decoding is one library, leaving the network layer primarily up to you (I provide a very simple network interface that's probably…