Compiling BIND

Now it's time to get your hands dirty. After you have the tar files, you just need to untar them into a suitable directory. They untar directly as src, doc, and contrib, so you should make an intermediate directory to hold them all. So, to compile BIND, go into the src directory. If you type make, the software will make a (good) guess about your OS and platform and compile BIND according to that.

You might have specific needs, though. On most platforms, the default is to compile with GNU gcc. However, if you have a Solaris machine, you might want to compile BIND with Sun's CC rather than GNU gcc. In that case, you must go into port/solaris and copy Makefile.set.sun over Makefile.set. Platform-specific settings all reside in port/platform ...

Get Concise Guide to DNS and BIND, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.