
                           Frequenly asked questions
                                       
How to I try out MaraDNS?
   
   Read the quick start guide
   
What license is MaraDNS released under?
   
   None, actually. MaraDNS is relased to the public domain.
   
How do I get MaraDNS to bind to multiple IP addresses?
   
   The current method is to run multiple copies of MaraDNS, each using
   its own mararc file.
   
   E.g:
   
     maradns -f /etc/mararc.1
     maradns -f /etc/mararc.2
     etc.
     
   If you just want to bind to all IP addresses your computer has,
   binding to the ip "0.0.0.0" should work.
   
   I don't think this will be too hard to correctly implement, since I
   already have code for specifying multiple IP addresses with the IP ACL
   code used by the zone server. Until then, I will add this workaround
   to the faq.
   
   When I try to run MaraDNS, I get a Fatal error: Error running
   populate_main program error message.
   
   This error message can apprear under the following circumstances:

     * When a zone name does not have a trailing dot. For example, if you
       have an entry like this in /etc/mararc:

	csv1["example.com"] = "db.example.com"

       Change it to look like:

	csv1["example.com."] = "db.example.com"

       Note the trailing dot.

     * If the csv1 hash has not been correctly initialized. E.G, the
       first line that calls csv1 has to look like this:

	csv1 = {}
       
What string library does MaraDNS use?
   
   MaraDNS uses her own string library, which is called the "js_string"
   library. Man pages for most of the functions in the js_string library
   are in the folder doc/man of the MaraDNS distribution
   
How come there is so little content on here right now?
   
   I am devoting most of my effort to making MaraDNS a fully functional
   DNS server. I plan to meet all of the goals in the roadmap. Getting
   the code out is more important than this web page. I have seen too
   many proposed open-source projects set up a fancy web page, a mailing
   list, announce their project on comp.os.linux.announce, and never
   actually make the proposed code.
   
   Contrast this to MaraDNS, which is already a fully functional
   authoritative name server. The maradns.com and maradns.org domans are
   both served by MaraDNS. I spent the last few days making a fully
   functioning zone transfer server for MaraDNS, and optimizing the code
   so that it runs six times faster, instead of setting up a mailing list
   or putting up fluff on the MaraDNS web page.
   
Are there any plans to add SQL support to MaraDNS?
   
   I think SQL support is an excellent idea.
   
   There are three ways I can do this:
     * Have a program that converts data in a SQL database in to the hash
       table that MaraDNS stores RRs in. We could do this at program
       starup time.
     * Better yet, have an option to query a SQL table instead of
       querying the MaraDNS hash table.
     * Even better yet, abstract the name resolution part enough so that
       it can be replaced with SQL queries instead of getting records
       from her internal hash. Ideally, SQL queries that use a memory
       cache in order to minimize the load on the SQL server.
       
   The only problem with the second option is that the data is in a
   binary format in Mara's interal hash table. Basically, asking for
   "www.maradns.org" is translated in to
   "\003www\007maradns\003org\000\000\001", which is then looked up in
   the hash table. \003 is binary code 03, and so on. The keys of my hash
   table use a special string which can have ASCII nulls in the string. I
   do it this way so I don't have to translate the raw "on the wire" data
   when resolving hosts.
   
   This is something to do for the 2.0 release. 
   
I have having problems transferring zones from MaraDNS' zone server to
a BIND zone transfer client.
   
   BIND is rather picky about what kind of data it will accept from a
   zone server. Make sure the following is true with your domain:

     * Make sure that the authoritative NS records are at the top of your
       zone, immediately after the SOA record

     * Make sure that your authoritative NS records are NS records for
       your zone

     * To work around a known bug in MaraDNS, make sure you have at least
       one non-NS record between the authoritative NS records for your
       zone and any delegation NS records that exist in the zone.
       
   Here is an example bad zone file:

Sexample.com.|86400|example.com.|hostmaster@example.com.|1|86400|3600|6048000|8
6400
Nbad.example.com.|86400|ns1.example.com.
Nbad.example.com.|86400|ns2.example.com.
Nsubdomain.example.com.|86400|ns.subdomain.example.com.
Aexample.com.|12345|10.2.3.4

   Here is the same zone file, with corrections:

Sexample.com.|86400|example.com.|hostmaster@example.com.|1|86400|3600|6048000|8
6400
Nexample.com.|86400|ns1.example.com.
Nexample.com.|86400|ns2.example.com.
Aexample.com.|12345|10.2.3.4
Nsubdomain.example.com.|86400|ns.subdomain.example.com.

Is MaraDNS portable?
   
   While I intend to have MaraDNS be a portable DNS server which will
   compile on a variety of unices, right now all of MaraDNS's work
   development is being done on Linux. I have heard that MaraDNS does not
   work on NetBSD at this time. In terms of proprietary oses, I know that
   SCO Open Server, SCO UNIXware and Solaris have issues running a UDP or
   TCP server in a chroot() environment. Word is that, with Solaris and
   UNIXware, placing /dev/tcp and /dev/udp in the chroot() jail will
   allow a server like MaraDNS to function.
   
How do I ask for MX records in Visual Basic?
   
   I know that this question has about nothing to do with MaraDNS, but
   since someone asked me this in private mail, I figure other people
   might want to know the answer I gave them.
   
   I do not program in Visual Basic, so I can not assist people with
   this. What I do know is how to do this in C on a Linux machine--you
   use the res_query family of functions (man res_query).
   
   Visual Basic, in the grand tradition of all things Microsoft, probably
   has no support for a DNS resolver library. In fact, I know that Visual
   Basic does not even have a simple SMTP client library, and that you
   have to pay big bucks to get one. All I can say is this: Get out your
   credit card and prepare to pay the big bucks for this basic level of
   functionality that Linux provides free out of the box.
   
   Microsoft is good for some things. However, a cost-effective (read:
   libre) development system with a full network programming API is not
   one of them.

