nanog mailing list archives

Re: Speaking of DNS server software...


From: John Levine via NANOG <nanog () lists nanog org>
Date: 10 Aug 2025 20:56:41 -0400

It appears that William Herrin via NANOG <nanog () lists nanog org> said:
Python doesn't work this way. Its memory management is abstracted away
from the programmer and the programmer does not control its precise
structure. For Python to access a DNS packet, the programmer must pack
and unpack an array of bytes using complex software of their own
devising. You can't just tell Python, "This is the complex data
structure these bytes contain, let me access the data without
unpacking it."

The python struct module is pretty fast, since it's written in C.

I recently rewrote the abuse.net DNS server in python doing
white lies on the fly DNSSEC signing.  It's fast enough.

R's,
John
_______________________________________________
NANOG mailing list 
https://lists.nanog.org/archives/list/nanog () lists nanog org/message/BGFDLG24XEHD47QE77ST6LY4OXUMHIKS/


Current thread: