1*eaad808eSchristosREADME for Unbound on Windows. 2*eaad808eSchristos 3*eaad808eSchristos(C) 2009, W.C.A. Wijngaards, NLnet Labs. 4*eaad808eSchristos 5*eaad808eSchristosSee LICENSE for the license text file. 6*eaad808eSchristos 7*eaad808eSchristos 8*eaad808eSchristos+++ Introduction 9*eaad808eSchristos 10*eaad808eSchristosUnbound is a recursive DNS server. It does caching, full recursion, stub 11*eaad808eSchristosrecursion, DNSSEC validation, NSEC3, IPv6. More information can be found 12*eaad808eSchristosat the http://unbound.net site. Unbound has been built and tested on 13*eaad808eSchristosWindows XP, Vista, 7 and 8. 14*eaad808eSchristos 15*eaad808eSchristosAt http://unbound.net/documentation is an install and configuration manual 16*eaad808eSchristosfor windows. 17*eaad808eSchristos 18*eaad808eSchristosemail: unbound-bugs@nlnetlabs.nl 19*eaad808eSchristos 20*eaad808eSchristos 21*eaad808eSchristos+++ How to use it 22*eaad808eSchristos 23*eaad808eSchristosIn ControlPanels\SystemTasks\Services you can start/stop the daemon. 24*eaad808eSchristosIn ControlPanels\SystemTasks\Logbooks you can see log entries (unless you 25*eaad808eSchristosconfigured unbound to log to file). 26*eaad808eSchristos 27*eaad808eSchristosBy default the daemon provides service only to localhost. See the manual 28*eaad808eSchristoson how to change that (you need to edit the config file). 29*eaad808eSchristos 30*eaad808eSchristosTo change options, edit the service.conf file. The example.conf file 31*eaad808eSchristoscontains information on the various configuration options. The config 32*eaad808eSchristosfile is the same as on Unix. The options log-time-ascii, chroot, username 33*eaad808eSchristosand pidfile are not supported on windows. 34*eaad808eSchristos 35*eaad808eSchristos 36*eaad808eSchristos+++ How to compile 37*eaad808eSchristos 38*eaad808eSchristosUnbound is open source under the BSD license. You can compile it yourself. 39*eaad808eSchristos 40*eaad808eSchristos1. Install MinGW and MSYS. http://www.mingw.org 41*eaad808eSchristosThis is a free, open source, compiler and build environment. 42*eaad808eSchristosNote, if your username contains a space, create a directory 43*eaad808eSchristosC:\msys\...\home\user to work in (click on MSYS; type: mkdir /home/user ). 44*eaad808eSchristos 45*eaad808eSchristos2. Install openssl, or compile it yourself. http://www.openssl.org 46*eaad808eSchristosUnbounds need the header files and libraries. Static linking makes 47*eaad808eSchristosthings easier. This is an open source library for cryptographic functions. 48*eaad808eSchristosAnd libexpat is needed. 49*eaad808eSchristos 50*eaad808eSchristos3. Compile Unbound 51*eaad808eSchristosGet the source code tarball http://unbound.net 52*eaad808eSchristosMove it into the C:\msys\...\home\user directory. 53*eaad808eSchristosDouble click on the MSYS icon and give these commands 54*eaad808eSchristos$ cd /home/user 55*eaad808eSchristos$ tar xzvf unbound-xxx.tar.gz 56*eaad808eSchristos$ cd unbound-xxx 57*eaad808eSchristos$ ./configure --enable-static-exe 58*eaad808eSchristosIf you compiled openssl yourself, pass --with-ssl=../openssl-xxx too. 59*eaad808eSchristosIf you compiled libexpat yourself, pass --with-libexpat=../expat-install too. 60*eaad808eSchristosThe configure options for libevent or threads are not applicable for 61*eaad808eSchristoswindows, because builtin alternatives for the windows platform are used. 62*eaad808eSchristos$ make 63*eaad808eSchristosAnd you have unbound.exe 64*eaad808eSchristos 65*eaad808eSchristosIf you run unbound-service-install.exe (double click in the explorer), 66*eaad808eSchristosunbound is installed as a service in the controlpanels\systemtasks\services, 67*eaad808eSchristosfrom the current directory. unbound-service-remove.exe uninstalls the service. 68*eaad808eSchristos 69*eaad808eSchristosUnbound and its utilities also work from the commandline (like on unix) if 70*eaad808eSchristosyou prefer. 71*eaad808eSchristos 72*eaad808eSchristos 73*eaad808eSchristos+++ Cross compile 74*eaad808eSchristos 75*eaad808eSchristosYou can crosscompile unbound. This results in .exe files. 76*eaad808eSchristosInstall the packages: mingw32-binutils mingw32-cpp mingw32-filesystem 77*eaad808eSchristosmingw32-gcc mingw32-openssl mingw32-openssl-static mingw32-runtime zip 78*eaad808eSchristosmingw32-termcap mingw32-w32api mingw32-zlib mingw32-zlib-static mingw32-nsis 79*eaad808eSchristos(package names for fedora 11). 80*eaad808eSchristos 81*eaad808eSchristosFor dynamic linked executables 82*eaad808eSchristos$ mingw32-configure 83*eaad808eSchristos$ make 84*eaad808eSchristos$ mkdir /home/user/installdir 85*eaad808eSchristos$ make install DESTDIR=/home/user/installdir 86*eaad808eSchristosFind the dlls and exes in /home/user/installdir and 87*eaad808eSchristoscrypto in /usr/i686-pc-mingw32/sys-root/mingw/bin 88*eaad808eSchristos 89*eaad808eSchristosFor static linked executables 90*eaad808eSchristosUse --enable-staticexe for mingw32-configure, see above. Or use makedist.sh, 91*eaad808eSchristoscopy System.dll from the windows dist of NSIS to /usr/share/nsis/Plugins/ 92*eaad808eSchristosThen do ./makedist.sh -w and the setup.exe is created using nsis. 93*eaad808eSchristos 94*eaad808eSchristos 95*eaad808eSchristos+++ CREDITS 96*eaad808eSchristos 97*eaad808eSchristosUnbound was written in portable C by Wouter Wijngaards (NLnet Labs). 98*eaad808eSchristosSee the CREDITS file in the source package for more contributor information. 99*eaad808eSchristosEmail unbound-bugs@nlnetlabs.nl 100*eaad808eSchristos 101