Or you could use djbdns which makes it extremely trivial, with no possible syntax gotchas that can totally bite you.