Here's a start of a dns slave.