Sunday, November 20, 2011

Installing a validating DNS stub resolver

So a quick look at the alternatives available, primarily ldns and libunbound indicated that the latter has significantly more useful documentation. Documentation is king, so that's what I'm going to favor.

Installing libunbound on the Mac:

1. Download
2. ./configure --with-ldns=/usr/local/ --with-ssl=/usr/local/ssl/
3. make && make install

I then grabbed one of the tutorial examples from their website and compiled it:

$ gcc -o unb_secure_resolve unb_secure_resolve.c -I/usr/local/include -L/usr/local/lib -lunbound

No comments:

Post a Comment