this method prints all the records for the domain matching the passed string
outputs the records to the passed printwriter object
better than toString because PrintWriter understands local system EOL conventions
Used to write the SOA and NS records to the db files
Note that the serial number is generated using the current date/time
in the form YYYYmmDDnn where nn is a unique number incremented every 15 minutes
writeBoot creates the named.boot file
parameters are the
output file
boolean indicating primary or secondary
String indicating a folder to prepend to the files,
if the string is null, then don't save the files
if the string is empty, then don't prepend anything
if the string contains something, then prepend the filenames with the string
(note that the string should only be passwd for secondary files, not primaries)