INSTALL 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. First off, you MUST have BIND 9.x or later compiled and installed. You
  2. need the lwres libraries and bind libraries (and include files) and you
  3. will also need lwresd. Once you have it compiled and installed, try running
  4. lwresd. On solaris I had to use the -i flag to specify where to write
  5. the pid file, and on linux I didn't. (shrug) Go figure. But you gotta get
  6. lwresd running before moving on. Don't panic, this is FAR easier to get
  7. going than a full-blown BIND server (grin).
  8. Building bulkquery
  9. First, edit the Makefile and uncomment out the section of CC, CFLAGS, and
  10. LDFLAGS settings for your operating system and set DESTDIR to the directory
  11. you want to install it in.
  12. Then, edit bulkquery.c and edit the MAXTHREADS and DEFTTL values. You probably
  13. don't need to fiddle with anything else and the defaults for MAXTHREADS and
  14. DEFTTL should be fine.
  15. MAXTHREADS is the maximum number of threads you will spawn. The more you
  16. spawn, the harder you will work your DNS server (and the RBLs) and the
  17. more resources you'll use up on your own machine -- AND the faster the
  18. queries will complete. If you set this too high your operating system might
  19. not permit bulkquery to run. The default of 50 works fine on Solaris and
  20. and Linux.
  21. DEFTTL is the default time to live value. This is sort of a misnomer, since
  22. the REAL time to live values will be obtained in the replies for queries
  23. that were found. But for the queries that were NOT found, DEFTTL will be
  24. used. This is so that the non-existence of an IP in one of the RBLs will be
  25. cached by the filters plugin for DEFTTL seconds.
  26. After looking at bulkquery.c, just run "make" to compile it. If it compiles
  27. without errors, you can run "make install" (you may need to be root to
  28. write to DESTDIR). You can test it with the included sample input file
  29. bq.in
  30. If all you get back are entries with the default TTL value (ie. 7200), then
  31. something isn't working. Make sure you have lwresd running. You should also
  32. make sure the machine you're running it on CAN make DNS queries (grin). So
  33. check your /etc/resolv.conf file (on UNIX machines anyway). I'll include
  34. the file bq.out to show what the output of bulkquery looked like at the time
  35. of this writing (assuming everything was working).