Picodns is a project mainly written in C, it's free.
A Tiny DNS server written using glib
404: Not Found