Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Twisted[1] comes with a DNS server built-in.

For non-authorative local DNS caches:

    twistd dns --recursive --cache
For authorative servers, to serve a BIND-style zonefile:

    twistd dns --bindzone ZONEFILE
But, of course, that's pretty boring. The fun stuff is when you have a Python source file as your zonefile! See: https://twistedmatrix.com/documents/current/names/howto/name...

twisted.names (that's the name of the DNS package) is simple enough to use for DNS serving (demonstrated above) and flexible enough to get it to do pretty much whatever you want.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: